def parse_request(self, parse_params: HttpRequest) -> dict: return recursive_json_join( { "info": { "resourceName": safe_key_from_query(parse_params.body, "TopicArn"), "targetArn": safe_key_from_query(parse_params.body, "TopicArn"), } }, super().parse_request(parse_params), )
def parse_request(self, parse_params: HttpRequest) -> dict: return recursive_json_join( { "info": { "resourceName": safe_key_from_query(parse_params.body, "QueueUrl") } }, super().parse_request(parse_params), )
def test_key_from_query(input_params, expected_output): assert safe_key_from_query(*input_params) == expected_output