TF - split long-running tests (#5363)

This commit is contained in:
Bert Blommers 2022-08-06 20:10:15 +00:00 committed by GitHub
parent 5dfe4e00d6
commit 034ecb9dfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -45,7 +45,10 @@ jobs:
${{ runner.os }}-go-${{ matrix.go-version }}-2-
- name: Get list of tests for this service
id: get-list
run: echo "::set-output name=testlist::$(python tests/terraformtests/get_tf_tests.py ${{ matrix.service }})"
run: echo "::set-output name=testlist::$(python tests/terraformtests/get_tf_tests.py '${{ matrix.service }}')"
- name: Get original AWS service name
id: get-service-name
run: echo "::set-output name=servicename::$(python -c "print('${{ matrix.service }}'[:'${{ matrix.service }}'.index('|') if '|' in '${{ matrix.service }}' else len('${{ matrix.service }}')])")"
- name: Execute tests
run: |
make terraformtests SERVICE_NAME=${{ matrix.service }} TEST_NAMES=${{ steps.get-list.outputs.testlist }}
make terraformtests SERVICE_NAME=${{ steps.get-service-name.outputs.servicename }} TEST_NAMES=${{ steps.get-list.outputs.testlist }}

View File

@ -142,7 +142,7 @@ quicksight:
- TestAccQuickSightUser
redshift:
- TestAccRedshiftServiceAccountDataSource
route53:
route53|1:
- TestAccRoute53Record_basic
- TestAccRoute53Record_underscored
- TestAccRoute53Record_disappears
@ -170,6 +170,7 @@ route53:
- TestAccRoute53Record_longTXTrecord
- TestAccRoute53Record_doNotAllowOverwrite
- TestAccRoute53Record_allowOverwrite
route53|2:
- TestAccRoute53Zone_basic
- TestAccRoute53Zone_disappears
- TestAccRoute53Zone_multiple