From 33c9873aca41c262bcc2c31a381279503c1982b9 Mon Sep 17 00:00:00 2001 From: Arun Kumar Date: Mon, 1 Apr 2019 15:41:23 +0530 Subject: Add TC resize PVC with invalid size This test case checks if invalid size is passed, size of PVC does not change. Verify the size of PVC and I/O can be performed on the volume attached to PVC. Change-Id: Ia833c76a6d9990ebbac78759c54dc7d28f530ec6 --- openshift-storage-libs/openshiftstoragelibs/openshift_ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openshift-storage-libs/openshiftstoragelibs/openshift_ops.py') diff --git a/openshift-storage-libs/openshiftstoragelibs/openshift_ops.py b/openshift-storage-libs/openshiftstoragelibs/openshift_ops.py index 6d29d4ab..51865106 100644 --- a/openshift-storage-libs/openshiftstoragelibs/openshift_ops.py +++ b/openshift-storage-libs/openshiftstoragelibs/openshift_ops.py @@ -1005,7 +1005,7 @@ def resize_pvc(hostname, pvc_name, size): ''' cmd = ("oc patch pvc %s " "-p='{\"spec\": {\"resources\": {\"requests\": " - "{\"storage\": \"%dGi\"}}}}'" % (pvc_name, size)) + "{\"storage\": \"%sGi\"}}}}'" % (pvc_name, size)) out = command.cmd_run(cmd, hostname=hostname) g.log.info("successfully edited storage capacity" "of pvc %s . out- %s" % (pvc_name, out)) -- cgit