mirror of
https://github.com/cunnie/sslip.io.git
synced 2025-10-05 15:46:50 +08:00
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:
@@ -101,7 +101,7 @@ describe domain do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it "gets the expected version number, #{sslip_version}" do
|
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
|
end
|
||||||
|
|
||||||
it "gets the source (querier's) IP address" do
|
it "gets the source (querier's) IP address" do
|
||||||
@@ -110,19 +110,19 @@ describe domain do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it "sets a key-value @#{whois_nameserver} sslipio-spec.k-v.io" do
|
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
|
end
|
||||||
|
|
||||||
it "gets a key-value @#{whois_nameserver} sslipio-spec.k-v.io" do
|
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
|
end
|
||||||
|
|
||||||
it "deletes a key-value @#{whois_nameserver} sslipio-spec.k-v.io" do
|
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
|
end
|
||||||
|
|
||||||
it "gets a key-value @#{whois_nameserver} sslipio-spec.k-v.io" do
|
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
|
||||||
end
|
end
|
||||||
# check the website
|
# check the website
|
||||||
|
Reference in New Issue
Block a user