Skip to content

Commit

Permalink
Add acceptance test
Browse files Browse the repository at this point in the history
  • Loading branch information
donatasm committed Feb 5, 2024
1 parent 3ae081b commit 3376ba9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions internal/acceptance/storage_credential_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,22 @@ func TestUcAccStorageCredential(t *testing.T) {
})
}
}

func TestAccStorageCredentialOwner(t *testing.T) {
unityAccountLevel(t, step{
Template: `
resource "databricks_service_principal" "test_acc_storage_credential_owner" {
display_name = "test_acc_storage_credential_owner {var.RANDOM}"
}
resource "databricks_storage_credential" "test_acc_storage_credential_owner" {
name = "test_acc_storage_credential_owner-{var.RANDOM}"
owner = databricks_service_principal.test_acc_storage_credential_owner.application_id
metastore_id = "{env.TEST_METASTORE_ID}"
aws_iam_role {
role_arn = "{env.TEST_METASTORE_DATA_ACCESS_ARN}"
}
}
`,
})
}

0 comments on commit 3376ba9

Please sign in to comment.