feat(netxlite): implements NS queries (#734)
This diff has been extracted from eb0bf38957.
See https://github.com/ooni/probe/issues/2096.
While there, skip the broken tests caused by issue
https://github.com/ooni/probe/issues/2098.
This commit is contained in:
parent
c1b06a2d09
commit
ce052b665e
26 changed files with 859 additions and 75 deletions
|
|
@ -11,6 +11,7 @@ func init() {
|
|||
}
|
||||
|
||||
func TestCheck(t *testing.T) {
|
||||
t.Skip("see https://github.com/ooni/probe/issues/2098")
|
||||
*mode = "check"
|
||||
main()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -67,6 +67,11 @@ func (c *Client) LookupHTTPS(ctx context.Context, domain string) (*model.HTTPSSv
|
|||
return nil, errors.New("not implemented")
|
||||
}
|
||||
|
||||
// LookupNS implements model.Resolver.LookupNS.
|
||||
func (c *Client) LookupNS(ctx context.Context, domain string) ([]*net.NS, error) {
|
||||
return nil, errors.New("not implemented")
|
||||
}
|
||||
|
||||
// Network implements Resolver.Network
|
||||
func (c *Client) Network() string {
|
||||
return c.dnsClient.Network()
|
||||
|
|
|
|||
|
|
@ -56,6 +56,10 @@ func (c FakeResolver) LookupHTTPS(ctx context.Context, domain string) (*model.HT
|
|||
return nil, errors.New("not implemented")
|
||||
}
|
||||
|
||||
func (c FakeResolver) LookupNS(ctx context.Context, domain string) ([]*net.NS, error) {
|
||||
return nil, errors.New("not implemented")
|
||||
}
|
||||
|
||||
var _ model.Resolver = FakeResolver{}
|
||||
|
||||
type FakeTransport struct {
|
||||
|
|
|
|||
|
|
@ -56,6 +56,10 @@ func (c FakeResolver) LookupHTTPS(ctx context.Context, domain string) (*model.HT
|
|||
return nil, errors.New("not implemented")
|
||||
}
|
||||
|
||||
func (c FakeResolver) LookupNS(ctx context.Context, domain string) ([]*net.NS, error) {
|
||||
return nil, errors.New("not implemented")
|
||||
}
|
||||
|
||||
var _ model.Resolver = FakeResolver{}
|
||||
|
||||
type FakeTransport struct {
|
||||
|
|
|
|||
Loading…
Reference in a new issue