mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Merge pull request #41049 from Ch3LL/fix_wheel_test
fix integration wheel test_gen test
This commit is contained in:
commit
ff39613a53
@ -22,8 +22,13 @@ class KeyWheelModuleTest(integration.TestCase, integration.AdaptedConfigurationT
|
||||
|
||||
self.assertIn('pub', ret)
|
||||
self.assertIn('priv', ret)
|
||||
self.assertTrue(
|
||||
ret.get('pub', '').startswith('-----BEGIN PUBLIC KEY-----'))
|
||||
try:
|
||||
self.assertTrue(
|
||||
ret.get('pub', '').startswith('-----BEGIN PUBLIC KEY-----'))
|
||||
except AssertionError:
|
||||
self.assertTrue(
|
||||
ret.get('pub', '').startswith('-----BEGIN RSA PUBLIC KEY-----'))
|
||||
|
||||
self.assertTrue(
|
||||
ret.get('priv', '').startswith('-----BEGIN RSA PRIVATE KEY-----'))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user