Output of supported api versions wrong

Bug #1411672 reported by Sergey Reshetnyak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python client library for Sahara
Fix Released
Low
Sergey Reshetnyak

Bug Description

Steps to reproduce:
1. Create saharaclient instance with wrong api version
2. Get an error:

  File "sahara/tests/scenario/clients/sahara.py", line 7, in __init__
    self.sahara_client = sahara_client.Client('v1.1', *args, **kwargs)
  File "/home/serg/projects/sahara/.tox/scenario/lib/python2.7/site-packages/saharaclient/client.py", line 46, in Client
    client_class = get_client_class(version)
  File "/home/serg/projects/sahara/.tox/scenario/lib/python2.7/site-packages/saharaclient/client.py", line 40, in get_client_class
    raise UnsupportedVersion(msg)
UnsupportedVersion: Invalid client version 'v1.1'; must be one of: 1.01.1

Actual message:
UnsupportedVersion: Invalid client version 'v1.1'; must be one of: 1.01.1

Expected message:
UnsupportedVersion: Invalid client version 'v1.1'; must be one of: 1.0, 1.1

summary: - Output of supported client versions wrong
+ Output of supported api versions wrong
Changed in python-saharaclient:
assignee: nobody → Sergey Reshetnyak (sreshetniak)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-saharaclient (master)

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

Changed in python-saharaclient:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-saharaclient (master)

Reviewed: https://review.openstack.org/147850
Committed: https://git.openstack.org/cgit/openstack/python-saharaclient/commit/?id=786b6ca4cbec07135a22a970d4f9506b43f12376
Submitter: Jenkins
Branch: master

commit 786b6ca4cbec07135a22a970d4f9506b43f12376
Author: Sergey Reshetnyak <email address hidden>
Date: Fri Jan 16 16:47:40 2015 +0300

    Fix output of supported api versions

    Change-Id: I22078ed18b5d6dfed408c94d3b2f1c84e7b27773
    Closes-bug: #1411672

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

This issue was fixed in the openstack/python-saharaclient 0.8.0 release.

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.