Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
nkvuong committed Oct 30, 2024
1 parent 9c7ad60 commit 863fa37
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions internal/acceptance/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,18 @@ var (
}
}
resource "databricks_directory" "my_custom_directory" {
path = "/Shared/provider-test/xx_{var.RANDOM}"
}
resource "databricks_workspace_file" "this" {
source = "{var.CWD}/../../storage/testdata/tf-test-python.py"
path = "/Shared/%s/xx_{var.RANDOM}"
path = databricks_directory.my_custom_directory.path + "/tf-test-python.py"
}
resource "databricks_app" "this" {
name = "{var.RANDOM}"
description = "%s"
source_code_path = databricks_workspace_file.this.workspace_path
source_code_path = databricks_directory.my_custom_directory.path
mode = "SNAPSHOT"
resource {
name = "warehouse"
Expand All @@ -46,7 +50,7 @@ func TestAccAppCreate(t *testing.T) {
skipf(t)("not available on GCP")
}
WorkspaceLevel(t, Step{
Template: fmt.Sprintf(appTemplate, "app", "My app"),
Template: fmt.Sprintf(appTemplate, "My app"),
})
}

Expand All @@ -56,8 +60,8 @@ func TestAccAppUpdate(t *testing.T) {
skipf(t)("not available on GCP")
}
WorkspaceLevel(t, Step{
Template: fmt.Sprintf(appTemplate, "app", "My app"),
Template: fmt.Sprintf(appTemplate, "My app"),
}, Step{
Template: fmt.Sprintf(appTemplate, "app", "My new app"),
Template: fmt.Sprintf(appTemplate, "My new app"),
})
}

0 comments on commit 863fa37

Please sign in to comment.