aboutsummaryrefslogtreecommitdiff
path: root/kolla/tests
diff options
context:
space:
mode:
authorVictor Coutellier <victor.coutellier@gmail.com>2018-06-30 08:32:37 -0400
committerVictor Coutellier <victor.coutellier@gmail.com>2018-06-30 11:23:01 -0400
commitf53fcc7e5b250118830615a90cc1675032ffd2aa (patch)
treee18841be0e8c44f92354a72800b9d6f944d11e0b /kolla/tests
parent430f335a8b9b0ae8878912d5b5283e63b95d3a01 (diff)
downloadkolla-f53fcc7e5b250118830615a90cc1675032ffd2aa.tar.gz
kolla-f53fcc7e5b250118830615a90cc1675032ffd2aa.zip
Ability to build container against docker swarm
Add a decode=True option during call to dockerAPI in order to build container against recent docker swarm. Closes-Bug: #1779460 Change-Id: I48f041e7ed9dd5a5f410b4eaa081f6f013119d17
Diffstat (limited to 'kolla/tests')
-rw-r--r--kolla/tests/test_build.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/kolla/tests/test_build.py b/kolla/tests/test_build.py
index d5c7e77dc..b721bb237 100644
--- a/kolla/tests/test_build.py
+++ b/kolla/tests/test_build.py
@@ -87,7 +87,7 @@ class TasksTest(base.TestCase):
builder.run()
mock_client().build.assert_called_once_with(
- path=self.image.path, tag=self.image.canonical_name,
+ path=self.image.path, tag=self.image.canonical_name, decode=True,
network_mode=None, nocache=False, rm=True, pull=True, forcerm=True,
buildargs=None)
@@ -104,7 +104,7 @@ class TasksTest(base.TestCase):
builder.run()
mock_client().build.assert_called_once_with(
- path=self.image.path, tag=self.image.canonical_name,
+ path=self.image.path, tag=self.image.canonical_name, decode=True,
network_mode='host', nocache=False, rm=True, pull=True,
forcerm=True, buildargs=None)
@@ -124,7 +124,7 @@ class TasksTest(base.TestCase):
builder.run()
mock_client().build.assert_called_once_with(
- path=self.image.path, tag=self.image.canonical_name,
+ path=self.image.path, tag=self.image.canonical_name, decode=True,
network_mode=None, nocache=False, rm=True, pull=True, forcerm=True,
buildargs=build_args)
@@ -143,7 +143,7 @@ class TasksTest(base.TestCase):
builder.run()
mock_client().build.assert_called_once_with(
- path=self.image.path, tag=self.image.canonical_name,
+ path=self.image.path, tag=self.image.canonical_name, decode=True,
network_mode=None, nocache=False, rm=True, pull=True, forcerm=True,
buildargs=build_args)
@@ -164,7 +164,7 @@ class TasksTest(base.TestCase):
builder.run()
mock_client().build.assert_called_once_with(
- path=self.image.path, tag=self.image.canonical_name,
+ path=self.image.path, tag=self.image.canonical_name, decode=True,
network_mode=None, nocache=False, rm=True, pull=True, forcerm=True,
buildargs=build_args)