diff --git a/bundle/libraries/upload_test.go b/bundle/libraries/upload_test.go index 6ee72d4e3..a1a601e87 100644 --- a/bundle/libraries/upload_test.go +++ b/bundle/libraries/upload_test.go @@ -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//", diff --git a/internal/bundle/deploy_test.go b/internal/bundle/deploy_test.go index 225458e19..849fd98bf 100644 --- a/internal/bundle/deploy_test.go +++ b/internal/bundle/deploy_test.go @@ -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()