File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -325,7 +325,28 @@ var _ = Describe("Test", func() {
325
325
})
326
326
Expect (err ).NotTo (HaveOccurred ())
327
327
328
+ // Expect to NOT find the CRDs
329
+
330
+ crds := []string {
331
+ "foos.bar.example.com" ,
332
+ "bazs.qux.example.com" ,
333
+ "captains.crew.example.com" ,
334
+ "firstmates.crew.example.com" ,
335
+ "drivers.crew.example.com" ,
336
+ }
337
+ placeholder := & v1beta1.CustomResourceDefinition {}
338
+ Eventually (func () bool {
339
+ for _ , crd := range crds {
340
+ err = c .Get (context .TODO (), types.NamespacedName {Name : crd }, placeholder )
341
+ notFound := err != nil && apierrors .IsNotFound (err )
342
+ if ! notFound {
343
+ return false
344
+ }
345
+ }
346
+ return true
347
+ }, 20 ).Should (BeTrue ())
348
+
328
349
close (done )
329
- }, 10 )
350
+ }, 30 )
330
351
})
331
352
})
You can’t perform that action at this time.
0 commit comments