path: root/openshift-storage-libs/openshiftstoragelibs/
diff options
authorArun Kumar <>2019-04-01 15:41:23 +0530
committerArun Kumar <>2019-07-01 12:40:25 +0530
commit33c9873aca41c262bcc2c31a381279503c1982b9 (patch)
tree9a78491ad86a03ccab594c5ab9d91bd3b7b8c6e4 /openshift-storage-libs/openshiftstoragelibs/
parentff5771132bb1159e2e1a21959e3a12ad8d6d0cc3 (diff)
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
Diffstat (limited to 'openshift-storage-libs/openshiftstoragelibs/')
1 files changed, 1 insertions, 1 deletions
diff --git a/openshift-storage-libs/openshiftstoragelibs/ b/openshift-storage-libs/openshiftstoragelibs/
index 6d29d4ab..51865106 100644
--- a/openshift-storage-libs/openshiftstoragelibs/
+++ b/openshift-storage-libs/openshiftstoragelibs/
@@ -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)"successfully edited storage capacity"
"of pvc %s . out- %s" % (pvc_name, out))