diff --git a/test/e2e/formatted_error_test.go b/test/e2e/formatted_error_test.go index 7dfe27782..2a97c256c 100644 --- a/test/e2e/formatted_error_test.go +++ b/test/e2e/formatted_error_test.go @@ -73,6 +73,9 @@ kapp: Error: create job/successful-job (batch/v1) namespace: default: replaceUIDs := regexp.MustCompile(`"controller-uid":"[^"]+"`) out = replaceUIDs.ReplaceAllString(out, "-replaced-") + replaceUIDs = regexp.MustCompile(`"batch\.kubernetes\.io\/controller-uid":"[^"]+"`) + out = replaceUIDs.ReplaceAllString(out, "-replaced-") + require.Containsf(t, out, expectedErr, "Expected to see expected err in output, but did not") }) } diff --git a/test/e2e/ignore_failing_api_services_flag_test.go b/test/e2e/ignore_failing_api_services_flag_test.go index 5d0831416..27a176509 100644 --- a/test/e2e/ignore_failing_api_services_flag_test.go +++ b/test/e2e/ignore_failing_api_services_flag_test.go @@ -129,7 +129,7 @@ metadata: AllowError: true, IntoNs: true, StdinReader: strings.NewReader(yaml3)}) require.Errorf(t, err, "Expected error when deploying with failing api service") - require.Contains(t, err.Error(), "unable to retrieve the complete list of server APIs: samplekapptest.com/v1: the server is currently unable to handle the request", + require.Contains(t, err.Error(), "unable to retrieve the complete list of server APIs: samplekapptest.com/v1", "Expected api retrieval error") })