horizon/openstack_dashboard/test
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
..
api_tests Properly compare versions in APIVersionManager 2017-01-27 13:43:47 +00:00
integration_tests Merge "Simplify uuid without dashed" 2016-12-16 05:15:56 +00:00
jasmine Remove unused jasmine_tests.py 2015-05-13 12:39:00 -06:00
templates Splits OpenStack Dashboard bits from framework app code. 2012-10-11 11:47:50 -07:00
test_data Merge "Simple tenant usage pagination" 2017-01-25 21:00:39 +00:00
test_panels Add Apache 2.0 license to source file 2016-12-02 17:40:28 +07:00
test_plugins assertEquals is deprecated, use assertEqual 2016-01-27 00:59:19 +08:00
tests Merge "Specify POLICY_CHECK_FUNCTION as a string" 2017-01-03 18:49:47 +00:00
__init__.py Revamp of testing machinery. 2012-04-23 22:24:21 -07:00
error_pages_urls.py Add Apache 2.0 license to source file 2016-12-02 17:40:28 +07:00
helpers.py Fake deprecated nova client properties 2017-01-18 11:01:10 -05:00
settings.py Adding identity ng-roles panel 2017-01-04 11:54:59 -08:00
urls.py Update URLs to Django 1.8+ style 2016-03-28 11:03:08 +01:00