Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnester committed Jan 22, 2025
1 parent 3116d64 commit 2318e09
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion integration/bundle/basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestBasicBundleDeployWithFailOnActiveRuns(t *testing.T) {
}

func TestBasicBundleDeployWithDoubleUnderscoreVariables(t *testing.T) {
ctx, _ := acc.WorkspaceTest(t)
ctx, wt := acc.WorkspaceTest(t)

nodeTypeId := testutil.GetCloud(t).NodeTypeID()
uniqueId := uuid.New().String()
Expand All @@ -49,8 +49,12 @@ func TestBasicBundleDeployWithDoubleUnderscoreVariables(t *testing.T) {
"spark_version": defaultSparkVersion,
})

currentUser, err := wt.W.CurrentUser.Me(ctx)
require.NoError(t, err)

ctx, replacements := testdiff.WithReplacementsMap(ctx)
replacements.Set(uniqueId, "$UNIQUE_PRJ")
replacements.Set(currentUser.UserName, "$USERNAME")

t.Cleanup(func() {
destroyBundle(t, ctx, root)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Uploading bundle files to /Workspace/Users/5e3ea482-cb45-4da7-b139-b9eef101910e/.bundle/$UNIQUE_PRJ/files...
Uploading bundle files to /Workspace/Users/$USERNAME/.bundle/$UNIQUE_PRJ/files...
Deploying resources...
Updating deployment state...
Deployment complete!
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Name: basic
Target: default
Workspace:
User: 5e3ea482-cb45-4da7-b139-b9eef101910e
Path: /Workspace/Users/5e3ea482-cb45-4da7-b139-b9eef101910e/.bundle/$UNIQUE_PRJ
User: $USERNAME
Path: /Workspace/Users/$USERNAME/.bundle/$UNIQUE_PRJ

Validation OK!

0 comments on commit 2318e09

Please sign in to comment.