mirror of https://github.com/databricks/cli.git
fixes
This commit is contained in:
parent
d3d5d4c0d6
commit
227dfe95ca
|
@ -499,7 +499,7 @@ func TestGetFilerForLibraries(t *testing.T) {
|
||||||
|
|
||||||
t.Run("invalid volume paths", func(t *testing.T) {
|
t.Run("invalid volume paths", func(t *testing.T) {
|
||||||
invalidPaths := []string{
|
invalidPaths := []string{
|
||||||
"/Volumes",
|
"/Volumes/",
|
||||||
"/Volumes/main",
|
"/Volumes/main",
|
||||||
"/Volumes/main/",
|
"/Volumes/main/",
|
||||||
"/Volumes/main//",
|
"/Volumes/main//",
|
||||||
|
|
|
@ -282,7 +282,7 @@ volumes the upstream data in the cloud tenant is not affected:
|
||||||
recreate volume foo`)
|
recreate volume foo`)
|
||||||
assert.Contains(t, stdout.String(), "the deployment requires destructive actions, but current console does not support prompting. Please specify --auto-approve if you would like to skip prompts and proceed")
|
assert.Contains(t, stdout.String(), "the deployment requires destructive actions, but current console does not support prompting. Please specify --auto-approve if you would like to skip prompts and proceed")
|
||||||
|
|
||||||
// Recreation of the volume without --auto-approve should fail since prompting is not possible
|
// Successfully recreate the volume with --auto-approve
|
||||||
t.Setenv("TERM", "dumb")
|
t.Setenv("TERM", "dumb")
|
||||||
t.Setenv("BUNDLE_ROOT", bundleRoot)
|
t.Setenv("BUNDLE_ROOT", bundleRoot)
|
||||||
_, _, err = internal.NewCobraTestRunnerWithContext(t, ctx, "bundle", "deploy", "--var=schema_name=${resources.schemas.schema2.name}", "--auto-approve").Run()
|
_, _, err = internal.NewCobraTestRunnerWithContext(t, ctx, "bundle", "deploy", "--var=schema_name=${resources.schemas.schema2.name}", "--auto-approve").Run()
|
||||||
|
|
Loading…
Reference in New Issue