Skip to content

Commit 0cb4240

Browse files
authored
Fixing the error message (#3967)
1 parent 76f2758 commit 0cb4240

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/e2e/mgmt_wrkld_domain_isolation.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ If WCP or CSI drivers are up API return 204. If any of WCP or CSI, is down API
5858
*/
5959
const status_code_failure = 500
6060
const status_code_success = 204
61+
const errMsgRequestedTopologyMismatch = "zones requested in csi.vsphere.volume-requested-topology annotation cannot be used to provision volume in %s namespace"
6162

6263
var _ bool = ginkgo.Describe("[domain-isolation] Management-Workload-Domain-Isolation", func() {
6364

@@ -832,7 +833,7 @@ var _ bool = ginkgo.Describe("[domain-isolation] Management-Workload-Domain-Isol
832833
v1.ClaimBound, client, pvclaim.Namespace, pvclaim.Name, framework.Poll, time.Minute/2)
833834
gomega.Expect(err).To(gomega.HaveOccurred())
834835

835-
expectedErrMsg := "failed to provision volume with StorageClass"
836+
expectedErrMsg := fmt.Sprintf(errMsgRequestedTopologyMismatch, namespace)
836837
framework.Logf("Expected failure message: %+q", expectedErrMsg)
837838
errorOccurred := checkEventsforError(client, pvclaim.Namespace,
838839
metav1.ListOptions{FieldSelector: fmt.Sprintf("involvedObject.name=%s", pvclaim.Name)}, expectedErrMsg)

0 commit comments

Comments
 (0)