mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
client: refactor create network api implementation to wrap options/results
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com>
This commit is contained in:
@@ -56,5 +56,6 @@ func TestNetworkCreate(t *testing.T) {
|
||||
})
|
||||
assert.NilError(t, err)
|
||||
assert.Check(t, is.Equal(networkResponse.ID, "network_id"))
|
||||
assert.Check(t, is.Equal(networkResponse.Warning, "warning"))
|
||||
assert.Check(t, is.Len(networkResponse.Warning, 1))
|
||||
assert.Check(t, is.Equal(networkResponse.Warning[0], "warning"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user