mirror of https://github.com/databricks/cli.git
This commit is contained in:
parent
e5f5618774
commit
23e87d5d24
|
@ -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...)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue