mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
api/t/ctr: deprecate DefaultNetworkSettings
This struct is only used to report the networking state for the default bridge network when the container is connected to it. It was deprecated in v1.09 (API v1.21), and scheduled for removal in v1.11. Unfortunately, the deprecation warning was wrongly formatted in the Go code. However, deprecation warnings are already present in swagger.yaml, so don't touch it. Signed-off-by: Albin Kerouanton <albinker@gmail.com>
This commit is contained in:
@@ -103,7 +103,6 @@ func (s *DockerAPISuite) TestInspectAPIBridgeNetworkSettings121(c *testing.T) {
|
||||
assert.NilError(c, err)
|
||||
|
||||
settings := inspectJSON.NetworkSettings
|
||||
assert.Assert(c, settings.IPAddress != "")
|
||||
assert.Assert(c, settings.Networks["bridge"] != nil)
|
||||
assert.Equal(c, settings.IPAddress, settings.Networks["bridge"].IPAddress)
|
||||
assert.Assert(c, settings.Networks["bridge"].IPAddress != "")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user