Skip to content

Commit

Permalink
OCM-11199 | test: fix id:38775
Browse files Browse the repository at this point in the history
  • Loading branch information
AkashKanni committed Sep 23, 2024
1 parent 5429725 commit 2431a09
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 2431a09

Please sign in to comment.