Skip to content

Commit 49b526f

Browse files
authored
functionaltests: Replace migrate managed 8.x standalone tests (#16929)
* Add migrate managed in 8.x to standalone tests * Fix typo * Fix managed 8 test rollover
1 parent 18aac50 commit 49b526f

File tree

2 files changed

+151
-180
lines changed

2 files changed

+151
-180
lines changed

.github/workflows/functional-tests.yml

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ env:
2020
TERRAFORM_VERSION: 1.10.2
2121

2222
jobs:
23-
run:
23+
run-deep:
24+
name: Deep upgrade tests
2425
runs-on: ubuntu-latest
2526
strategy:
2627
fail-fast: false
@@ -37,31 +38,55 @@ jobs:
3738
- '9.x' # Latest 9 version
3839
steps:
3940
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
40-
4141
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
4242
with:
4343
terraform_version: "${{ env.TERRAFORM_VERSION }}"
44-
4544
- uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
4645
with:
4746
go-version-file: 'functionaltests/go.mod'
4847
cache: false
49-
5048
- uses: elastic/oblt-actions/google/auth@db0844c27572a45966ce669e4d3073c205c8d5e4 # v1
51-
5249
- uses: google-github-actions/get-secretmanager-secrets@a8440875e1c2892062aef9061228d4f1af8f919b # v2.2.3
5350
with:
5451
export_to_environment: true
5552
secrets: |-
5653
EC_API_KEY:elastic-observability/elastic-cloud-observability-team-${{ matrix.environment }}-api-key
57-
58-
- name: "Run functional tests"
54+
- name: "Run deep upgrade tests"
5955
working-directory: ${{ github.workspace }}/functionaltests
6056
run: |
6157
export TF_VAR_CREATED_DATE=$(date +%s)
6258
VERSION="${{ matrix.active-version }}"
6359
VERSION="${VERSION//./_}"
64-
go test -run="_to_${VERSION}" -skip="_to_${VERSION}_to_" -v -timeout=60m -target="${{ matrix.environment }}" ./
60+
go test -run="_to_${VERSION}" -skip="_to_${VERSION}_to_|Standalone_to_Managed" -v -timeout=30m -target="${{ matrix.environment }}" ./
61+
62+
run-standalone:
63+
name: Standalone-to-managed tests
64+
runs-on: ubuntu-latest
65+
strategy:
66+
fail-fast: false
67+
matrix:
68+
environment:
69+
- 'pro'
70+
steps:
71+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
72+
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
73+
with:
74+
terraform_version: "${{ env.TERRAFORM_VERSION }}"
75+
- uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
76+
with:
77+
go-version-file: 'functionaltests/go.mod'
78+
cache: false
79+
- uses: elastic/oblt-actions/google/auth@db0844c27572a45966ce669e4d3073c205c8d5e4 # v1
80+
- uses: google-github-actions/get-secretmanager-secrets@a8440875e1c2892062aef9061228d4f1af8f919b # v2.2.3
81+
with:
82+
export_to_environment: true
83+
secrets: |-
84+
EC_API_KEY:elastic-observability/elastic-cloud-observability-team-${{ matrix.environment }}-api-key
85+
- name: "Run standalone-to-managed tests"
86+
working-directory: ${{ github.workspace }}/functionaltests
87+
run: |
88+
export TF_VAR_CREATED_DATE=$(date +%s)
89+
go test -run="Standalone_to_Managed" -v -timeout=60m -target="${{ matrix.environment }}" ./
6590
6691
# notify:
6792
# if: always()

0 commit comments

Comments
 (0)