From 77c977bce75d028d03dbde85ede053a1dddc017e Mon Sep 17 00:00:00 2001 From: Joffrey F Date: Thu, 22 Mar 2018 09:51:10 +0100 Subject: Add isolation param to build Signed-off-by: Joffrey F --- tests/integration/api_build_test.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tests/integration/api_build_test.py') diff --git a/tests/integration/api_build_test.py b/tests/integration/api_build_test.py index ce587d5..13bd8ac 100644 --- a/tests/integration/api_build_test.py +++ b/tests/integration/api_build_test.py @@ -138,6 +138,21 @@ class BuildTest(BaseAPIIntegrationTest): # There is currently no way to get the shmsize # that was used to build the image + @requires_api_version('1.24') + def test_build_isolation(self): + script = io.BytesIO('\n'.join([ + 'FROM scratch', + 'CMD sh -c "echo \'Deaf To All But The Song\'' + ]).encode('ascii')) + + stream = self.client.build( + fileobj=script, tag='isolation', + isolation='default' + ) + + for chunk in stream: + pass + @requires_api_version('1.23') def test_build_labels(self): script = io.BytesIO('\n'.join([ -- cgit v1.2.1