From ea5ecc035b3f3d03e2a4e6d1329f086ff386e95d Mon Sep 17 00:00:00 2001 From: aaraj Date: Fri, 9 Aug 2024 11:50:07 +0530 Subject: [PATCH] OCM-10298 | ci: fix id:73391,65160 --- tests/e2e/test_rosacli_idp.go | 4 ---- tests/e2e/test_rosacli_node_pool.go | 5 +++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/e2e/test_rosacli_idp.go b/tests/e2e/test_rosacli_idp.go index 351a8f6a0c..2e7176db56 100644 --- a/tests/e2e/test_rosacli_idp.go +++ b/tests/e2e/test_rosacli_idp.go @@ -778,8 +778,6 @@ var _ = Describe("Edit IDP", Expect(err).To(BeNil()) textData = rosaClient.Parser.TextData.Input(output).Parse().Tip() Expect(textData).Should(ContainSubstring("Identity Provider '%s' has been created", idpNames[1])) - Expect(textData).Should(ContainSubstring("To log in to the console, open")) - Expect(textData).Should(ContainSubstring("and click on '%s'", idpNames[1])) By("List IDPs") idpTab, _, err := idpService.ListIDP(clusterID) @@ -825,8 +823,6 @@ var _ = Describe("Edit IDP", Expect(err).To(BeNil()) textData := rosaClient.Parser.TextData.Input(output).Parse().Tip() Expect(textData).Should(ContainSubstring("Identity Provider '%s' has been created", idpNames[0])) - Expect(textData).Should(ContainSubstring("To log in to the console, open")) - Expect(textData).Should(ContainSubstring("and click on '%s'", idpNames[0])) By("Create htpasswd idp with --users flag") output, err = idpService.CreateIDP(clusterID, idpNames[1], diff --git a/tests/e2e/test_rosacli_node_pool.go b/tests/e2e/test_rosacli_node_pool.go index 7b250321ac..cf64d55b0a 100644 --- a/tests/e2e/test_rosacli_node_pool.go +++ b/tests/e2e/test_rosacli_node_pool.go @@ -947,7 +947,7 @@ var _ = Describe("Edit nodepool", Expect(err).To(HaveOccurred()) Expect(rosaClient.Parser.TextData.Input(output).Parse().Tip()). To(ContainSubstring( - "The number of machine pool replicas needs to be a non-negative integer")) + "ERR: Failed to get autoscaling or replicas: 'Replicas must be a non-negative number'")) By("Try to edit the machinepool with --min-replicas flag when autoscaling is disabled for the machinepool.") output, err = machinePoolService.EditMachinePool(clusterID, machinepoolName, "--min-replicas", "2") @@ -986,7 +986,8 @@ var _ = Describe("Edit nodepool", Expect(err).To(HaveOccurred()) Expect(rosaClient.Parser.TextData.Input(output).Parse().Tip()). To(ContainSubstring( - "The number of machine pool min-replicas needs to be greater than zero")) + "ERR: Failed to get autoscaling or replicas: " + + "'Min replicas must be a non-negative number when autoscaling is set'")) By("Try to edit machinepool with --replicas flag when the autoscaling is enabled for the machinepool.") output, err = machinePoolService.EditMachinePool(clusterID, machinepoolName, "--replicas", "3")