diff options
author | Arun Kumar <arukumar@redhat.com> | 2019-04-01 15:41:23 +0530 |
---|---|---|
committer | Arun Kumar <arukumar@redhat.com> | 2019-07-01 12:40:25 +0530 |
commit | 33c9873aca41c262bcc2c31a381279503c1982b9 (patch) | |
tree | 9a78491ad86a03ccab594c5ab9d91bd3b7b8c6e4 /openshift-storage-libs/openshiftstoragelibs | |
parent | ff5771132bb1159e2e1a21959e3a12ad8d6d0cc3 (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')
-rw-r--r-- | openshift-storage-libs/openshiftstoragelibs/openshift_ops.py | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |