This commit is contained in:
Shreyas Goenka 2024-11-29 20:00:41 +01:00
parent e5f5618774
commit 23e87d5d24
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
3 changed files with 9 additions and 6 deletions

View File

@ -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...)
}

View File

@ -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)
}

View File

@ -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())