@@ -51,27 +51,32 @@ var _ = Describe("AppWrapper E2E Test", func() {
51
51
aw := createAppWrapper (ctx , pod (250 ), pod (250 ))
52
52
appwrappers = append (appwrappers , aw )
53
53
Expect (waitAWPodsReady (ctx , aw )).Should (Succeed ())
54
+ Consistently (AppWrapperPhase (ctx , aw ), 5 * time .Second ).Should (Equal (workloadv1beta2 .AppWrapperRunning ))
54
55
})
55
56
It ("Deployments" , func () {
56
57
aw := createAppWrapper (ctx , deployment (2 , 200 ))
57
58
appwrappers = append (appwrappers , aw )
58
59
Expect (waitAWPodsReady (ctx , aw )).Should (Succeed ())
60
+ Consistently (AppWrapperPhase (ctx , aw ), 5 * time .Second ).Should (Equal (workloadv1beta2 .AppWrapperRunning ))
59
61
})
60
62
It ("StatefulSets" , func () {
61
63
aw := createAppWrapper (ctx , statefulset (2 , 200 ))
62
64
appwrappers = append (appwrappers , aw )
63
65
Expect (waitAWPodsReady (ctx , aw )).Should (Succeed ())
66
+ Consistently (AppWrapperPhase (ctx , aw ), 5 * time .Second ).Should (Equal (workloadv1beta2 .AppWrapperRunning ))
64
67
})
65
68
It ("Batch Jobs" , func () {
66
69
aw := createAppWrapper (ctx , batchjob (250 ))
67
70
appwrappers = append (appwrappers , aw )
68
71
Expect (waitAWPodsReady (ctx , aw )).Should (Succeed ())
72
+ Consistently (AppWrapperPhase (ctx , aw ), 5 * time .Second ).Should (Equal (workloadv1beta2 .AppWrapperRunning ))
69
73
})
70
74
71
75
It ("Mixed Basic Resources" , func () {
72
76
aw := createAppWrapper (ctx , pod (100 ), deployment (2 , 100 ), statefulset (2 , 100 ), service (), batchjob (100 ))
73
77
appwrappers = append (appwrappers , aw )
74
78
Expect (waitAWPodsReady (ctx , aw )).Should (Succeed ())
79
+ Consistently (AppWrapperPhase (ctx , aw ), 10 * time .Second ).Should (Equal (workloadv1beta2 .AppWrapperRunning ))
75
80
})
76
81
})
77
82
0 commit comments