Skips mode check in Windows

This commit is contained in:
twangboy 2017-11-10 14:29:10 -07:00
parent 5b95495e75
commit 2f30ad93b1
No known key found for this signature in database
GPG key ID: 93FF3BDEB278C9EB

View file

@ -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