For v3 volume, add show_version api test, url is error and not reachable

Bug #1839794 reported by wangzhiguang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Fix Released
Undecided
Doug Schveninger

Bug Description

For v3 volume, I want to add api test for show_version method in tempest/lib/service/volume/v3/versions_client.py. The specific API code is:
@decorators.idempotent_id('77838fc4-b49b-4c64-9533-166762517369')
    def test_show_version(self):
        # NOTE: The version data is checked on service client side
        # with JSON-Schema validation. It is enough to just call
        # the API here.
        self.versions_client.show_version('v3')
When I go to execute nosetests -v tempest/api/volume/test_versions.py command,The result is fail. By looking at the error message, we found that the url with permissions was wrong.Please check the attachment for details

Revision history for this message
wangzhiguang (wzginspur) wrote :
Changed in tempest:
assignee: nobody → wangzhiguang (wzginspur)
status: New → In Progress
Revision history for this message
Doug Schveninger (ds6901) wrote :

confirm on my devstack.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

Fix proposed to branch: master
Review: https://review.opendev.org/680790

Changed in tempest:
assignee: wangzhiguang (wzginspur) → Doug Schveninger (ds6901)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

Reviewed: https://review.opendev.org/680790
Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=152f1054b5ed98dafe1333deba6b14a08d7ec03f
Submitter: Zuul
Branch: master

commit 152f1054b5ed98dafe1333deba6b14a08d7ec03f
Author: Doug Schveninger <email address hidden>
Date: Fri Sep 6 19:53:02 2019 -0500

    Address bug 1839794 on the Volume show version client

    Bug https://bugs.launchpad.net/tempest/+bug/1839794
    found out that the volume version_show client that
    was not used had a defect when builing the URL.
    Used the same direction that the compute version client
    did to strip off the version and project info and add
    back the version.[0] Also added a Volume v3 test using the
    client.

    [0] https://github.com/openstack/tempest/blob/master/tempest/lib/services/compute/versions_client.py#L40

    Change-Id: I9be99f5fc0eab3de125ce69415a0be65b1c4ad0d
    Closes-Bug: #1839794

Changed in tempest:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tempest 22.0.0

This issue was fixed in the openstack/tempest 22.0.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tempest (master)

Change abandoned by "Martin Kopec <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/tempest/+/675801
Reason: due to the age of the review and the previous comment, in case this is still valid, feel free to restore

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.