mirror of https://github.com/databricks/cli.git
remove other mutator
This commit is contained in:
parent
e6723deb9d
commit
f5ea8dac26
|
@ -133,8 +133,8 @@ func (u *upload) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagnostics {
|
||||||
return diags
|
return diags
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only set the filer client if it's not already set. We use client field
|
// Only set the filer client if it's not already set. We use the client field
|
||||||
// in mutator to mock the filer client in testing
|
// in the mutator to mock the filer client in testing
|
||||||
if u.client == nil {
|
if u.client == nil {
|
||||||
u.client = client
|
u.client = client
|
||||||
}
|
}
|
||||||
|
|
|
@ -279,7 +279,7 @@ func TestAccUploadArtifactFileToInvalidVolume(t *testing.T) {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
diags := bundle.Apply(ctx, b, bundle.Seq(libraries.ExpandGlobReferences(), libraries.Upload()))
|
diags := bundle.Apply(ctx, b, libraries.Upload())
|
||||||
assert.ErrorContains(t, diags.Error(), fmt.Sprintf("failed to fetch metadata for the UC volume %s that is configured in the artifact_path:", volumePath))
|
assert.ErrorContains(t, diags.Error(), fmt.Sprintf("failed to fetch metadata for the UC volume %s that is configured in the artifact_path:", volumePath))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -319,7 +319,7 @@ func TestAccUploadArtifactFileToInvalidVolume(t *testing.T) {
|
||||||
Column: 2,
|
Column: 2,
|
||||||
}})
|
}})
|
||||||
|
|
||||||
diags := bundle.Apply(ctx, b, bundle.Seq(libraries.ExpandGlobReferences(), libraries.Upload()))
|
diags := bundle.Apply(ctx, b, libraries.Upload())
|
||||||
assert.Contains(t, diags, diag.Diagnostic{
|
assert.Contains(t, diags, diag.Diagnostic{
|
||||||
Severity: diag.Error,
|
Severity: diag.Error,
|
||||||
Summary: fmt.Sprintf("failed to fetch metadata for the UC volume %s that is configured in the artifact_path: Not Found", volumePath),
|
Summary: fmt.Sprintf("failed to fetch metadata for the UC volume %s that is configured in the artifact_path: Not Found", volumePath),
|
||||||
|
|
Loading…
Reference in New Issue