Server tests: update for new endpoints

fixes:
<https://ci.nono.io/teams/main/pipelines/sslip.io/jobs/dns-servers/builds/271>
This commit is contained in:
Brian Cunnie
2022-01-20 09:50:58 -08:00
parent b496e68423
commit c61b81c29b

View File

@@ -101,7 +101,7 @@ describe domain do
end
it "gets the expected version number, #{sslip_version}" do
expect(`dig @#{whois_nameserver} TXT version.#{domain} +short`).to include(sslip_version)
expect(`dig @#{whois_nameserver} TXT version.status.#{domain} +short`).to include(sslip_version)
end
it "gets the source (querier's) IP address" do
@@ -110,19 +110,19 @@ describe domain do
end
it "sets a key-value @#{whois_nameserver} sslipio-spec.k-v.io" do
expect(`dig @#{whois_nameserver} put.MyKey.sslipio-spec.kv.#{domain} TXT +short`).to match(/^"MyKey"$/)
expect(`dig @#{whois_nameserver} put.MyKey.sslipio-spec.k-v.io TXT +short`).to match(/^"MyKey"$/)
end
it "gets a key-value @#{whois_nameserver} sslipio-spec.k-v.io" do
expect(`dig @#{whois_nameserver} sslipio-spec.kv.#{domain} TXT +short`).to match(/^"MyKey"$/)
expect(`dig @#{whois_nameserver} sslipio-spec.k-v.io TXT +short`).to match(/^"MyKey"$/)
end
it "deletes a key-value @#{whois_nameserver} sslipio-spec.k-v.io" do
expect(`dig @#{whois_nameserver} delete.sslipio-spec.kv.#{domain} TXT +short`).to match(/^"MyKey"$/)
expect(`dig @#{whois_nameserver} delete.sslipio-spec.k-v.io TXT +short`).to match(/^"MyKey"$/)
end
it "gets a key-value @#{whois_nameserver} sslipio-spec.k-v.io" do
expect(`dig @#{whois_nameserver} sslipio-spec.kv.#{domain} TXT +short`).to match(/^$/)
expect(`dig @#{whois_nameserver} sslipio-spec.k-v.io TXT +short`).to match(/^$/)
end
end
# check the website