mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Skips mode check in Windows
This commit is contained in:
parent
5b95495e75
commit
2f30ad93b1
1 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,7 @@ from tests.support.unit import TestCase, skipIf
|
|||
from tests.support.paths import TMP, CODE_DIR
|
||||
|
||||
# Import salt libs
|
||||
import salt.utils
|
||||
from salt.utils import cloud
|
||||
|
||||
GPG_KEYDIR = os.path.join(TMP, 'gpg-keydir')
|
||||
|
@ -123,6 +124,7 @@ class CloudUtilsTestCase(TestCase):
|
|||
# we successful pass the place with os.write(tmpfd, ...
|
||||
self.assertNotEqual("a bytes-like object is required, not 'str'", str(context.exception))
|
||||
|
||||
@skipIf(salt.utils.is_windows(), 'Not applicable to Windows')
|
||||
def test_check_key_path_and_mode(self):
|
||||
with tempfile.NamedTemporaryFile() as f:
|
||||
key_file = f.name
|
||||
|
|
Loading…
Add table
Reference in a new issue