From c686d82ee33e8eddd6e829d701b42f5dac845c3e Mon Sep 17 00:00:00 2001 From: Henrique Santos Date: Thu, 12 Oct 2023 13:45:46 +0100 Subject: [PATCH] Readd credentials group checks --- .../objectstorage/objectstorage_acc_test.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/stackit/internal/services/objectstorage/objectstorage_acc_test.go b/stackit/internal/services/objectstorage/objectstorage_acc_test.go index 8e278cd1..9aee08c1 100644 --- a/stackit/internal/services/objectstorage/objectstorage_acc_test.go +++ b/stackit/internal/services/objectstorage/objectstorage_acc_test.go @@ -140,6 +140,21 @@ func TestAccObjectStorageResource(t *testing.T) { "data.stackit_objectstorage_bucket.bucket", "url_virtual_hosted_style", ), + // Credentials group data + resource.TestCheckResourceAttr("data.stackit_objectstorage_credentials_group.credentials_group", "project_id", credentialsGroupResource["project_id"]), + resource.TestCheckResourceAttrPair( + "stackit_objectstorage_credentials_group.credentials_group", "credentials_group_id", + "data.stackit_objectstorage_credentials_group.credentials_group", "credentials_group_id", + ), + resource.TestCheckResourceAttrPair( + "stackit_objectstorage_credentials_group.credentials_group", "name", + "data.stackit_objectstorage_credentials_group.credentials_group", "name", + ), + resource.TestCheckResourceAttrPair( + "stackit_objectstorage_credentials_group.credentials_group", "urn", + "data.stackit_objectstorage_credentials_group.credentials_group", "urn", + ), + // Credential group data resource.TestCheckResourceAttrPair( "stackit_objectstorage_credential.credential", "project_id",