]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
vstart_runner.py: add methods for negative testing a cmd
authorRishabh Dave <ridave@redhat.com>
Thu, 13 Feb 2020 13:12:02 +0000 (18:42 +0530)
committerRishabh Dave <ridave@redhat.com>
Thu, 16 Apr 2020 18:58:20 +0000 (00:28 +0530)
commitec1c2af43f75f6c84efec35264da76fa0889bd43
tree0c2621d70c2409f6ed03230a5e762ad03d415557
parent7b15a8437e372f8d2f5671ade4f4464a76fe3210
vstart_runner.py: add methods for negative testing a cmd

Methods like run_shell effectively conduct positive test on the given
command. Add methods that runs given command expecting failure and then
verifies return value and error message with given one. Rewrite testcmd,
testcmd_as_user and testcmd_as_root to create these new methods for
negative testing since run_shell, run_as_user and run_as_root is
equivalent of running positive test.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/cephfs/mount.py