File tree Expand file tree Collapse file tree 4 files changed +4
-16
lines changed
Expand file tree Collapse file tree 4 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,10 @@ go 1.23.4
55require (
66 github.com/Venafi/vcert/v5 v5.8.1
77 github.com/cenkalti/backoff/v5 v5.0.2
8- github.com/d4l3k/messagediff v1.2.1
98 github.com/fatih/color v1.17.0
109 github.com/google/uuid v1.6.0
1110 github.com/hashicorp/go-multierror v1.1.1
1211 github.com/jetstack/venafi-connection-lib v0.3.2-0.20250305134451-ec1757b9e01b
13- github.com/maxatome/go-testdeep v1.14.0
1412 github.com/microcosm-cc/bluemonday v1.0.27
1513 github.com/pmylund/go-cache v2.1.0+incompatible
1614 github.com/prometheus/client_golang v1.21.0
Original file line number Diff line number Diff line change @@ -27,8 +27,6 @@ github.com/coreos/go-semver v0.3.1/go.mod h1:irMmmIw/7yzSRPWryHsK7EYSg09caPQL03V
2727github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs =
2828github.com/coreos/go-systemd/v22 v22.5.0 /go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc =
2929github.com/cpuguy83/go-md2man/v2 v2.0.4 /go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o =
30- github.com/d4l3k/messagediff v1.2.1 h1:ZcAIMYsUg0EAp9X+tt8/enBE/Q8Yd5kzPynLyKptt9U =
31- github.com/d4l3k/messagediff v1.2.1 /go.mod h1:Oozbb1TVXFac9FtSIxHBMnBCq2qeH/2KkEQxENCrlLo =
3230github.com/davecgh/go-spew v1.1.0 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
3331github.com/davecgh/go-spew v1.1.1 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
3432github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM =
@@ -130,8 +128,6 @@ github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovk
130128github.com/mattn/go-isatty v0.0.16 /go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM =
131129github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY =
132130github.com/mattn/go-isatty v0.0.20 /go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y =
133- github.com/maxatome/go-testdeep v1.14.0 h1:rRlLv1+kI8eOI3OaBXZwb3O7xY3exRzdW5QyX48g9wI =
134- github.com/maxatome/go-testdeep v1.14.0 /go.mod h1:lPZc/HAcJMP92l7yI6TRz1aZN5URwUBUAfUNvrclaNM =
135131github.com/microcosm-cc/bluemonday v1.0.27 h1:MpEUotklkwCSLeH+Qdx1VJgNqLlpY2KXwXFM08ygZfk =
136132github.com/microcosm-cc/bluemonday v1.0.27 /go.mod h1:jFi9vgW+H7c3V0lb6nR74Ib/DIB5OBs92Dimizgw2cA =
137133github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 /go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q =
Original file line number Diff line number Diff line change 11package k8s
22
33import (
4- "encoding/json"
54 "testing"
65 "time"
76
8- "github.com/d4l3k/messagediff"
97 "github.com/go-logr/logr"
108 "github.com/pmylund/go-cache"
9+ "github.com/stretchr/testify/require"
1110 "k8s.io/apimachinery/pkg/runtime"
1211 "k8s.io/klog/v2/ktesting"
1312
@@ -132,12 +131,7 @@ func TestOnAddCache(t *testing.T) {
132131 t .Errorf ("unexpected number of return items found. exp:%+v act:%+v" , tc .expected , list )
133132 }
134133
135- if diff , equal := messagediff .PrettyDiff (tc .expected , list ); ! equal {
136- t .Errorf ("\n %s" , diff )
137- expectedJSON , _ := json .MarshalIndent (tc .expected , "" , " " )
138- gotJSON , _ := json .MarshalIndent (list , "" , " " )
139- t .Fatalf ("unexpected JSON: \n got \n %s\n want\n %s" , string (gotJSON ), expectedJSON )
140- }
134+ require .Equal (t , tc .expected , list )
141135 })
142136 }
143137}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package permissions
33import (
44 "testing"
55
6- "github.com/maxatome/go-testdeep/td "
6+ "github.com/stretchr/testify/require "
77 rbac "k8s.io/api/rbac/v1"
88 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
99 "k8s.io/apimachinery/pkg/runtime/schema"
@@ -344,6 +344,6 @@ func TestGenerateAgentRBACManifests(t *testing.T) {
344344 for _ , input := range testCases {
345345 got := GenerateAgentRBACManifests (input .dataGatherers )
346346
347- td . Cmp (t , input .expectedAgentRBACManifests , got )
347+ require . Equal (t , input .expectedAgentRBACManifests , got )
348348 }
349349}
You can’t perform that action at this time.
0 commit comments