summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorUlysses Souza <ulysses.souza@docker.com>2020-07-02 10:51:35 +0200
committerGitHub <noreply@github.com>2020-07-02 10:51:35 +0200
commit74a0734d37f92b6d812b1df0f46537c9fa72eeb7 (patch)
tree072a6f2e694b5d9fdcdb00f4b777b9cac44a344e /tests/unit
parentd3adac90274045291b4e06209dc5daa4160ca43d (diff)
parentdf7bf5f5e0a5baafbbf5b88638c09abfd288f686 (diff)
downloaddocker-py-74a0734d37f92b6d812b1df0f46537c9fa72eeb7.tar.gz
Merge pull request #2551 from haboustak/2550-add-driveropts-to-endpointconfig
Add support for DriverOpts in EndpointConfig
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/api_network_test.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/api_network_test.py b/tests/unit/api_network_test.py
index c78554d..758f013 100644
--- a/tests/unit/api_network_test.py
+++ b/tests/unit/api_network_test.py
@@ -136,7 +136,8 @@ class NetworkTest(BaseAPIClientTest):
container={'Id': container_id},
net_id=network_id,
aliases=['foo', 'bar'],
- links=[('baz', 'quux')]
+ links=[('baz', 'quux')],
+ driver_opt={'com.docker-py.setting': 'yes'},
)
assert post.call_args[0][0] == (
@@ -148,6 +149,7 @@ class NetworkTest(BaseAPIClientTest):
'EndpointConfig': {
'Aliases': ['foo', 'bar'],
'Links': ['baz:quux'],
+ 'DriverOpts': {'com.docker-py.setting': 'yes'},
},
}