mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-04 07:48:00 +08:00
Add FQDN name test
License: MIT Signed-off-by: Daniel Aleksandersen <code@daniel.priv.no>
This commit is contained in:
parent
fedd425a85
commit
a70dc919f2
@ -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)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user