mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
fix dockermod test
This commit is contained in:
parent
948830a4cb
commit
185c405265
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user