Skip to content

Commit

Permalink
custom matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
gemmahou committed Mar 25, 2024
1 parent 845dd49 commit d150012
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 698 deletions.
4 changes: 1 addition & 3 deletions config/tests/samples/create/harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ import (
"testing"
"time"

"gopkg.in/dnaeon/go-vcr.v3/recorder"

"github.com/go-logr/logr"
transport_tpg "github.com/hashicorp/terraform-provider-google-beta/google-beta/transport"
"golang.org/x/oauth2"
Expand Down Expand Up @@ -322,7 +320,7 @@ func NewHarness(ctx context.Context, t *testing.T) *Harness {
testName := strings.ReplaceAll(t.Name(), "/", "_")
opts := &recorder.Options{
CassetteName: filepath.Join(dir, testName),
Mode: recorder.ModeReplayOnly,
Mode: recorder.ModeRecordOnly,
RealTransport: ret.Transport,
}
r, err := recorder.NewWithOptions(opts)
Expand Down
Loading

0 comments on commit d150012

Please sign in to comment.