From a70dc919f201c194963bb3823fb4d3ce8e90eda4 Mon Sep 17 00:00:00 2001 From: Daniel Aleksandersen Date: Mon, 28 Jan 2019 08:47:51 +0100 Subject: [PATCH] Add FQDN name test License: MIT Signed-off-by: Daniel Aleksandersen --- namesys/dns_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/namesys/dns_test.go b/namesys/dns_test.go index 282906998..ed28aa945 100644 --- a/namesys/dns_test.go +++ b/namesys/dns_test.go @@ -123,6 +123,9 @@ func newMockDNS() *mockDNS { "_dnslink.conflict.example.com.": []string{ "dnslink=/ipfs/QmY3hE8xgFCjGcz6PHgnvJz5HZi1BaKRfPkn1ghZUcYMjE", }, + "fqdn.example.com.": []string{ + "dnslink=/ipfs/QmYvMB9yrsSf7RKBghkfwmHJkzJhW2ZgVwq3LxBXXPasFr", + }, }, } } @@ -159,4 +162,5 @@ func TestDNSResolution(t *testing.T) { testResolution(t, r, "withtrailingrec.example.com", opts.DefaultDepthLimit, "/ipfs/QmY3hE8xgFCjGcz6PHgnvJz5HZi1BaKRfPkn1ghZUcYMjD/sub/segment/", nil) testResolution(t, r, "double.example.com", opts.DefaultDepthLimit, "/ipfs/QmY3hE8xgFCjGcz6PHgnvJz5HZi1BaKRfPkn1ghZUcYMjD", nil) testResolution(t, r, "conflict.example.com", opts.DefaultDepthLimit, "/ipfs/QmY3hE8xgFCjGcz6PHgnvJz5HZi1BaKRfPkn1ghZUcYMjE", nil) + testResolution(t, r, "fqdn.example.com.", opts.DefaultDepthLimit, "/ipfs/QmYvMB9yrsSf7RKBghkfwmHJkzJhW2ZgVwq3LxBXXPasFr", nil) }