From 3682d40a0592c38e5a23848736c97f564cd03ee7 Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Fri, 13 Mar 2026 18:47:15 +0100 Subject: [PATCH] fix: adjust wait timeouts chore: cleanup [skip ci] --- .github/workflows/ci_new.yaml | 2 +- .../postgresflexalpha/instance/resource.go | 5 ++++- .../postgresflex_acc_test.go | 19 ------------------- 3 files changed, 5 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci_new.yaml b/.github/workflows/ci_new.yaml index 4bcdad2f..355cdd5f 100644 --- a/.github/workflows/ci_new.yaml +++ b/.github/workflows/ci_new.yaml @@ -225,7 +225,7 @@ jobs: export TF_ACC_SERVICE_ACCOUNT_FILE make test - - name: Testing + - name: Testing with coverage if: ${{ github.event_name == 'pull_request' }} run: | TF_ACC_SERVICE_ACCOUNT_FILE=~/.service_account.json diff --git a/stackit/internal/services/postgresflexalpha/instance/resource.go b/stackit/internal/services/postgresflexalpha/instance/resource.go index 0c969cb8..7df2ed21 100644 --- a/stackit/internal/services/postgresflexalpha/instance/resource.go +++ b/stackit/internal/services/postgresflexalpha/instance/resource.go @@ -493,7 +493,10 @@ func (r *instanceResource) Update( projectID, region, instanceID, - ).WaitWithContext(ctx) + ). + SetTimeout(30 * time.Minute). + SetSleepBeforeWait(10 * time.Second). + WaitWithContext(ctx) if err != nil { core.LogAndAddError( ctx, diff --git a/stackit/internal/services/postgresflexalpha/postgresflex_acc_test.go b/stackit/internal/services/postgresflexalpha/postgresflex_acc_test.go index 671d5fde..dee3ae17 100644 --- a/stackit/internal/services/postgresflexalpha/postgresflex_acc_test.go +++ b/stackit/internal/services/postgresflexalpha/postgresflex_acc_test.go @@ -151,27 +151,8 @@ func TestAccInstance(t *testing.T) { updNetACL := updBackupSched updNetACL.ACLStrings = append(updNetACL.ACLStrings, "192.168.0.0/24") - /* - { - "flavorId": "1.2", - "network": { - "acl": [ - "198.51.100.0/24" - ] - }, - "replicas": 1, - "retentionDays": 35, - "storage": { - "size": 10 - }, - "version": "string" - } - */ - testItemID := testutils.ResStr(pfx, "instance", exData.TfName) - compareValuesSame := statecheck.CompareValue(compare.ValuesSame()) - resource.ParallelTest( t, resource.TestCase{ PreCheck: func() {