From 5a60e206c43e0fafa84a3cefcc3fcd82b3b750f1 Mon Sep 17 00:00:00 2001 From: Alex Ott Date: Tue, 10 Dec 2024 06:31:09 +0100 Subject: [PATCH] add integration test --- internal/acceptance/credential_test.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/internal/acceptance/credential_test.go b/internal/acceptance/credential_test.go index 73a2b15b31..151d623faa 100644 --- a/internal/acceptance/credential_test.go +++ b/internal/acceptance/credential_test.go @@ -10,7 +10,7 @@ func TestUcAccCredential(t *testing.T) { UnityWorkspaceLevel(t, Step{ Template: ` resource "databricks_credential" "external" { - name = "cred-{var.RANDOM}" + name = "service-cred-{var.RANDOM}" aws_iam_role { role_arn = "{env.TEST_METASTORE_DATA_ACCESS_ARN}" } @@ -19,6 +19,18 @@ func TestUcAccCredential(t *testing.T) { comment = "Managed by TF" }`, }) + } else if isGcp(t) { + UnityWorkspaceLevel(t, Step{ + // TODO: update purpose to SERVICE when it's released + Template: ` + resource "databricks_credential" "external" { + name = "storage-cred-{var.RANDOM}" + databricks_gcp_service_account {} + purpose = "STORAGE" + skip_validation = true + comment = "Managed by TF" + }`, + }) } }