Skip to content

Commit 8dd97c8

Browse files
committed
test: remove duplicate functions
1 parent f89546a commit 8dd97c8

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

test/e2e/tests/helper.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -259,23 +259,6 @@ def get_vpc_endpoint_service_configuration(self, vpc_endpoint_service_configurat
259259
except self.ec2_client.exceptions.ClientError:
260260
return None
261261

262-
def assert_vpc_endpoint_service_configuration(self, vpc_endpoint_service_configuration_id: str, exists=True):
263-
res_found = False
264-
try:
265-
aws_res = self.ec2_client.describe_vpc_endpoint_service_configurations(ServiceIds=[vpc_endpoint_service_configuration_id])
266-
res_found = len(aws_res["ServiceConfigurations"]) > 0
267-
except self.ec2_client.exceptions.ClientError:
268-
pass
269-
assert res_found is exists
270-
def get_vpc_endpoint_service_configuration(self, vpc_endpoint_service_configuration_id: str) -> Union[None, Dict]:
271-
try:
272-
aws_res = self.ec2_client.describe_vpc_endpoint_service_configurations(ServiceIds=[vpc_endpoint_service_configuration_id])
273-
if len(aws_res["ServiceConfigurations"]) > 0:
274-
return aws_res["ServiceConfigurations"][0]
275-
return None
276-
except self.ec2_client.exceptions.ClientError:
277-
return None
278-
279262
def assert_vpc_endpoint_service_configuration(self, vpc_endpoint_service_configuration_id: str, exists=True):
280263
res_found = False
281264
try:

0 commit comments

Comments
 (0)