Skip to content

Commit

Permalink
OCM-10846 | test: update id:38837 error message with the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xueli181114 committed Sep 25, 2024
1 parent c2c8c67 commit aa31875
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/e2e/test_rosacli_cluster_post.go
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ var _ = Describe("Post-Check testing for cluster creation",
By("Check policy is aws managed policy")
attachedPolicies, err := awsClient.ListAttachedRolePolicies(operatorRoleName)
Expect(err).To(BeNil())
Expect(*attachedPolicies[0].PolicyArn).To(ContainSubstring("arn:aws:iam::aws"))
Expect(*attachedPolicies[0].PolicyArn).To(ContainSubstring("arn:aws:iam::aws"), operatorRoleName)
}
})
})
4 changes: 2 additions & 2 deletions tests/e2e/test_rosacli_ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,12 +497,12 @@ var _ = Describe("Edit ingress",
Expect(output.String()).Should(ContainSubstring("unknown flag: --not-allowe-flag"))

By("Edit non-existing ingress")
output, err = ingressService.EditIngress(clusterID, "notexisting",
output, err = ingressService.EditIngress(clusterID, "note",
"--label-match", "invalid=invalidvalue",
)
Expect(err).To(HaveOccurred())
Expect(output.String()).Should(
ContainSubstring("Ingress identifier 'notexisting' isn't valid"))
ContainSubstring("Failed to get ingress 'note' for cluster"))

By("Edit ingress with invalid LB-type")
output, err = ingressService.EditIngress(clusterID, "apps",
Expand Down

0 comments on commit aa31875

Please sign in to comment.