Esempio n. 1
0
 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),
     )
Esempio n. 2
0
 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),
     )
Esempio n. 3
0
def test_key_from_query(input_params, expected_output):
    assert safe_key_from_query(*input_params) == expected_output