From 23e87d5d24b4c535faa9370e7194a4d9d93158de Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Fri, 29 Nov 2024 20:00:41 +0100 Subject: [PATCH] - --- bundle/libraries/filer_volume.go | 5 +++-- bundle/libraries/filer_volume_test.go | 5 +++-- internal/bundle/artifacts_test.go | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/bundle/libraries/filer_volume.go b/bundle/libraries/filer_volume.go index e27a88e6..7209ffc0 100644 --- a/bundle/libraries/filer_volume.go +++ b/bundle/libraries/filer_volume.go @@ -98,8 +98,9 @@ func filerForVolume(ctx context.Context, b *bundle.Bundle) (filer.Filer, string, return nil, "", diag.Diagnostics{baseErr} } baseErr.Detail = `You are using a UC volume in your artifact_path that is managed by -this bundle but which has not been deployed yet. Please deploy the UC volume in -a separate bundle deploy before using it in the artifact_path.` +this bundle but which has not been deployed yet. Please first deploy +the UC volume using 'bundle deploy' and then switch over to using it in +the artifact_path.` baseErr.Paths = append(baseErr.Paths, path) baseErr.Locations = append(baseErr.Locations, locations...) } diff --git a/bundle/libraries/filer_volume_test.go b/bundle/libraries/filer_volume_test.go index 33892117..ed54d3b6 100644 --- a/bundle/libraries/filer_volume_test.go +++ b/bundle/libraries/filer_volume_test.go @@ -153,8 +153,9 @@ func TestFilerForVolumeInBundle(t *testing.T) { Locations: []dyn.Location{{"config.yml", 1, 2}, {"volume.yml", 1, 2}}, Paths: []dyn.Path{dyn.MustPathFromString("workspace.artifact_path"), dyn.MustPathFromString("resources.volumes.foo")}, Detail: `You are using a UC volume in your artifact_path that is managed by -this bundle but which has not been deployed yet. Please deploy the UC volume in -a separate bundle deploy before using it in the artifact_path.`, +this bundle but which has not been deployed yet. Please first deploy +the UC volume using 'bundle deploy' and then switch over to using it in +the artifact_path.`, }, }, diags) } diff --git a/internal/bundle/artifacts_test.go b/internal/bundle/artifacts_test.go index ef7efdf0..222e837d 100644 --- a/internal/bundle/artifacts_test.go +++ b/internal/bundle/artifacts_test.go @@ -303,8 +303,9 @@ func TestAccUploadArtifactToVolumeNotYetDeployed(t *testing.T) { databricks.yml:11:7 You are using a UC volume in your artifact_path that is managed by -this bundle but which has not been deployed yet. Please deploy the UC volume in -a separate bundle deploy before using it in the artifact_path. +this bundle but which has not been deployed yet. Please first deploy +the UC volume using 'bundle deploy' and then switch over to using it in +the artifact_path. `, schemaName), stdout.String()) assert.Equal(t, "", stderr.String())