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
5
5
require (
6
6
github.com/Venafi/vcert/v5 v5.8.1
7
7
github.com/cenkalti/backoff/v5 v5.0.2
8
- github.com/d4l3k/messagediff v1.2.1
9
8
github.com/fatih/color v1.17.0
10
9
github.com/google/uuid v1.6.0
11
10
github.com/hashicorp/go-multierror v1.1.1
12
11
github.com/jetstack/venafi-connection-lib v0.3.2-0.20250305134451-ec1757b9e01b
13
- github.com/maxatome/go-testdeep v1.14.0
14
12
github.com/microcosm-cc/bluemonday v1.0.27
15
13
github.com/pmylund/go-cache v2.1.0+incompatible
16
14
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
27
27
github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs =
28
28
github.com/coreos/go-systemd/v22 v22.5.0 /go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc =
29
29
github.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 =
32
30
github.com/davecgh/go-spew v1.1.0 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
33
31
github.com/davecgh/go-spew v1.1.1 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
34
32
github.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
130
128
github.com/mattn/go-isatty v0.0.16 /go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM =
131
129
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY =
132
130
github.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 =
135
131
github.com/microcosm-cc/bluemonday v1.0.27 h1:MpEUotklkwCSLeH+Qdx1VJgNqLlpY2KXwXFM08ygZfk =
136
132
github.com/microcosm-cc/bluemonday v1.0.27 /go.mod h1:jFi9vgW+H7c3V0lb6nR74Ib/DIB5OBs92Dimizgw2cA =
137
133
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 /go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q =
Original file line number Diff line number Diff line change 1
1
package k8s
2
2
3
3
import (
4
- "encoding/json"
5
4
"testing"
6
5
"time"
7
6
8
- "github.com/d4l3k/messagediff"
9
7
"github.com/go-logr/logr"
10
8
"github.com/pmylund/go-cache"
9
+ "github.com/stretchr/testify/require"
11
10
"k8s.io/apimachinery/pkg/runtime"
12
11
"k8s.io/klog/v2/ktesting"
13
12
@@ -132,12 +131,7 @@ func TestOnAddCache(t *testing.T) {
132
131
t .Errorf ("unexpected number of return items found. exp:%+v act:%+v" , tc .expected , list )
133
132
}
134
133
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 )
141
135
})
142
136
}
143
137
}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package permissions
3
3
import (
4
4
"testing"
5
5
6
- "github.com/maxatome/go-testdeep/td "
6
+ "github.com/stretchr/testify/require "
7
7
rbac "k8s.io/api/rbac/v1"
8
8
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
9
9
"k8s.io/apimachinery/pkg/runtime/schema"
@@ -344,6 +344,6 @@ func TestGenerateAgentRBACManifests(t *testing.T) {
344
344
for _ , input := range testCases {
345
345
got := GenerateAgentRBACManifests (input .dataGatherers )
346
346
347
- td . Cmp (t , input .expectedAgentRBACManifests , got )
347
+ require . Equal (t , input .expectedAgentRBACManifests , got )
348
348
}
349
349
}
You can’t perform that action at this time.
0 commit comments