e2e: ignore lines with 'Warning' in isAlreadyExistsCliError()

Signed-off-by: Rakshith R <rar@redhat.com>
This commit is contained in:
Rakshith R 2021-08-26 16:15:02 +05:30 committed by mergify[bot]
parent 8ea495ab81
commit dbf2eb3905

View File

@ -103,6 +103,10 @@ func isAlreadyExistsCLIError(err error) bool {
if strings.TrimSuffix(s, "\n") == "" { if strings.TrimSuffix(s, "\n") == "" {
continue continue
} }
// Ignore warnings
if strings.Contains(s, "Warning") {
continue
}
// Resource already exists error message // Resource already exists error message
if !strings.Contains(s, "Error from server (AlreadyExists)") { if !strings.Contains(s, "Error from server (AlreadyExists)") {
return false return false