Skip to content

Commit e1ffaa0

Browse files
authored
Fixed catalog_workspace_binding_test (#2463)
This integration test depends on the metastore assignment of the test metastore to the test workspace. Adding this resource to the integration test fixes the issue that the workspace is not assigned to the metastore.
1 parent 2a6de53 commit e1ffaa0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/acceptance/catalog_workspace_binding_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ import (
77
func TestUcAccCatalogWorkspaceBindingToOtherWorkspace(t *testing.T) {
88
unityWorkspaceLevel(t, step{
99
Template: `
10+
# The dummy workspace needs to be assigned to the metastore for this test to pass
11+
resource "databricks_metastore_assignment" "this" {
12+
metastore_id = "{env.TEST_METASTORE_ID}"
13+
workspace_id = {env.TEST_WORKSPACE_ID}
14+
}
15+
1016
resource "databricks_catalog" "dev" {
1117
name = "dev{var.RANDOM}"
1218
isolation_mode = "ISOLATED"

0 commit comments

Comments
 (0)