diff --git a/.github/workflows/clean_up.yaml b/.github/workflows/clean_up.yaml index edb14bb4..b5a84fed 100644 --- a/.github/workflows/clean_up.yaml +++ b/.github/workflows/clean_up.yaml @@ -41,13 +41,13 @@ jobs: webhookUrl: '${{ secrets.GOOGLE_WEBHOOK_URL }}' jobStatus: '${{ job.status }}' title: CLEAN-UP pipeline - subtitle: "${{ github.event_name }} with filter prefix ${{ inputs.res_prefix }}" + subtitle: "${{ github.event_name }} with filter prefix \"${{ inputs.res_prefix }}\"" # - name: Notify # uses: ./.github/actions/notify # with: # webhook_url: ${{ secrets.GOOGLE_WEBHOOK_URL }} -# title: CI pipeline started +# title: CLEAN-UP pipeline # event_title: ${{ github.event.type }} # event_author: ${{ github.event.actor.login }} # event_body: "Filter: ${{ inputs.res_prefix }}" diff --git a/.github/workflows/tf-acc-test.yaml b/.github/workflows/tf-acc-test.yaml index 85c78437..cc76fd61 100644 --- a/.github/workflows/tf-acc-test.yaml +++ b/.github/workflows/tf-acc-test.yaml @@ -30,6 +30,14 @@ jobs: - name: Checkout uses: actions/checkout@v6 + - name: Notify Google Chat + if: ${{ always() }} # Use always to ensure that the notification is also send on failure of former steps + uses: SimonScholz/google-chat-action@main + with: + webhookUrl: '${{ secrets.GOOGLE_WEBHOOK_URL }}' + title: Acceptance Tests started + subtitle: "${{ github.event_name }}" + - name: Notify uses: ./.github/actions/notify with: @@ -71,6 +79,15 @@ jobs: tf_acc_kek_key_version: ${{ vars.TF_ACC_KEK_KEY_VERSION }} tf_acc_kek_service_account: ${{ vars.TF_ACC_KEK_SERVICE_ACCOUNT }} + - name: Notify Google Chat + if: ${{ always() }} # Use always to ensure that the notification is also send on failure of former steps + uses: SimonScholz/google-chat-action@main + with: + webhookUrl: '${{ secrets.GOOGLE_WEBHOOK_URL }}' + jobStatus: '${{ job.status }}' + title: Acceptance Tests started + subtitle: "${{ github.event_name }} finished" + - name: Notify uses: ./.github/actions/notify with: diff --git a/stackit/internal/services/postgresflexalpha/postgresflex_acc_test.go b/stackit/internal/services/postgresflexalpha/postgresflex_acc_test.go index 6c057cfb..4dd1e6ea 100644 --- a/stackit/internal/services/postgresflexalpha/postgresflex_acc_test.go +++ b/stackit/internal/services/postgresflexalpha/postgresflex_acc_test.go @@ -157,6 +157,9 @@ func TestAccInstance(t *testing.T) { updVersion := updNetACL updVersion.Version = "17" + updRetention := updVersion + updRetention.RetentionDays = 40 + testItemID := testutils.ResStr(pfx, "instance", exData.TfName) compareValuesSame := statecheck.CompareValue(compare.ValuesSame()) resource.ParallelTest( @@ -337,6 +340,23 @@ func TestAccInstance(t *testing.T) { ), ), }, + // Update retention_days + { + PreConfig: func() { + t.Logf(" ... %s - %s", t.Name(), "update version") + }, + Config: testutils.StringFromTemplateMust( + "testdata/instance_template.gompl", + updVersion, + ), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr( + testItemID, + "retention_days", + strconv.Itoa(int(updVersion.RetentionDays)), + ), + ), + }, // Import test // test instance imports { diff --git a/stackit/internal/services/sqlserverflexbeta/sqlserverflex_acc_test.go b/stackit/internal/services/sqlserverflexbeta/sqlserverflex_acc_test.go index 77955dd5..399eed3f 100644 --- a/stackit/internal/services/sqlserverflexbeta/sqlserverflex_acc_test.go +++ b/stackit/internal/services/sqlserverflexbeta/sqlserverflex_acc_test.go @@ -142,6 +142,9 @@ func TestAccInstance(t *testing.T) { updSizeData := exData updSizeData.Size = 25 + updRetentionDays := updSizeData + updRetentionDays.RetentionDays = 30 + testInstanceID := testutils.ResStr(pfx, "instance", exData.TfName) compareValuesSame := statecheck.CompareValue(compare.ValuesSame()) @@ -210,6 +213,20 @@ func TestAccInstance(t *testing.T) { defaultNoEncInstanceTestChecks(testInstanceID, updSizeData), ), }, + // Update retention_days + { + PreConfig: func() { + t.Logf("testing: %s - %s", t.Name(), "update storage.retention_days and verify") + }, + ExpectNonEmptyPlan: true, + Config: testutils.StringFromTemplateMust( + "testdata/instance_template.gompl", + updRetentionDays, + ), + Check: resource.ComposeTestCheckFunc( + defaultNoEncInstanceTestChecks(testInstanceID, updRetentionDays), + ), + }, // Import test // test instance imports {