Skip to content

Commit

Permalink
add integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexott committed Dec 10, 2024
1 parent b208e6d commit 5a60e20
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion internal/acceptance/credential_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
Expand All @@ -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"
}`,
})
}
}

Expand Down

0 comments on commit 5a60e20

Please sign in to comment.