Production test: all servers run same version

This commit is contained in:
Brian Cunnie
2021-11-02 05:02:46 -07:00
parent 9dd1a78447
commit 1d4e1af656
2 changed files with 7 additions and 1 deletions

View File

@@ -11,7 +11,8 @@ git pull -r --autostash
# update the version number for the TXT record for version.sslip.io # update the version number for the TXT record for version.sslip.io
sed -i '' "s/$OLD_VERSION/$VERSION/g" \ sed -i '' "s/$OLD_VERSION/$VERSION/g" \
bin/make_all \ bin/make_all \
bosh-release/packages/sslip.io-dns-server/packaging bosh-release/packages/sslip.io-dns-server/packaging \
spec/check-dns_spec.rb
# update the download instructions on the website # update the download instructions on the website
sed -i '' "s~/$OLD_VERSION/~/$VERSION/~g" \ sed -i '' "s~/$OLD_VERSION/~/$VERSION/~g" \
k8s/document_root/index.html \ k8s/document_root/index.html \

View File

@@ -18,6 +18,7 @@ def get_whois_nameservers(domain)
end end
domain = ENV['DOMAIN'] || 'example.com' domain = ENV['DOMAIN'] || 'example.com'
sslip_version = '2.2.2'
whois_nameservers = get_whois_nameservers(domain) whois_nameservers = get_whois_nameservers(domain)
describe domain do describe domain do
@@ -98,6 +99,10 @@ describe domain do
it "resolves 2601-646-100-69f0--24.#{domain}' to eq 2601:646:100:69f0::24)}" do it "resolves 2601-646-100-69f0--24.#{domain}' to eq 2601:646:100:69f0::24)}" do
expect(`dig +short AAAA 2601-646-100-69f0--24.#{domain} @#{whois_nameserver}`.chomp).to eq("2601:646:100:69f0::24") expect(`dig +short AAAA 2601-646-100-69f0--24.#{domain} @#{whois_nameserver}`.chomp).to eq("2601:646:100:69f0::24")
end end
it "gets the expected version number, #{sslip_version}" do
expect(`dig @#{whois_nameserver} TXT version.#{domain} +short`).to include(sslip_version)
end
end end
# check the website # check the website
it "is able to reach https://#{domain} and get a valid response (2xx)" do it "is able to reach https://#{domain} and get a valid response (2xx)" do