From 185c4052651df52ae583f131e47804c6db8550fd Mon Sep 17 00:00:00 2001 From: Daniel Wallace Date: Tue, 2 May 2017 16:31:38 -0600 Subject: [PATCH] fix dockermod test --- tests/integration/modules/test_dockermod.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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,