Skip to content

Commit

Permalink
OCM-8299 | fix: id:53031 update the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
AkashKanni committed Jun 3, 2024
1 parent f8cd646 commit 40b0996
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/e2e/test_rosacli_idp.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package e2e

import (
"errors"
"fmt"
"os"
"regexp"
"strings"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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))
})
})

0 comments on commit 40b0996

Please sign in to comment.