@@ -12,6 +12,8 @@ import (
12
12
)
13
13
14
14
func TestReferenceGrantResolver (t * testing.T ) {
15
+ t .Parallel ()
16
+
15
17
gwNs := "gw-ns"
16
18
secretNsName := types.NamespacedName {Namespace : "test" , Name : "certificate" }
17
19
@@ -161,6 +163,8 @@ func TestReferenceGrantResolver(t *testing.T) {
161
163
162
164
for _ , test := range tests {
163
165
t .Run (test .msg , func (t * testing.T ) {
166
+ t .Parallel ()
167
+
164
168
g := NewWithT (t )
165
169
166
170
g .Expect (resolver .refAllowed (test .to , test .from )).To (Equal (test .allowed ))
@@ -169,6 +173,8 @@ func TestReferenceGrantResolver(t *testing.T) {
169
173
}
170
174
171
175
func TestToSecret (t * testing.T ) {
176
+ t .Parallel ()
177
+
172
178
ref := toSecret (types.NamespacedName {Namespace : "ns" , Name : "secret" })
173
179
174
180
exp := toResource {
@@ -182,6 +188,8 @@ func TestToSecret(t *testing.T) {
182
188
}
183
189
184
190
func TestToService (t * testing.T ) {
191
+ t .Parallel ()
192
+
185
193
ref := toService (types.NamespacedName {Namespace : "ns" , Name : "service" })
186
194
187
195
exp := toResource {
@@ -195,6 +203,8 @@ func TestToService(t *testing.T) {
195
203
}
196
204
197
205
func TestFromGateway (t * testing.T ) {
206
+ t .Parallel ()
207
+
198
208
ref := fromGateway ("ns" )
199
209
200
210
exp := fromResource {
@@ -208,6 +218,8 @@ func TestFromGateway(t *testing.T) {
208
218
}
209
219
210
220
func TestFromHTTPRoute (t * testing.T ) {
221
+ t .Parallel ()
222
+
211
223
ref := fromHTTPRoute ("ns" )
212
224
213
225
exp := fromResource {
@@ -221,6 +233,8 @@ func TestFromHTTPRoute(t *testing.T) {
221
233
}
222
234
223
235
func TestFromGRPCRoute (t * testing.T ) {
236
+ t .Parallel ()
237
+
224
238
ref := fromGRPCRoute ("ns" )
225
239
226
240
exp := fromResource {
@@ -234,6 +248,8 @@ func TestFromGRPCRoute(t *testing.T) {
234
248
}
235
249
236
250
func TestFromTLSRoute (t * testing.T ) {
251
+ t .Parallel ()
252
+
237
253
ref := fromTLSRoute ("ns" )
238
254
239
255
exp := fromResource {
@@ -247,6 +263,8 @@ func TestFromTLSRoute(t *testing.T) {
247
263
}
248
264
249
265
func TestRefAllowedFrom (t * testing.T ) {
266
+ t .Parallel ()
267
+
250
268
gwNs := "gw-ns"
251
269
hrNs := "hr-ns"
252
270
grNs := "gr-ns"
@@ -397,6 +415,8 @@ func TestRefAllowedFrom(t *testing.T) {
397
415
398
416
for _ , test := range tests {
399
417
t .Run (test .name , func (t * testing.T ) {
418
+ t .Parallel ()
419
+
400
420
g := NewWithT (t )
401
421
g .Expect (test .refAllowedFrom (test .toResource )).To (Equal (test .expAllowed ))
402
422
})
0 commit comments