Skip to content

functionaltests: Add generalized test #16917

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 7 additions & 14 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,17 @@ env:
TERRAFORM_VERSION: 1.10.2

jobs:
run-deep:
name: Deep upgrade tests
run-upgrade:
name: Upgrade tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
environment:
- 'pro'
active-version:
- '8.17'
- '8.18'
- '8.19'
- '9.0'
- '9.1'
- '8.x' # Latest 8 version
- '9.x' # Latest 9 version
upgrade-path:
- '8.15, 8.16, 8.17, 8.18, 9.0'
- '8.17, 8.19, 9.1'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
Expand All @@ -55,9 +50,7 @@ jobs:
working-directory: ${{ github.workspace }}/functionaltests
run: |
export TF_VAR_CREATED_DATE=$(date +%s)
VERSION="${{ matrix.active-version }}"
VERSION="${VERSION//./_}"
go test -run="_to_${VERSION}" -skip="_to_${VERSION}_to_|Standalone_to_Managed" -v -timeout=30m -target="${{ matrix.environment }}" ./
go test -run="TestUpgrade" -v -timeout=60m -target="${{ matrix.environment }}" -upgrade-path="${{ matrix.upgrade-path }}" ./

run-standalone:
name: Standalone-to-managed tests
Expand Down Expand Up @@ -86,7 +79,7 @@ jobs:
working-directory: ${{ github.workspace }}/functionaltests
run: |
export TF_VAR_CREATED_DATE=$(date +%s)
go test -run="Standalone_to_Managed" -v -timeout=60m -target="${{ matrix.environment }}" ./
go test -run="TestStandaloneManaged" -v -timeout=60m -target="${{ matrix.environment }}" ./

# notify:
# if: always()
Expand Down
92 changes: 0 additions & 92 deletions functionaltests/8_16_test.go

This file was deleted.

138 changes: 0 additions & 138 deletions functionaltests/8_17_test.go

This file was deleted.

76 changes: 0 additions & 76 deletions functionaltests/8_18_test.go

This file was deleted.

Loading