python-openstackclient/openstackclient/tests/unit
Imtiaz Chowdhury 1bd2bf67da Fixes image api URL endpoint for certain scenario
openstackclient fails to get image list when the image api endpoint
has 'v2' substring in the URL. Instead of checking whether the api
endpoint URL terminates with '/v2', the current logic is checking
whether 'v2' appears anywhere in the endpoint string.

This issue was discovered on a production setup where certain
server names had 'v2' in their names. For example, when a hostname
is gopher.dev20.com, the image list APIs fail.

This commit updates the unit test to reflect this scenario. Without
the change in openstackclient/api/image_v2.py, all the unit tests
fail.

Co-Authored-By: sergio.carvalho@workday.com
Change-Id: I26b85afd646938272dbabe8e045b337b7df58c7d
Closes-Bug: 1652827
2017-01-04 18:14:10 +00:00
..
api Fixes image api URL endpoint for certain scenario 2017-01-04 18:14:10 +00:00
common Merge "Fix openstack quota set/show --class not work" 2016-09-20 09:01:16 +00:00
compute Add unit tests for usage commands in compute v2 2016-12-26 03:05:37 +00:00
identity Remove auth_with_unscoped_saml decorator 2016-12-04 18:59:09 +00:00
image Revert "Remove marker and loop from "image list" command" 2016-12-05 10:35:00 +01:00
integ move unit tests to new "unit" test module 2016-09-08 15:19:50 -07:00
network Merge "Add '--type'and other options to network rbac list" 2016-12-26 03:58:45 +00:00
object Add option "--name" to command "openstack object create" 2016-09-26 22:42:10 -04:00
volume Add one test for "backup set" command 2016-12-19 18:50:08 +08:00
__init__.py move unit tests to new "unit" test module 2016-09-08 15:19:50 -07:00
fakes.py Update default nova api version to 2.1 2016-09-28 14:02:00 +00:00
test_shell.py [TrivialFix] Fix typo error 2016-12-14 14:39:24 +08:00
utils.py move unit tests to new "unit" test module 2016-09-08 15:19:50 -07:00