@@ -2296,6 +2296,19 @@ var _ = Describe("Test NUMAResourcesOperator Reconcile", func() {
22962296 Expect (progressingCond ).ToNot (BeNil ())
22972297 Expect (progressingCond .Status ).To (Equal (metav1 .ConditionTrue ))
22982298
2299+ By ("Verify pool1 DaemonSet does not exist yet" )
2300+ mcp1DSKey := client.ObjectKey {
2301+ Name : objectnames .GetComponentName (nro .Name , mcp1 .Name ),
2302+ Namespace : testNamespace ,
2303+ }
2304+ err = reconciler .Client .Get (ctx , mcp1DSKey , ds )
2305+ Expect (apierrors .IsNotFound (err )).To (BeTrue (), "unexpected error: %v" , err )
2306+
2307+ By ("Verify global Available condition is false" )
2308+ availableCond := getConditionByType (nro .Status .Conditions , status .ConditionAvailable )
2309+ Expect (availableCond ).ToNot (BeNil ())
2310+ Expect (availableCond .Status ).To (Equal (metav1 .ConditionFalse ))
2311+
22992312 By ("Make pool1 ready and reconcile again" )
23002313 Expect (reconciler .Client .Get (ctx , client .ObjectKeyFromObject (mcp1 ), mcp1 )).To (Succeed ())
23012314 ensureMCPIsReady (mcp1 , nro .Name )
@@ -2304,7 +2317,7 @@ var _ = Describe("Test NUMAResourcesOperator Reconcile", func() {
23042317 Expect (reconciler .Reconcile (ctx , reconcile.Request {NamespacedName : key })).ToNot (CauseRequeue ())
23052318
23062319 By ("Now both DaemonSets exist and status is Available" )
2307- mcp1DSKey : = client.ObjectKey {
2320+ mcp1DSKey = client.ObjectKey {
23082321 Name : objectnames .GetComponentName (nro .Name , mcp1 .Name ),
23092322 Namespace : testNamespace ,
23102323 }
0 commit comments