SSM - Add random ZIP file to make Terraform happy (#4850)
This commit is contained in:
parent
e5c8cf058c
commit
dce8cc0c04
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -224,7 +224,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [ 3.8 ]
|
python-version: [ 3.8 ]
|
||||||
part: ["aa", "ab", "ac", "ad"]
|
part: ["aa", "ab", "ac", "ad", "ae"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -252,18 +252,20 @@ jobs:
|
|||||||
docker run --rm -t --name motoserver -e TEST_SERVER_MODE=true -e MOTO_PORT=4566 -e AWS_SECRET_ACCESS_KEY=server_secret -e AWS_ACCESS_KEY_ID=server_key -v `pwd`:/moto -p 4566:4566 -v /var/run/docker.sock:/var/run/docker.sock python:3.7-buster /moto/scripts/ci_moto_server.sh &
|
docker run --rm -t --name motoserver -e TEST_SERVER_MODE=true -e MOTO_PORT=4566 -e AWS_SECRET_ACCESS_KEY=server_secret -e AWS_ACCESS_KEY_ID=server_key -v `pwd`:/moto -p 4566:4566 -v /var/run/docker.sock:/var/run/docker.sock python:3.7-buster /moto/scripts/ci_moto_server.sh &
|
||||||
MOTO_PORT=4566 python scripts/ci_wait_for_server.py
|
MOTO_PORT=4566 python scripts/ci_wait_for_server.py
|
||||||
# Poor man's parallelization
|
# Poor man's parallelization
|
||||||
# Running them sequentially takes to much time
|
# Running them sequentially takes too much time
|
||||||
# And using the build in parallel-argument does not help with reducing runtime
|
# And using the build in parallel-argument does not help with reducing runtime
|
||||||
# So we simply split the list of tests, and ask our CI for separate VM's to run them in parallel
|
# So we simply split the list of tests, and ask our CI for separate VM's to run them in parallel
|
||||||
- name: Get list of tests
|
- name: Get list of tests
|
||||||
run: |
|
run: |
|
||||||
cd moto-terraform-tests
|
cd moto-terraform-tests
|
||||||
bin/list-tests -i ../tests/terraform-tests.success.txt -e ../tests/terraform-tests.failures.txt > tftestlist.txt
|
bin/list-tests -i ../tests/terraform-tests.success.txt -e ../tests/terraform-tests.failures.txt > tftestlist.txt
|
||||||
split -n l/4 tftestlist.txt tf-split-
|
split -n l/5 tftestlist.txt tf-split-
|
||||||
cd ..
|
cd ..
|
||||||
- name: Run Terraform Tests
|
- name: Run Terraform Tests
|
||||||
run: |
|
run: |
|
||||||
cd moto-terraform-tests
|
cd moto-terraform-tests
|
||||||
|
echo "Copying random zipfile that is missing for SSM tests..."
|
||||||
|
cp terraform-provider-aws/aws/test-fixtures/lambda_elb.zip terraform-provider-aws/aws/test-fixtures/ssm-doc-acc-test.zip
|
||||||
AWS_DEFAULT_REGION=us-east-1 AWS_ALTERNATE_REGION=eu-west-1 bin/run-tests -t -i tf-split-${{ matrix.part }} -e ../tests/terraform-tests.failures.txt
|
AWS_DEFAULT_REGION=us-east-1 AWS_ALTERNATE_REGION=eu-west-1 bin/run-tests -t -i tf-split-${{ matrix.part }} -e ../tests/terraform-tests.failures.txt
|
||||||
cd ..
|
cd ..
|
||||||
- name: "Create report"
|
- name: "Create report"
|
||||||
|
@ -5,7 +5,6 @@ TestAccAWSEc2TransitGatewayVpcAttachment
|
|||||||
TestAccAWSFms
|
TestAccAWSFms
|
||||||
TestAccAWSIAMRolePolicy
|
TestAccAWSIAMRolePolicy
|
||||||
TestAccAWSSecurityGroup_forceRevokeRules_
|
TestAccAWSSecurityGroup_forceRevokeRules_
|
||||||
TestAccAWSSSMDocument_package
|
|
||||||
TestAccAWSDefaultSecurityGroup_Classic_
|
TestAccAWSDefaultSecurityGroup_Classic_
|
||||||
TestAccDataSourceAwsNetworkInterface_CarrierIPAssociation
|
TestAccDataSourceAwsNetworkInterface_CarrierIPAssociation
|
||||||
TestAccAWSRouteTable_IPv4_To_LocalGateway
|
TestAccAWSRouteTable_IPv4_To_LocalGateway
|
||||||
|
@ -86,22 +86,7 @@ TestAccAWSRolePolicyAttachment
|
|||||||
TestAccAWSSNSSMSPreferences
|
TestAccAWSSNSSMSPreferences
|
||||||
TestAccAWSSageMakerPrebuiltECRImage
|
TestAccAWSSageMakerPrebuiltECRImage
|
||||||
TestAccAWSSQSQueuePolicy
|
TestAccAWSSQSQueuePolicy
|
||||||
TestAccAWSSSMDocument_basic
|
TestAccAWSSSMDocument
|
||||||
TestAccAWSSSMDocument_Name
|
|
||||||
TestAccAWSSSMDocument_target_type
|
|
||||||
TestAccAWSSSMDocument_VersionName
|
|
||||||
TestAccAWSSSMDocument_update
|
|
||||||
TestAccAWSSSMDocument_permission_public
|
|
||||||
TestAccAWSSSMDocument_permission_private
|
|
||||||
TestAccAWSSSMDocument_permission_batching
|
|
||||||
TestAccAWSSSMDocument_permission_change
|
|
||||||
TestAccAWSSSMDocument_params
|
|
||||||
TestAccAWSSSMDocument_automation
|
|
||||||
TestAccAWSSSMDocument_SchemaVersion_1
|
|
||||||
TestAccAWSSSMDocument_session
|
|
||||||
TestAccAWSSSMDocument_DocumentFormat_YAML
|
|
||||||
TestAccAWSSSMDocument_Tags
|
|
||||||
TestAccAWSSSMDocument_disappears
|
|
||||||
TestValidateSSMDocumentPermissions
|
TestValidateSSMDocumentPermissions
|
||||||
TestAccAWSSsmParameterDataSource
|
TestAccAWSSsmParameterDataSource
|
||||||
TestAccAWSUserGroupMembership
|
TestAccAWSUserGroupMembership
|
||||||
|
Loading…
Reference in New Issue
Block a user