def test_parse_and_register_decryptors_definitions_one_definition(self): Config.parse_and_register_decryptors_definitions([{ 'implementer': 'SOPS' }]) sops_decryptor = DecryptionUtils._DecryptionUtils__config_value_decryptors[ 0] self.assertEqual(type(sops_decryptor), SOPS)
def test_parse_and_register_decryptors_definitions_one_definition_with_config( self): Config.parse_and_register_decryptors_definitions([{ 'implementer': 'SOPS', 'config': { 'additional_sops_args': ['--aws-profile=foo'] } }]) sops_decryptor = DecryptionUtils._DecryptionUtils__config_value_decryptors[ 0] self.assertEqual(sops_decryptor._SOPS__additional_sops_args, ['--aws-profile=foo'])