diff --git a/docs/DEVELOPER.md b/docs/DEVELOPER.md index cca1715..f427f9b 100644 --- a/docs/DEVELOPER.md +++ b/docs/DEVELOPER.md @@ -11,7 +11,8 @@ git pull -r --autostash # update the version number for the TXT record for version.sslip.io sed -i '' "s/$OLD_VERSION/$VERSION/g" \ 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 sed -i '' "s~/$OLD_VERSION/~/$VERSION/~g" \ k8s/document_root/index.html \ diff --git a/spec/check-dns_spec.rb b/spec/check-dns_spec.rb index 7cfa274..e452ed5 100644 --- a/spec/check-dns_spec.rb +++ b/spec/check-dns_spec.rb @@ -18,6 +18,7 @@ def get_whois_nameservers(domain) end domain = ENV['DOMAIN'] || 'example.com' +sslip_version = '2.2.2' whois_nameservers = get_whois_nameservers(domain) 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 expect(`dig +short AAAA 2601-646-100-69f0--24.#{domain} @#{whois_nameserver}`.chomp).to eq("2601:646:100:69f0::24") end + + it "gets the expected version number, #{sslip_version}" do + expect(`dig @#{whois_nameserver} TXT version.#{domain} +short`).to include(sslip_version) + end end # check the website it "is able to reach https://#{domain} and get a valid response (2xx)" do