mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
api/types/network: move InspectOptions to client mod
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com>
This commit is contained in:
@@ -584,7 +584,7 @@ func TestAccessToPublishedPort(t *testing.T) {
|
||||
// Use the default bridge addresses as host addresses (like "host-gateway", but
|
||||
// there's no way to tell wget to prefer ipv4/ipv6 transport, so just use the
|
||||
// addresses directly).
|
||||
insp, err := c.NetworkInspect(ctx, "bridge", networktypes.InspectOptions{})
|
||||
insp, err := c.NetworkInspect(ctx, "bridge", client.InspectOptions{})
|
||||
assert.NilError(t, err)
|
||||
for _, ipamCfg := range insp.IPAM.Config {
|
||||
ipv := "ipv4"
|
||||
@@ -1821,7 +1821,7 @@ func TestNetworkInspectGateway(t *testing.T) {
|
||||
assert.NilError(t, err)
|
||||
defer network.RemoveNoError(ctx, t, c, netName)
|
||||
|
||||
insp, err := c.NetworkInspect(ctx, nid, networktypes.InspectOptions{})
|
||||
insp, err := c.NetworkInspect(ctx, nid, client.InspectOptions{})
|
||||
assert.NilError(t, err)
|
||||
for _, ipamCfg := range insp.IPAM.Config {
|
||||
_, err := netip.ParseAddr(ipamCfg.Gateway)
|
||||
|
||||
Reference in New Issue
Block a user