@@ -290,24 +290,31 @@ var _ = g.Describe("deploymentconfigs", func() {
290
290
291
291
g .Describe ("with env in params referencing the configmap [Conformance]" , func () {
292
292
g .AfterEach (func () {
293
- failureTrap (oc , "example " , g .CurrentGinkgoTestDescription ().Failed )
293
+ failureTrap (oc , "deploymenty-simple " , g .CurrentGinkgoTestDescription ().Failed )
294
294
})
295
295
g .It ("should expand the config map key to a value" , func () {
296
296
_ , err := oc .Run ("create" ).Args ("configmap" , "test" , "--from-literal=foo=bar" ).Output ()
297
297
o .Expect (err ).NotTo (o .HaveOccurred ())
298
298
299
299
_ , name , err := createFixture (oc , envRefDeploymentFixture )
300
300
o .Expect (err ).NotTo (o .HaveOccurred ())
301
+ o .Expect (waitForSyncedConfig (oc , name , deploymentRunTimeout )).NotTo (o .HaveOccurred ())
302
+
303
+ _ , err = oc .Run ("rollout" ).Args ("latest" , "dc/" + name ).Output ()
304
+ o .Expect (err ).NotTo (o .HaveOccurred ())
305
+
306
+ out , _ := oc .Run ("rollout" ).Args ("status" , "dc/" + name ).Output ()
307
+ o .Expect (out ).To (o .ContainSubstring ("has failed progressing" ))
301
308
302
- out , err : = oc .Run ("deploy " ).Args ("dc/" + name , "--latest" , "--follow" ).Output ()
309
+ out , err = oc .Run ("logs " ).Args ("dc/" + name ).Output ()
303
310
o .Expect (err ).NotTo (o .HaveOccurred ())
304
311
o .Expect (out ).To (o .ContainSubstring ("hello bar" ))
305
312
})
306
313
})
307
314
308
315
g .Describe ("with multiple image change triggers [Conformance]" , func () {
309
316
g .AfterEach (func () {
310
- failureTrap (oc , "example " , g .CurrentGinkgoTestDescription ().Failed )
317
+ failureTrap (oc , "deployment-simple " , g .CurrentGinkgoTestDescription ().Failed )
311
318
})
312
319
313
320
g .It ("should run a successful deployment with multiple triggers" , func () {
@@ -536,11 +543,16 @@ var _ = g.Describe("deploymentconfigs", func() {
536
543
o .Expect (fmt .Errorf ("expected no deployment, found %#v" , rcs [0 ])).NotTo (o .HaveOccurred ())
537
544
}
538
545
539
- g .By ("verifying that we cannot start a new deployment" )
546
+ g .By ("verifying that we cannot start a new deployment via oc deploy " )
540
547
out , err := oc .Run ("deploy" ).Args (resource , "--latest" ).Output ()
541
548
o .Expect (err ).To (o .HaveOccurred ())
542
549
o .Expect (out ).To (o .ContainSubstring ("cannot deploy a paused deployment config" ))
543
550
551
+ g .By ("verifying that we cannot start a new deployment via oc rollout" )
552
+ out , err = oc .Run ("rollout" ).Args ("latest" , resource ).Output ()
553
+ o .Expect (err ).To (o .HaveOccurred ())
554
+ o .Expect (out ).To (o .ContainSubstring ("cannot deploy a paused deployment config" ))
555
+
544
556
g .By ("verifying that we cannot cancel a deployment" )
545
557
out , err = oc .Run ("deploy" ).Args (resource , "--cancel" ).Output ()
546
558
o .Expect (err ).To (o .HaveOccurred ())
0 commit comments