File tree 1 file changed +3
-3
lines changed
tests/functional/data_classes
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -201,12 +201,12 @@ def test_authorizer_response_allow_route_with_underscore(builder: APIGatewayAuth
201
201
def test_parse_api_gateway_arn_with_resource ():
202
202
mock_event = {
203
203
"type" : "TOKEN" ,
204
- "authorizationToken " : "allow " ,
205
- "methodArn " : "arn:aws:execute-api:us-west-2:123456789012:ymy8tbxw7b/*/GET/foo/bar " ,
204
+ "methodArn " : "arn:aws:execute-api:us-east-2:1234567890:abcd1234/latest/GET/path/part/part/1 " ,
205
+ "authorizationToken " : "Bearer TOKEN " ,
206
206
}
207
207
event = APIGatewayAuthorizerTokenEvent (mock_event )
208
208
event_arn = event .parsed_arn
209
- assert "foo/bar" == event_arn . resource
209
+ assert event_arn . resource == "path/part/part/1"
210
210
211
211
authorizer_policy = APIGatewayAuthorizerResponse (
212
212
principal_id = "fooPrinciple" ,
You can’t perform that action at this time.
0 commit comments