mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
Skip test requiring crypto when none available
This commit is contained in:
parent
e52b390d63
commit
b770f965d3
1 changed files with 1 additions and 0 deletions
|
@ -66,6 +66,7 @@ class EC2TestCase(TestCase, LoaderModuleMockMixin):
|
|||
self.assertRaises(
|
||||
SaltCloudSystemExit, ec2._validate_key_path_and_mode, 'key_file')
|
||||
|
||||
@skipIf(not ec2.HAS_M2 and not ec2.HAS_PYCRYPTO, 'Needs crypto library')
|
||||
@patch('salt.cloud.clouds.ec2._get_node')
|
||||
@patch('salt.cloud.clouds.ec2.get_location')
|
||||
@patch('salt.cloud.clouds.ec2.get_provider')
|
||||
|
|
Loading…
Add table
Reference in a new issue