horizon/openstack_dashboard/test/api_tests
Radomir Dopieralski 8377fb9e18 Properly compare versions in APIVersionManager
Since the APIVersionManager stored the version numbers as ints and
floats, it was not possible to distinguish between version 1.2 and 1.20,
and also version 1.2 would be considered higher than version 1.13. With
the introduction of microversioning in some services, the version
numbers inflate quickly, making this a problem.

This patch wraps the version numbers in a Version object, that stores
the information as a semantic_version and correctly compares with other
Version objects, as well as ints, floats and strings.

It also removes the check for version being specified as a string, so
that it's possible to specify versions such as 1.20 without having to
explicitly create Version objects.

Change-Id: I0b0d87582d617290f08359ad181216cb99edb768
Closes-Bug: #1649819
2017-01-27 13:43:47 +00:00
..
__init__.py Splits OpenStack Dashboard bits from framework app code. 2012-10-11 11:47:50 -07:00
base_tests.py Properly compare versions in APIVersionManager 2017-01-27 13:43:47 +00:00
cinder_rest_tests.py Enable volumes metadata update 2016-09-28 18:17:14 +03:00
cinder_tests.py Replace six.iteritems(iter) with iter.items() 2016-12-14 11:13:20 +08:00
config_rest_tests.py Port config_rest_tests to Python 3 2015-09-01 18:35:44 +02:00
fwaas_tests.py Corrected spelling errors throughout the project 2015-10-29 16:18:49 -05:00
glance_rest_tests.py Support for Glance v2 2016-09-12 11:16:33 -07:00
glance_tests.py Merge "Enable volumes metadata update" 2016-10-03 23:47:31 +00:00
heat_rest_tests.py Add API services for system information 2015-12-16 23:22:20 +00:00
heat_tests.py Horizon support for Heat template versions 2016-03-14 12:40:35 +03:00
keystone_rest_tests.py Add Keystone Groups to REST API 2016-10-11 11:33:37 -07:00
keystone_tests.py py3: Replace unicode with six.text_type 2015-08-27 01:26:02 +02:00
network_rest_tests.py Add REST API for working with floating IPs 2016-02-16 16:11:23 -06:00
network_tests.py Merge "Replaces uuid.uuid4 with uuidutils.generate_uuid()" 2016-11-14 11:38:25 +00:00
neutron_rest_tests.py Adding Identity NGProjects API 2016-06-21 13:12:43 +00:00
neutron_tests.py Specify POLICY_CHECK_FUNCTION as a string 2016-11-25 13:06:14 +01:00
nova_rest_tests.py Strip leading or trailing spaces from Instance names during update and create 2016-11-08 08:32:25 -08:00
nova_tests.py Try to use 2.40 microversion for simple-tenant-usages 2017-01-24 13:05:17 +01:00
policy_rest_tests.py Specify POLICY_CHECK_FUNCTION as a string 2016-11-25 13:06:14 +01:00
rest_util_tests.py Fix order of arguments in assertEqual 2016-08-16 12:02:45 +07:00
swift_rest_tests.py Fix order of arguments in assertEqual 2016-08-16 12:02:45 +07:00
swift_tests.py Implement file update (edit) in Swift UI 2016-08-22 14:47:23 +10:00
vpnaas_tests.py Fix E128 errors in remaining openstack_dashboard/ 2014-10-16 16:53:52 +09:00