def test_get_key_arn_cached(self, kms_mock):
     self.assertEqual(
         keymanager.get_key_arn('mockalias'),
         'mocked:arn'
     )
Exemple #2
0
 def test_get_key_arn_cached(self, kms_mock):
     self.assertEqual(keymanager.get_key_arn('mockalias'), 'mocked:arn')
 def test_get_key_arn(self, kms_mock):
     kms_mock.return_value = {'KeyMetadata': {'Arn': 'mocked:arn'}}
     self.assertEqual(
         keymanager.get_key_arn('mockalias'),
         'mocked:arn'
     )
Exemple #4
0
 def test_get_key_arn(self, kms_mock):
     kms_mock.return_value = {'KeyMetadata': {'Arn': 'mocked:arn'}}
     self.assertEqual(keymanager.get_key_arn('mockalias'), 'mocked:arn')