Skip to content

Commit

Permalink
Merge pull request #2488 from AkashKanni/fix-38775
Browse files Browse the repository at this point in the history
OCM-11199 | test: fix id:38775
  • Loading branch information
openshift-merge-bot[bot] authored Sep 25, 2024
2 parents 2d7c9d0 + 2431a09 commit 6a51c9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/e2e/test_rosacli_machine_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ var _ = Describe("Create machinepool",
clusterID, mpName,
"--replicas", "-1")
Expect(err).To(HaveOccurred())
Expect(output.String()).Should(ContainSubstring("min-replicas must be a non-negative integer"))
Expect(output.String()).Should(ContainSubstring("Replicas must be a non-negative integer"))

By("Create machine pool with invalid name")
output, err = rosaClient.MachinePool.CreateMachinePool(clusterID, "%^#@")
Expand All @@ -814,14 +814,14 @@ var _ = Describe("Create machinepool",
Expect(err).To(HaveOccurred())
Expect(output.String()).Should(ContainSubstring("Replicas can't be set when autoscaling is enabled"))

By("Set min-replicas large than max-replicas")
By("Set min-replicas larger than max-replicas")
output, err = rosaClient.MachinePool.CreateMachinePool(
clusterID, mpName,
"--min-replicas", "6",
"--max-replicas", "3",
"--enable-autoscaling")
Expect(err).To(HaveOccurred())
Expect(output.String()).Should(ContainSubstring("max-replicas must be greater or equal to min-replicas"))
Expect(output.String()).Should(ContainSubstring("'min_replicas' must be less than or equal to 'max_replicas'"))

By("Set min-replicas and max-replicas without set --enable-autoscaling")
output, err = rosaClient.MachinePool.CreateMachinePool(
Expand Down

0 comments on commit 6a51c9e

Please sign in to comment.