diff --git a/bundle/libraries/upload.go b/bundle/libraries/upload.go index 8f1b425f..4b6f4370 100644 --- a/bundle/libraries/upload.go +++ b/bundle/libraries/upload.go @@ -133,8 +133,8 @@ func (u *upload) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagnostics { return diags } - // Only set the filer client if it's not already set. We use client field - // in mutator to mock the filer client in testing + // Only set the filer client if it's not already set. We use the client field + // in the mutator to mock the filer client in testing if u.client == nil { u.client = client } diff --git a/internal/bundle/artifacts_test.go b/internal/bundle/artifacts_test.go index 3cc731f4..9496c1dc 100644 --- a/internal/bundle/artifacts_test.go +++ b/internal/bundle/artifacts_test.go @@ -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)) }) @@ -319,7 +319,7 @@ func TestAccUploadArtifactFileToInvalidVolume(t *testing.T) { 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{ 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),