This commit is contained in:
Andrew Nester 2025-01-22 14:33:35 +00:00
parent 3116d6407a
commit 2318e09f5d
No known key found for this signature in database
GPG Key ID: 12BC628A44B7DA57
3 changed files with 8 additions and 4 deletions

View File

@ -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()
@ -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)

View File

@ -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!

View File

@ -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!