@@ -144,18 +144,19 @@ var _ = Describe("RabbitmqClusterController", func() {
144
144
})
145
145
By ("recording SuccessfulCreate events for all child resources" , func () {
146
146
allEventMsgs := aggregateEventMsgs (ctx , cluster , "SuccessfulCreate" )
147
- Expect (allEventMsgs ).To (ContainSubstring ("created resource %s of Type *v1.StatefulSet" , cluster .ChildResourceName ("server" )))
148
- Expect (allEventMsgs ).To (ContainSubstring ("created resource %s of Type *v1.Service" , cluster .ChildResourceName ("" )))
149
- Expect (allEventMsgs ).To (ContainSubstring ("created resource %s of Type *v1.Service" , cluster .ChildResourceName ("nodes" )))
150
- Expect (allEventMsgs ).To (ContainSubstring ("created resource %s of Type *v1.ConfigMap" , cluster .ChildResourceName ("plugins-conf" )))
151
- Expect (allEventMsgs ).To (ContainSubstring ("created resource %s of Type *v1.ConfigMap" , cluster .ChildResourceName ("server-conf" )))
152
- Expect (allEventMsgs ).To (ContainSubstring ("created resource %s of Type *v1.Secret" , cluster .ChildResourceName ("erlang-cookie" )))
153
- Expect (allEventMsgs ).To (ContainSubstring ("created resource %s of Type *v1.Secret" , cluster .ChildResourceName ("default-user" )))
154
- Expect (allEventMsgs ).To (ContainSubstring ("created resource %s of Type *v1.ServiceAccount" , cluster .ChildResourceName ("server" )))
155
- Expect (allEventMsgs ).To (ContainSubstring ("created resource %s of Type *v1.Role" , cluster .ChildResourceName ("peer-discovery" )))
156
- Expect (allEventMsgs ).To (ContainSubstring ("created resource %s of Type *v1.RoleBinding" , cluster .ChildResourceName ("server" )))
147
+ Expect (allEventMsgs ).To (SatisfyAll (
148
+ ContainSubstring ("created resource %s of Type *v1.StatefulSet" , cluster .ChildResourceName ("server" )),
149
+ ContainSubstring ("created resource %s of Type *v1.Service" , cluster .ChildResourceName ("" )),
150
+ ContainSubstring ("created resource %s of Type *v1.Service" , cluster .ChildResourceName ("nodes" )),
151
+ ContainSubstring ("created resource %s of Type *v1.ConfigMap" , cluster .ChildResourceName ("plugins-conf" )),
152
+ ContainSubstring ("created resource %s of Type *v1.ConfigMap" , cluster .ChildResourceName ("server-conf" )),
153
+ ContainSubstring ("created resource %s of Type *v1.Secret" , cluster .ChildResourceName ("erlang-cookie" )),
154
+ ContainSubstring ("created resource %s of Type *v1.Secret" , cluster .ChildResourceName ("default-user" )),
155
+ ContainSubstring ("created resource %s of Type *v1.ServiceAccount" , cluster .ChildResourceName ("server" )),
156
+ ContainSubstring ("created resource %s of Type *v1.Role" , cluster .ChildResourceName ("peer-discovery" )),
157
+ ContainSubstring ("created resource %s of Type *v1.RoleBinding" , cluster .ChildResourceName ("server" )),
158
+ ))
157
159
})
158
-
159
160
})
160
161
})
161
162
0 commit comments