From a7b341b0529c1440403612d9cf91aea723791571 Mon Sep 17 00:00:00 2001 From: Emilio Garcia Date: Wed, 25 Aug 2021 14:08:23 -0400 Subject: [PATCH] Remove Error Message Check Dynamic PV Tests Different CSI drivers have different error messages, making it difficult to check them accurately. We remove the check for the error message and only check the failure type instead, since that is all we need. --- test/e2e/storage/testsuites/volumemode.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/e2e/storage/testsuites/volumemode.go b/test/e2e/storage/testsuites/volumemode.go index 65115aa3679..50cb5f4ecd8 100644 --- a/test/e2e/storage/testsuites/volumemode.go +++ b/test/e2e/storage/testsuites/volumemode.go @@ -275,7 +275,8 @@ func (t *volumeModeTestSuite) DefineTests(driver storageframework.TestDriver, pa "involvedObject.namespace": l.ns.Name, "reason": volevents.ProvisioningFailed, }.AsSelector().String() - msg := "does not support block volume provisioning" + // The error message is different for each storage driver + msg := "" err = e2eevents.WaitTimeoutForEvent(l.cs, l.ns.Name, eventSelector, msg, f.Timeouts.ClaimProvision) // Events are unreliable, don't depend on the event. It's used only to speed up the test.