Skip to content

Commit

Permalink
OCM-10248 | test: automated cases id:75052
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrazierRH committed Aug 7, 2024
1 parent d4f5ff8 commit 729870b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/e2e/test_rosacli_ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,23 @@ var _ = Describe("Edit default ingress",
Expect(in.ID).To(Equal(defaultID.ID))
})

It("can describe ingress of a cluster negative - [id:75052]",
labels.Low, labels.Runtime.Day2,
func() {
By("Get default ingress id with no clusterID provided")
emptyClusterID := ""
output, err := ingressService.ListIngress(emptyClusterID)
Expect(err).To(HaveOccurred())
Expect(output.String()).Should(ContainSubstring(
"ERR: Cluster name, identifier or external identifier '' " +
"isn't valid: it must contain only letters, digits, dashes and underscore"))

By("Get default ingress id with no clusterID provided")
out, err := rosaClient.Ingress.DescribeIngress(clusterID, "xxx")
Expect(err).To(HaveOccurred())
Expect(out.String()).Should(ContainSubstring("ERR: Failed to get ingress 'xxx' for cluster '%s'", clusterID))
})

It("change load balancer type - [id:64767]",
labels.Critical,
labels.Runtime.Day2,
Expand Down

0 comments on commit 729870b

Please sign in to comment.