@@ -167,22 +167,22 @@ var _ = Describe("Test", func() {
167
167
168
168
It ("should install the CRDs into the cluster using file" , func (done Done ) {
169
169
crds , err = InstallCRDs (env .Config , CRDInstallOptions {
170
- Paths : []string {filepath .Join ("." , "testdata" , "examplecrd2 .yaml" )},
170
+ Paths : []string {filepath .Join ("." , "testdata" , "crds" , "examplecrd3 .yaml" )},
171
171
})
172
172
Expect (err ).NotTo (HaveOccurred ())
173
173
174
174
crd := & v1beta1.CustomResourceDefinition {}
175
- err = c .Get (context .TODO (), types.NamespacedName {Name : "bazs.qux .example.com" }, crd )
175
+ err = c .Get (context .TODO (), types.NamespacedName {Name : "configs.foo .example.com" }, crd )
176
176
Expect (err ).NotTo (HaveOccurred ())
177
- Expect (crd .Spec .Names .Kind ).To (Equal ("Baz " ))
177
+ Expect (crd .Spec .Names .Kind ).To (Equal ("Config " ))
178
178
179
179
err = WaitForCRDs (env .Config , []* v1beta1.CustomResourceDefinition {
180
180
{
181
181
Spec : v1beta1.CustomResourceDefinitionSpec {
182
- Group : "qux .example.com" ,
182
+ Group : "foo .example.com" ,
183
183
Version : "v1beta1" ,
184
184
Names : v1beta1.CustomResourceDefinitionNames {
185
- Plural : "bazs " ,
185
+ Plural : "configs " ,
186
186
}},
187
187
},
188
188
},
@@ -428,13 +428,13 @@ var _ = Describe("Test", func() {
428
428
_ , err := env .Start ()
429
429
Expect (err ).To (HaveOccurred ())
430
430
close (done )
431
- }, 30 )
431
+ }, 10 )
432
432
433
433
It ("should not raise an error on invalid dir when flag is disabled" , func (done Done ) {
434
434
env = & Environment {ErrorIfCRDPathMissing : false , CRDDirectoryPaths : []string {invalidDirectory }}
435
435
_ , err := env .Start ()
436
436
Expect (err ).NotTo (HaveOccurred ())
437
437
close (done )
438
- }, 30 )
438
+ }, 10 )
439
439
})
440
440
})
0 commit comments