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) {
|
func TestBasicBundleDeployWithDoubleUnderscoreVariables(t *testing.T) {
|
||||||
ctx, _ := acc.WorkspaceTest(t)
|
ctx, wt := acc.WorkspaceTest(t)
|
||||||
|
|
||||||
nodeTypeId := testutil.GetCloud(t).NodeTypeID()
|
nodeTypeId := testutil.GetCloud(t).NodeTypeID()
|
||||||
uniqueId := uuid.New().String()
|
uniqueId := uuid.New().String()
|
||||||
|
@ -49,8 +49,12 @@ func TestBasicBundleDeployWithDoubleUnderscoreVariables(t *testing.T) {
|
||||||
"spark_version": defaultSparkVersion,
|
"spark_version": defaultSparkVersion,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
currentUser, err := wt.W.CurrentUser.Me(ctx)
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
ctx, replacements := testdiff.WithReplacementsMap(ctx)
|
ctx, replacements := testdiff.WithReplacementsMap(ctx)
|
||||||
replacements.Set(uniqueId, "$UNIQUE_PRJ")
|
replacements.Set(uniqueId, "$UNIQUE_PRJ")
|
||||||
|
replacements.Set(currentUser.UserName, "$USERNAME")
|
||||||
|
|
||||||
t.Cleanup(func() {
|
t.Cleanup(func() {
|
||||||
destroyBundle(t, ctx, root)
|
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...
|
Deploying resources...
|
||||||
Updating deployment state...
|
Updating deployment state...
|
||||||
Deployment complete!
|
Deployment complete!
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
Name: basic
|
Name: basic
|
||||||
Target: default
|
Target: default
|
||||||
Workspace:
|
Workspace:
|
||||||
User: 5e3ea482-cb45-4da7-b139-b9eef101910e
|
User: $USERNAME
|
||||||
Path: /Workspace/Users/5e3ea482-cb45-4da7-b139-b9eef101910e/.bundle/$UNIQUE_PRJ
|
Path: /Workspace/Users/$USERNAME/.bundle/$UNIQUE_PRJ
|
||||||
|
|
||||||
Validation OK!
|
Validation OK!
|
||||||
|
|
Loading…
Reference in New Issue