From 40b09966ad6bd838360d3bb0b3e454990e056904 Mon Sep 17 00:00:00 2001 From: Akash Kanni Date: Thu, 30 May 2024 14:18:09 +0530 Subject: [PATCH] OCM-8299 | fix: id:53031 update the error message --- tests/e2e/test_rosacli_idp.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/e2e/test_rosacli_idp.go b/tests/e2e/test_rosacli_idp.go index 855f2f9a93..de31da5d43 100644 --- a/tests/e2e/test_rosacli_idp.go +++ b/tests/e2e/test_rosacli_idp.go @@ -2,7 +2,6 @@ package e2e import ( "errors" - "fmt" "os" "regexp" "strings" @@ -338,7 +337,7 @@ var _ = Describe("Edit IDP", }) It("Validation for Create/Delete the HTPasswd IDPs by the rosacli command - [id:53031]", - labels.Critical, + labels.Critical, labels.Day2, func() { var ( idpType = "htpasswd" @@ -396,6 +395,6 @@ var _ = Describe("Edit IDP", "-y") Expect(err).NotTo(BeNil()) textData = rosaClient.Parser.TextData.Input(output).Parse().Tip() - Expect(textData).Should(ContainSubstring(fmt.Sprintf("Failed to add IDP to cluster '%s': Invalid username '%s': Username must not contain /, :, or %%", clusterID, invalidUserName))) + Expect(textData).Should(ContainSubstring("invalid username '%s': username must not contain /, :, or %", invalidUserName)) }) })