mirror of https://github.com/databricks/cli.git
fix
This commit is contained in:
parent
3116d6407a
commit
2318e09f5d
|
@ -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)
|
||||
|
|
|
@ -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!
|
||||
|
|
|
@ -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!
|
||||
|
|
Loading…
Reference in New Issue