diff --git a/tests/integration/modules/test_dockermod.py b/tests/integration/modules/test_dockermod.py index 16e00e1046..fa841bb56d 100644 --- a/tests/integration/modules/test_dockermod.py +++ b/tests/integration/modules/test_dockermod.py @@ -7,6 +7,7 @@ Integration tests for the docker_container states from __future__ import absolute_import import functools import random +import string import tempfile # Import Salt Testing Libs @@ -16,6 +17,9 @@ from tests.support.paths import FILES, TMP from tests.support.helpers import destructiveTest from tests.support.mixins import SaltReturnAssertsMixin +# Import Salt Libs +import salt.utils + def _random_name(prefix=''): ret = prefix @@ -50,7 +54,7 @@ class DockerCallTestCase(ModuleCase, SaltReturnAssertsMixin): tmp_build_dir= tempfile.mkdtemp(dir=TMP) self.run_state('file.managed', - source='salt://docker_non_root/Dockerfile' + source='salt://docker_non_root/Dockerfile', name='{0}/Dockerfile'.format(tmp_build_dir)) self.run_state('docker_image.present', build=tmp_build_dir,