summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/testdata/run/resolve_dns.ts7
-rw-r--r--cli/tests/testdata/run/resolve_dns.ts.out1
-rw-r--r--cli/tests/testdata/run/resolve_dns.zone.in3
3 files changed, 10 insertions, 1 deletions
diff --git a/cli/tests/testdata/run/resolve_dns.ts b/cli/tests/testdata/run/resolve_dns.ts
index bde479c9a..ae6ed70a4 100644
--- a/cli/tests/testdata/run/resolve_dns.ts
+++ b/cli/tests/testdata/run/resolve_dns.ts
@@ -62,3 +62,10 @@ try {
} thrown for not-found-example.com`,
);
}
+
+try {
+ // @ts-ignore testing invalid overloads
+ await Deno.resolveDns("example.com", "SSHFP", nameServer);
+} catch (e) {
+ console.log(e.message);
+}
diff --git a/cli/tests/testdata/run/resolve_dns.ts.out b/cli/tests/testdata/run/resolve_dns.ts.out
index 2fe10cb9a..f41dc68bc 100644
--- a/cli/tests/testdata/run/resolve_dns.ts.out
+++ b/cli/tests/testdata/run/resolve_dns.ts.out
@@ -23,3 +23,4 @@ SRV
TXT
[["I","am","a","txt","record"],["I","am","another","txt","record"],["I am a different","txt record"],["key=val"]]
Error NotFound thrown for not-found-example.com
+Provided record type is not supported
diff --git a/cli/tests/testdata/run/resolve_dns.zone.in b/cli/tests/testdata/run/resolve_dns.zone.in
index c351a1de9..94d5b9fc3 100644
--- a/cli/tests/testdata/run/resolve_dns.zone.in
+++ b/cli/tests/testdata/run/resolve_dns.zone.in
@@ -28,4 +28,5 @@ alias CNAME cname
PTR alias
_service._tcp SRV 0 100 1234 srv
@ IN NAPTR 10 0 "s" "SIPS+D2T" "" _sips._tcp.example.com.
-@ IN NAPTR 10 0 "s" RELAY:turn.udp "" _turn._udp.example.com. \ No newline at end of file
+@ IN NAPTR 10 0 "s" RELAY:turn.udp "" _turn._udp.example.com.
+@ IN SSHFP 1 1 436C6F7564666C