mirror of
https://github.com/moby/moby.git
synced 2025-11-21 08:21:12 +03:00
api/types/network: use netip types as appropriate
And generate the ServiceInfo struct from the Swagger spec. Signed-off-by: Cory Snider <csnider@mirantis.com>
This commit is contained in:
committed by
Sebastiaan van Stijn
parent
ef31514a9f
commit
a90adb6dc1
@@ -110,5 +110,5 @@ func (s *DockerAPISuite) TestInspectAPIBridgeNetworkSettings121(c *testing.T) {
|
||||
|
||||
settings := inspectJSON.NetworkSettings
|
||||
assert.Assert(c, settings.Networks["bridge"] != nil)
|
||||
assert.Assert(c, settings.Networks["bridge"].IPAddress != "")
|
||||
assert.Assert(c, settings.Networks["bridge"].IPAddress.IsValid())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user