mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Adding passing windows nacl runner tests to whitelist
This commit is contained in:
parent
8b971e5e5a
commit
51500ac701
@ -175,7 +175,7 @@ def _get_sk(**kwargs):
|
||||
sk_file = config['sk_file']
|
||||
if not key and sk_file:
|
||||
with salt.utils.files.fopen(sk_file, 'rb') as keyf:
|
||||
key = six.text_type(keyf.read()).rstrip('\n')
|
||||
key = salt.utils.stringutils.to_unicode(keyf.read()).strip('\n')
|
||||
if key is None:
|
||||
raise Exception('no key or sk_file found')
|
||||
return base64.b64decode(key)
|
||||
@ -193,7 +193,7 @@ def _get_pk(**kwargs):
|
||||
pubkey = six.text_type(keyf.read()).rstrip('\n')
|
||||
if pubkey is None:
|
||||
raise Exception('no pubkey or pk_file found')
|
||||
pubkey = six.text_type(pubkey)
|
||||
pubkey = salt.utils.stringutils.to_str(pubkey)
|
||||
return base64.b64decode(pubkey)
|
||||
|
||||
|
||||
|
@ -69,7 +69,7 @@ class NaclTest(ShellCase):
|
||||
pk = ret['return']['pk']
|
||||
sk = ret['return']['sk']
|
||||
|
||||
unencrypted_data = 'hello'
|
||||
unencrypted_data = b'hello'
|
||||
|
||||
# Encrypt with pk
|
||||
ret = self.run_run_plus(
|
||||
|
@ -47,6 +47,7 @@ integration.renderers.test_pydsl
|
||||
integration.returners.test_librato_return
|
||||
integration.runners.test_fileserver
|
||||
integration.runners.test_jobs
|
||||
integration.runners.test_nacl
|
||||
integration.runners.test_salt
|
||||
integration.sdb.test_env
|
||||
integration.states.test_host
|
||||
|
Loading…
Reference in New Issue
Block a user