mirror of
https://github.com/cunnie/sslip.io.git
synced 2025-10-05 07:36:54 +08:00
Production test: all servers run same version
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user