From c61b81c29b7e9505cc14a1274ff2ef6dbf70d97e Mon Sep 17 00:00:00 2001 From: Brian Cunnie Date: Thu, 20 Jan 2022 09:50:58 -0800 Subject: [PATCH] Server tests: update for new endpoints fixes: --- spec/check-dns_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/check-dns_spec.rb b/spec/check-dns_spec.rb index d35ce6e..c371bf2 100644 --- a/spec/check-dns_spec.rb +++ b/spec/check-dns_spec.rb @@ -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