Skip to content

Commit

Permalink
remove other mutator
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas-goenka committed Nov 18, 2024
1 parent e6723de commit f5ea8da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bundle/libraries/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions internal/bundle/artifacts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
})

Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit f5ea8da

Please sign in to comment.