summaryrefslogtreecommitdiff
path: root/tests/acceptance
diff options
context:
space:
mode:
authorCollins Abitekaniza <abtcolns@gmail.com>2019-02-03 04:29:20 +0300
committerCollins Abitekaniza <abtcolns@gmail.com>2019-03-24 01:05:30 +0300
commitc6dd7da15eb3d85a1f7634e8ded9fe42c9035669 (patch)
tree9714c274604717ce1f0d417d32da91c478f48b0e /tests/acceptance
parent3cddd1b670a56b323044210a3f77d107bcfc51a1 (diff)
only pull images that can't build
Signed-off-by: Collins Abitekaniza <abtcolns@gmail.com>
Diffstat (limited to 'tests/acceptance')
-rw-r--r--tests/acceptance/cli_test.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/acceptance/cli_test.py b/tests/acceptance/cli_test.py
index 5142f96e..8a7c0feb 100644
--- a/tests/acceptance/cli_test.py
+++ b/tests/acceptance/cli_test.py
@@ -633,6 +633,13 @@ class CLITestCase(DockerClientTestCase):
'image library/nonexisting-image:latest not found' in result.stderr or
'pull access denied for nonexisting-image' in result.stderr)
+ def test_pull_with_build(self):
+ result = self.dispatch(['-f', 'pull-with-build.yml', 'pull'])
+
+ assert 'Pulling simple' not in result.stderr
+ assert 'Pulling from_simple' not in result.stderr
+ assert 'Pulling another ...' in result.stderr
+
def test_pull_with_quiet(self):
assert self.dispatch(['pull', '--quiet']).stderr == ''
assert self.dispatch(['pull', '--quiet']).stdout == ''