diff --git a/tests/integration/deploy/test_deploy_command.py b/tests/integration/deploy/test_deploy_command.py index 370bef1fac..9f0231127b 100644 --- a/tests/integration/deploy/test_deploy_command.py +++ b/tests/integration/deploy/test_deploy_command.py @@ -1197,29 +1197,3 @@ def test_deploy_logs_warning_with_cdk_project(self): deploy_process_execute = run_command(deploy_command_list) self.assertIn(warning_message, deploy_process_execute.stdout) self.assertEqual(deploy_process_execute.process.returncode, 0) - - def _method_to_stack_name(self, method_name): - """Method expects method name which can be a full path. Eg: test.integration.test_deploy_command.method_name""" - method_name = method_name.split(".")[-1] - return f"{method_name.replace('_', '-')}-{CFN_PYTHON_VERSION_SUFFIX}" - - def _stack_name_to_companion_stack(self, stack_name): - return CompanionStack(stack_name).stack_name - - def _delete_companion_stack(self, cfn_client, ecr_client, companion_stack_name): - repos = list() - try: - cfn_client.describe_stacks(StackName=companion_stack_name) - except ClientError: - return - stack = boto3.resource("cloudformation").Stack(companion_stack_name) - resources = stack.resource_summaries.all() - for resource in resources: - if resource.resource_type == "AWS::ECR::Repository": - repos.append(resource.physical_resource_id) - for repo in repos: - try: - ecr_client.delete_repository(repositoryName=repo, force=True) - except ecr_client.exceptions.RepositoryNotFoundException: - pass - cfn_client.delete_stack(StackName=companion_stack_name) diff --git a/tests/integration/testdata/sync/infra/after/Ruby/function/Gemfile b/tests/integration/testdata/sync/infra/after/Ruby/function/Gemfile index 69fc281fa7..2000ad3a89 100644 --- a/tests/integration/testdata/sync/infra/after/Ruby/function/Gemfile +++ b/tests/integration/testdata/sync/infra/after/Ruby/function/Gemfile @@ -2,4 +2,4 @@ source "https://rubygems.org" gem "ruby-statistics" -ruby '~> 2.7.0' +ruby '~> 2.5.0' diff --git a/tests/integration/testdata/sync/infra/after/Ruby/layer/Gemfile b/tests/integration/testdata/sync/infra/after/Ruby/layer/Gemfile index 620aaa62f8..a76cdc43e5 100644 --- a/tests/integration/testdata/sync/infra/after/Ruby/layer/Gemfile +++ b/tests/integration/testdata/sync/infra/after/Ruby/layer/Gemfile @@ -1,3 +1,3 @@ source "https://rubygems.org" -ruby '~> 2.7.0' +ruby '~> 2.5.0' diff --git a/tests/integration/testdata/sync/infra/before/Ruby/function/Gemfile b/tests/integration/testdata/sync/infra/before/Ruby/function/Gemfile index 69fc281fa7..2000ad3a89 100644 --- a/tests/integration/testdata/sync/infra/before/Ruby/function/Gemfile +++ b/tests/integration/testdata/sync/infra/before/Ruby/function/Gemfile @@ -2,4 +2,4 @@ source "https://rubygems.org" gem "ruby-statistics" -ruby '~> 2.7.0' +ruby '~> 2.5.0' diff --git a/tests/integration/testdata/sync/infra/before/Ruby/layer/Gemfile b/tests/integration/testdata/sync/infra/before/Ruby/layer/Gemfile index 620aaa62f8..a76cdc43e5 100644 --- a/tests/integration/testdata/sync/infra/before/Ruby/layer/Gemfile +++ b/tests/integration/testdata/sync/infra/before/Ruby/layer/Gemfile @@ -1,3 +1,3 @@ source "https://rubygems.org" -ruby '~> 2.7.0' +ruby '~> 2.5.0' diff --git a/tests/integration/testdata/sync/infra/template-ruby-after.yaml b/tests/integration/testdata/sync/infra/template-ruby-after.yaml index dc869b1691..7a50622960 100644 --- a/tests/integration/testdata/sync/infra/template-ruby-after.yaml +++ b/tests/integration/testdata/sync/infra/template-ruby-after.yaml @@ -12,7 +12,7 @@ Resources: AutoPublishAlias: Hello1Alias CodeUri: after/Ruby/function/ Handler: app.lambda_handler - Runtime: ruby2.7 + Runtime: ruby2.5 Architectures: - x86_64 Layers: @@ -25,6 +25,6 @@ Resources: Description: Hello World Ruby Layer ContentUri: after/Ruby/layer/ CompatibleRuntimes: - - ruby2.7 + - ruby2.5 Metadata: - BuildMethod: ruby2.7 \ No newline at end of file + BuildMethod: ruby2.5 \ No newline at end of file diff --git a/tests/integration/testdata/sync/infra/template-ruby-before.yaml b/tests/integration/testdata/sync/infra/template-ruby-before.yaml index f5c312b2cb..5dfc0a72c5 100644 --- a/tests/integration/testdata/sync/infra/template-ruby-before.yaml +++ b/tests/integration/testdata/sync/infra/template-ruby-before.yaml @@ -12,7 +12,7 @@ Resources: AutoPublishAlias: Hello1Alias CodeUri: before/Ruby/function/ Handler: app.lambda_handler - Runtime: ruby2.7 + Runtime: ruby2.5 Architectures: - x86_64 Layers: @@ -25,6 +25,6 @@ Resources: Description: Hello World Ruby Layer ContentUri: before/Ruby/layer/ CompatibleRuntimes: - - ruby2.7 + - ruby2.5 Metadata: - BuildMethod: ruby2.7 \ No newline at end of file + BuildMethod: ruby2.5 \ No newline at end of file