Skip to content

Commit 2ce12df

Browse files
committed
cancel AWS apecific check for non-AWS platforms
Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>
1 parent b06f1b7 commit 2ce12df

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

test/e2e/nodepool_test.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,13 @@ func executeNodePoolTest(t *testing.T, ctx context.Context, mgmtClient crclient.
209209
// run test validations
210210
nodePoolTest.Run(t, *nodePool, nodes)
211211

212-
// validate default security group
213212
err = mgmtClient.Get(ctx, crclient.ObjectKeyFromObject(nodePool), nodePool)
214213
g.Expect(err).NotTo(HaveOccurred(), "failed to get nodePool")
215214

216-
nodePoolCondition := nodepool.FindStatusCondition(nodePool.Status.Conditions, hyperv1.NodePoolAWSSecurityGroupAvailableConditionType)
217-
g.Expect(nodePoolCondition).ToNot(BeNil(), "%s condition not found", hyperv1.NodePoolAWSSecurityGroupAvailableConditionType)
218-
g.Expect(nodePoolCondition.Status).To(Equal(corev1.ConditionTrue), "condition %s is not True", hyperv1.NodePoolAWSSecurityGroupAvailableConditionType)
215+
if hostedCluster.Spec.Platform.Type == hyperv1.AWSPlatform {
216+
// validate default security group
217+
nodePoolCondition := nodepool.FindStatusCondition(nodePool.Status.Conditions, hyperv1.NodePoolAWSSecurityGroupAvailableConditionType)
218+
g.Expect(nodePoolCondition).ToNot(BeNil(), "%s condition not found", hyperv1.NodePoolAWSSecurityGroupAvailableConditionType)
219+
g.Expect(nodePoolCondition.Status).To(Equal(corev1.ConditionTrue), "condition %s is not True", hyperv1.NodePoolAWSSecurityGroupAvailableConditionType)
220+
}
219221
}

0 commit comments

Comments
 (0)