Skip to content

Commit

Permalink
test: Fix failing testing to validate correct message value (#6197)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis authored May 14, 2024
1 parent 120419b commit beb0b70
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/suites/integration/ami_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ var _ = Describe("AMI", func() {
nc := EventuallyExpectAMIsToExist(nodeClass)
Expect(len(nc.Status.AMIs)).To(BeNumerically("==", 1))
Expect(nc.Status.AMIs[0].ID).To(Equal(customAMI))
env.EventuallyExpectNodeClassStatusCondition(nodeClass, v1beta1.ConditionTypeNodeClassReady, true, "")
env.EventuallyExpectNodeClassStatusCondition(nodeClass, v1beta1.ConditionTypeNodeClassReady, true, v1beta1.ConditionTypeNodeClassReady)
})
It("should have ec2nodeClass status as not ready since AMI was not resolved", func() {
nodeClass.Spec.AMISelectorTerms = []v1beta1.AMISelectorTerm{
Expand Down
2 changes: 1 addition & 1 deletion test/suites/integration/instance_profile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ var _ = Describe("InstanceProfile Generation", func() {
instance := env.GetInstance(node.Name)
Expect(instance.IamInstanceProfile).ToNot(BeNil())
Expect(lo.FromPtr(instance.IamInstanceProfile.Arn)).To(ContainSubstring(nodeClass.Status.InstanceProfile))
env.EventuallyExpectNodeClassStatusCondition(nodeClass, v1beta1.ConditionTypeNodeClassReady, true, "")
env.EventuallyExpectNodeClassStatusCondition(nodeClass, v1beta1.ConditionTypeNodeClassReady, true, v1beta1.ConditionTypeNodeClassReady)
})
It("should have the EC2NodeClass status as not ready since Instance Profile was not resolved", func() {
nodeClass.Spec.Role = fmt.Sprintf("KarpenterNodeRole-%s", "invalidRole")
Expand Down
2 changes: 1 addition & 1 deletion test/suites/integration/security_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ var _ = Describe("SecurityGroups", func() {
It("should update the EC2NodeClass status security groups", func() {
env.ExpectCreated(nodeClass)
EventuallyExpectSecurityGroups(env, nodeClass)
env.EventuallyExpectNodeClassStatusCondition(nodeClass, v1beta1.ConditionTypeNodeClassReady, true, "")
env.EventuallyExpectNodeClassStatusCondition(nodeClass, v1beta1.ConditionTypeNodeClassReady, true, v1beta1.ConditionTypeNodeClassReady)
})

It("should have the NodeClass status as not ready since security groups were not resolved", func() {
Expand Down
2 changes: 1 addition & 1 deletion test/suites/integration/subnet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ var _ = Describe("Subnets", func() {
It("should have the NodeClass status for subnets", func() {
env.ExpectCreated(nodeClass)
EventuallyExpectSubnets(env, nodeClass)
env.EventuallyExpectNodeClassStatusCondition(nodeClass, v1beta1.ConditionTypeNodeClassReady, true, "")
env.EventuallyExpectNodeClassStatusCondition(nodeClass, v1beta1.ConditionTypeNodeClassReady, true, v1beta1.ConditionTypeNodeClassReady)
})
It("should have the NodeClass status as not ready since subnets were not resolved", func() {
nodeClass.Spec.SubnetSelectorTerms = []v1beta1.SubnetSelectorTerm{
Expand Down

0 comments on commit beb0b70

Please sign in to comment.