Skip to content

Commit

Permalink
fix non aws-validated tests test_import_rest_api(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
bentsku committed Jun 2, 2023
1 parent 142f3b2 commit bb80d52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/apigateway/test_apigateway_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,7 @@ def test_import_rest_api(self, base_path_type, create_rest_apigw, import_apigw,
resources = aws_client.apigateway.get_resources(restApiId=rest_api_id)
for rv in resources.get("items"):
for method in rv.get("resourceMethods", {}).values():
assert method.get("authorizationType") == "REQUEST"
assert method.get("authorizationType") == "CUSTOM"
assert method.get("authorizerId") is not None

spec_file = load_file(TEST_SWAGGER_FILE_YAML)
Expand Down Expand Up @@ -1837,7 +1837,7 @@ def test_import_rest_apis(self, base_path_type, create_rest_apigw, import_apigw,
resources = get_rest_api_resources(aws_client.apigateway, restApiId=rest_api_id)
for rv in resources:
for method in rv.get("resourceMethods", {}).values():
assert method.get("authorizationType") == "REQUEST"
assert method.get("authorizationType") == "CUSTOM"
assert method.get("authorizerId") is not None

spec_file = load_file(TEST_SWAGGER_FILE_YAML)
Expand Down

0 comments on commit bb80d52

Please sign in to comment.