This commit is contained in:
Shreyas Goenka 2024-09-16 04:07:37 +02:00
parent d3d5d4c0d6
commit 227dfe95ca
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
2 changed files with 2 additions and 2 deletions

View File

@ -499,7 +499,7 @@ func TestGetFilerForLibraries(t *testing.T) {
t.Run("invalid volume paths", func(t *testing.T) {
invalidPaths := []string{
"/Volumes",
"/Volumes/",
"/Volumes/main",
"/Volumes/main/",
"/Volumes/main//",

View File

@ -282,7 +282,7 @@ volumes the upstream data in the cloud tenant is not affected:
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")
// 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("BUNDLE_ROOT", bundleRoot)
_, _, err = internal.NewCobraTestRunnerWithContext(t, ctx, "bundle", "deploy", "--var=schema_name=${resources.schemas.schema2.name}", "--auto-approve").Run()