Extend DSA Reads to compute plan name and version from plan ID (#20)

* Extend Read to compute plan name and version from plan ID

* Lint

* Fix error handling; Pass client to loadPlanNameAndVersion

* Change error to warning

* Replicate to other DSA

* Update acc tests to test import of plan name and version
This commit is contained in:
João Palet 2023-09-20 11:00:08 +02:00 committed by GitHub
parent 7f35b5a1dc
commit 386ccac6b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 240 additions and 42 deletions

View file

@ -144,9 +144,8 @@ func TestAccPostgreSQLResource(t *testing.T) {
}
return fmt.Sprintf("%s,%s", testutil.ProjectId, instanceId), nil
},
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"plan_name", "version"},
ImportState: true,
ImportStateVerify: true,
},
{
ResourceName: "stackit_postgresql_credentials.credentials",