Skip to content

Commit a64774c

Browse files
authored
Revert "Add missing import and add partition into base test (#2463)" (#2466)
This reverts commit 7176885.
1 parent 2b9c3e6 commit a64774c

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

integration/combination/test_api_with_authorizer_apikey.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ def test_authorizer_apikey(self):
1919
apigw_client = self.client_provider.api_client
2020

2121
authorizers = apigw_client.get_authorizers(restApiId=rest_api_id)["items"]
22-
23-
lambda_authorizer_uri = "arn:{}:apigateway:{}:lambda:path/2015-03-31/functions/{}/invocations".format(
24-
self.partition, self.my_region, stack_outputs["AuthorizerFunctionArn"]
22+
lambda_authorizer_uri = (
23+
"arn:aws:apigateway:"
24+
+ self.my_region
25+
+ ":lambda:path/2015-03-31/functions/"
26+
+ stack_outputs["AuthorizerFunctionArn"]
27+
+ "/invocations"
2528
)
2629

2730
lambda_token_authorizer = get_authorizer_by_name(authorizers, "MyLambdaTokenAuth")

integration/combination/test_function_with_self_managed_kafka.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from unittest.case import skipIf
21
import pytest
32

43
from integration.helpers.base_test import BaseTest

integration/helpers/base_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ def setUpClass(cls):
7272
cls.code_dir = Path(cls.resources_dir, "code")
7373
cls.session = boto3.session.Session()
7474
cls.my_region = cls.session.region_name
75-
cls.partition = cls.session.get_partition_for_region(cls.my_region)
7675
cls.client_provider = ClientProvider()
7776
cls.file_to_s3_uri_map = read_test_config_file("file_to_s3_map_modified.json")
7877
cls.code_key_to_file = read_test_config_file("code_key_to_file_map.json")

0 commit comments

Comments
 (0)