instanceTest.TestAddresses and instanceTest.TestAddressesMissing both fail on my machine
because inst.Addresses calls network.ResolvableHostnames and my IP provider successfully
resolves any IP address, including "testing.invalid".
--- FAIL: TestMAAS (0.06s)
FAIL: instance_test.go:51: instanceTest.TestAddresses
[LOG] 0:00.000 DEBUG juju.testing setting feature flags: address-allocation
instance_test.go:68:
c.Check(addr, gc.DeepEquals, expected)
... obtained []network.Address = []network.Address{public:testing.invalid, local-cloud:testing.invalid, public:1.2.3.4, link-local:fe80::d806:dbff:fe23:1199}
... expected []network.Address = []network.Address{public:1.2.3.4, link-local:fe80::d806:dbff:fe23:1199}
----------------------------------------------------------------------
FAIL: instance_test.go:71: instanceTest.TestAddressesMissing
[LOG] 0:00.000 DEBUG juju.testing setting feature flags: address-allocation
instance_test.go:83:
c.Check(addr, gc.DeepEquals, []network.Address{})
... obtained []network.Address = []network.Address{public:testing.invalid, local-cloud:testing.invalid}
... expected []network.Address = []network.Address{}
exit status 1
I tested this with 8.8.8.8 as my provider and it doesn't, though I see that my ISPs resolver does.