Add FQDN name test
License: MIT Signed-off-by: Daniel Aleksandersen <code@daniel.priv.no>
Daniel Aleksandersen committed
Jan 28, 2019 at 08:47 UTC
a70dc919f201c194963bb3823fb4d3ce8e90eda4
1 file changed
+4
namesys/dns_test.go
+4
@@ -123,6 +123,9 @@ func newMockDNS() *mockDNS {
123
"_dnslink.conflict.example.com.": []string{
124
"dnslink=/ipfs/QmY3hE8xgFCjGcz6PHgnvJz5HZi1BaKRfPkn1ghZUcYMjE",
125
},
126
+ "fqdn.example.com.": []string{
127
+ "dnslink=/ipfs/QmYvMB9yrsSf7RKBghkfwmHJkzJhW2ZgVwq3LxBXXPasFr",
128
+ },
129
},
130
}
131
}
@@ -159,4 +162,5 @@ func TestDNSResolution(t *testing.T) {
162
testResolution(t, r, "withtrailingrec.example.com", opts.DefaultDepthLimit, "/ipfs/QmY3hE8xgFCjGcz6PHgnvJz5HZi1BaKRfPkn1ghZUcYMjD/sub/segment/", nil)
163
testResolution(t, r, "double.example.com", opts.DefaultDepthLimit, "/ipfs/QmY3hE8xgFCjGcz6PHgnvJz5HZi1BaKRfPkn1ghZUcYMjD", nil)
164
testResolution(t, r, "conflict.example.com", opts.DefaultDepthLimit, "/ipfs/QmY3hE8xgFCjGcz6PHgnvJz5HZi1BaKRfPkn1ghZUcYMjE", nil)
165
+ testResolution(t, r, "fqdn.example.com.", opts.DefaultDepthLimit, "/ipfs/QmYvMB9yrsSf7RKBghkfwmHJkzJhW2ZgVwq3LxBXXPasFr", nil)
166
}