mirror of
https://github.com/clearlinux/libnetwork.git
synced 2026-09-06 22:01:55 +00:00
Add restrictions for default drivers/bridge name
- modified tests accordingly - added extra tests for creating a couple of bridge nw and query them Signed-off-by: Alessandro Boch <aboch@docker.com>
This commit is contained in:
+8
-1
@@ -246,7 +246,14 @@ func TestGetNetworksAndEndpoints(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
nc := networkCreate{Name: "sh", NetworkType: bridgeNetType}
|
||||
ops := options.Generic{
|
||||
netlabel.GenericData: map[string]string{
|
||||
"BridgeName": "api_test_nw",
|
||||
"AllowNonDefaultBridge": "true",
|
||||
},
|
||||
}
|
||||
|
||||
nc := networkCreate{Name: "sh", NetworkType: bridgeNetType, Options: ops}
|
||||
body, err := json.Marshal(nc)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
Reference in New Issue
Block a user