diff --git a/tests/integration/deploy/test_deploy_command.py b/tests/integration/deploy/test_deploy_command.py index 893799e157..878607f8b3 100644 --- a/tests/integration/deploy/test_deploy_command.py +++ b/tests/integration/deploy/test_deploy_command.py @@ -32,11 +32,7 @@ class TestDeploy(PackageIntegBase, DeployIntegBase): def setUpClass(cls): cls.docker_client = docker.from_env() cls.local_images = [ - ("alpine", "latest"), - # below 3 images are for test_deploy_nested_stacks() - ("python", "3.9-slim"), - ("python", "3.8-slim"), - ("python", "3.7-slim"), + ("public.ecr.aws/sam/emulation-python3.8", "latest"), ] # setup some images locally by pulling them. for repo, tag in cls.local_images: diff --git a/tests/integration/package/test_package_command_image.py b/tests/integration/package/test_package_command_image.py index 8534c68e07..a30bc880e6 100644 --- a/tests/integration/package/test_package_command_image.py +++ b/tests/integration/package/test_package_command_image.py @@ -27,11 +27,7 @@ class TestPackageImage(PackageIntegBase): def setUpClass(cls): cls.docker_client = docker.from_env() cls.local_images = [ - ("alpine", "latest"), - # below 3 images are for test_package_with_deep_nested_template_image() - ("python", "3.9-slim"), - ("python", "3.8-slim"), - ("python", "3.7-slim"), + ("public.ecr.aws/sam/emulation-python3.8", "latest"), ] # setup some images locally by pulling them. for repo, tag in cls.local_images: @@ -211,9 +207,7 @@ def test_package_with_deep_nested_template_image(self): # verify all function images are pushed images = [ - ("python", "3.9-slim"), - ("python", "3.8-slim"), - ("python", "3.7-slim"), + ("public.ecr.aws/sam/emulation-python3.8", "latest"), ] for image, tag in images: # check string like this: diff --git a/tests/integration/testdata/package/aws-lambda-function-image-and-api.yaml b/tests/integration/testdata/package/aws-lambda-function-image-and-api.yaml index 73e95a14d4..c68162e5c1 100644 --- a/tests/integration/testdata/package/aws-lambda-function-image-and-api.yaml +++ b/tests/integration/testdata/package/aws-lambda-function-image-and-api.yaml @@ -7,7 +7,7 @@ Resources: Type: AWS::Lambda::Function Properties: PackageType: Image - Code: alpine:latest + Code: public.ecr.aws/sam/emulation-python3.8:latest Role: Fn::GetAtt: - "LambdaExecutionRole" diff --git a/tests/integration/testdata/package/aws-lambda-function-image.yaml b/tests/integration/testdata/package/aws-lambda-function-image.yaml index 9aee7c0c3a..fa55f20f7b 100644 --- a/tests/integration/testdata/package/aws-lambda-function-image.yaml +++ b/tests/integration/testdata/package/aws-lambda-function-image.yaml @@ -7,7 +7,7 @@ Resources: Type: AWS::Lambda::Function Properties: PackageType: Image - Code: alpine:latest + Code: public.ecr.aws/sam/emulation-python3.8:latest Role: Fn::GetAtt: - "LambdaExecutionRole" diff --git a/tests/integration/testdata/package/aws-serverless-function-image.yaml b/tests/integration/testdata/package/aws-serverless-function-image.yaml index d4cce7863f..074b83eaae 100644 --- a/tests/integration/testdata/package/aws-serverless-function-image.yaml +++ b/tests/integration/testdata/package/aws-serverless-function-image.yaml @@ -7,7 +7,7 @@ Resources: Type: AWS::Serverless::Function Properties: PackageType: Image - ImageUri: alpine:latest + ImageUri: public.ecr.aws/sam/emulation-python3.8:latest Events: HelloWorld: Type: Api diff --git a/tests/integration/testdata/package/deep-nested-image/ChildStackX/ChildStackY/template.yaml b/tests/integration/testdata/package/deep-nested-image/ChildStackX/ChildStackY/template.yaml index c17e15143f..d32105ab84 100644 --- a/tests/integration/testdata/package/deep-nested-image/ChildStackX/ChildStackY/template.yaml +++ b/tests/integration/testdata/package/deep-nested-image/ChildStackX/ChildStackY/template.yaml @@ -7,4 +7,4 @@ Resources: Type: AWS::Serverless::Function Properties: PackageType: Image - ImageUri: python:3.9-slim \ No newline at end of file + ImageUri: public.ecr.aws/sam/emulation-python3.8:latest \ No newline at end of file diff --git a/tests/integration/testdata/package/deep-nested-image/ChildStackX/template.yaml b/tests/integration/testdata/package/deep-nested-image/ChildStackX/template.yaml index 89b70fe0ea..597f332d22 100644 --- a/tests/integration/testdata/package/deep-nested-image/ChildStackX/template.yaml +++ b/tests/integration/testdata/package/deep-nested-image/ChildStackX/template.yaml @@ -7,7 +7,7 @@ Resources: Type: AWS::Serverless::Function Properties: PackageType: Image - ImageUri: python:3.7-slim + ImageUri: public.ecr.aws/sam/emulation-python3.8:latest ChildStackY: Type: AWS::Serverless::Application diff --git a/tests/integration/testdata/package/deep-nested-image/template.yaml b/tests/integration/testdata/package/deep-nested-image/template.yaml index e5fdd116a2..c2f304ddd8 100644 --- a/tests/integration/testdata/package/deep-nested-image/template.yaml +++ b/tests/integration/testdata/package/deep-nested-image/template.yaml @@ -7,7 +7,7 @@ Resources: Type: AWS::Serverless::Function Properties: PackageType: Image - ImageUri: python:3.8-slim + ImageUri: public.ecr.aws/sam/emulation-python3.8:latest ChildStackX: Type: AWS::Serverless::Application