]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test_volume_client: rewrite test_put_object_versioned
authorRishabh Dave <ridave@redhat.com>
Fri, 21 Jun 2019 10:13:07 +0000 (15:43 +0530)
committerRishabh Dave <ridave@redhat.com>
Sat, 13 Jul 2019 06:13:03 +0000 (11:43 +0530)
commit37744ecc2b113c31d8f5f12ca13b6bdcc8e84306
tree8daf739f0d0259c553e14cdb2ab3098a63d173b8
parent878c34c701965b8231e0bcaa19956cb89d9db395
test_volume_client: rewrite test_put_object_versioned

The test's success depends on whether CommandFailedError exception is
raised. This manner of testing is unreliable since there's no way to
check if the exception was raised by the statement (in the embedded
Python program) the test expects to.

This implies that this test's failure may go undetected. This is primary
reason why bugs like tracker #38946 occured despite of having a test.

Fixes: http://tracker.ceph.com/issues/39510
Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/cephfs/test_volume_client.py