Volume API RBAC test "test_volume_reset_status" is failing

Bug #1665428 reported by Mh Raies on 2017-02-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Patrole
Undecided
Mh Raies

Bug Description

Volume API RBAC test "test_volume_reset_status" is failing.

#############################
Below is the failure traces -

patrole_tempest_plugin.tests.api.volume.test_volumes_rbac.VolumesRbacTest.test_volume_reset_status
--------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "/home/ubuntu/development/patrole/patrole_tempest_plugin/rbac_rule_validation.py", line 42, in wrapper
        func(*args)
      File "/home/ubuntu/development/patrole/patrole_tempest_plugin/tests/api/volume/test_volumes_rbac.py", line 49, in test_volume_reset_status
        self.client.reset_volume_status(volume['id'], status='availble')
      File "tempest/lib/services/volume/v2/volumes_client.py", line 182, in reset_volume_status
        resp, body = self.post('volumes/%s/action' % volume_id, post_body)
      File "tempest/lib/common/rest_client.py", line 276, in post
        return self.request('POST', url, extra_headers, headers, body, chunked)
      File "tempest/lib/common/rest_client.py", line 664, in request
        self._error_checker(resp, resp_body)
      File "tempest/lib/common/rest_client.py", line 766, in _error_checker
        raise exceptions.BadRequest(resp_body, resp=resp)
    tempest.lib.exceptions.BadRequest: Bad request
    Details: {u'code': 400, u'message': u'Must specify a valid status'}

Mh Raies (raiesmh08) on 2017-02-16
Changed in patrole:
assignee: nobody → Mh Raies (raiesmh08)

Fix proposed to branch: master
Review: https://review.openstack.org/435060

Changed in patrole:
status: New → In Progress

Reviewed: https://review.openstack.org/435060
Committed: https://git.openstack.org/cgit/openstack/patrole/commit/?id=1b17ee28eb6290aef2827fd6745be5f30663e7a9
Submitter: Jenkins
Branch: master

commit 1b17ee28eb6290aef2827fd6745be5f30663e7a9
Author: raiesmh08 <email address hidden>
Date: Thu Feb 16 23:58:08 2017 +0530

    Fix for typo of correct volume status

    Volume API RBAC test "test_volume_reset_status" is failing because of
    typo error in volume status.

    This patch provide fix for this problem.

    Change-Id: I4a32fbb6fc5027e9669a2e37142609b4a719e0cb
    Closes-Bug: #1665428

Changed in patrole:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers