From f5ea8dac266ccf96a838c6bd88402b23235b840d Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Mon, 18 Nov 2024 17:35:03 +0100 Subject: [PATCH] remove other mutator --- bundle/libraries/upload.go | 4 ++-- internal/bundle/artifacts_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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),