Ejemplo n.º 1
0
 def test_put_code_binding(self):
     schemas_api_caller = SchemasApiCaller(self.client)
     self.client.put_code_binding.return_value = {
         "Status": "CREATE_IN_PROGRESS",
         "LastModified": "2019-11-02T08:04:58Z",
         "SchemaVersion": "1",
     }
     schemas_api_caller.put_code_binding("Java8", "aws.events", "aws.batch.BatchJobStateChange", "1")
     self.client.put_code_binding.assert_called_once_with(
         Language="Java8", RegistryName="aws.events", SchemaName="aws.batch.BatchJobStateChange", SchemaVersion="1"
     )
def get_schemas_api_caller():
    aws_configuration = get_aws_configuration_choice()
    schemas_client = get_schemas_client(aws_configuration["profile"],
                                        aws_configuration["region"])
    return SchemasApiCaller(schemas_client)