summaryrefslogtreecommitdiff
path: root/ironic/tests/unit/api/test_root.py
diff options
context:
space:
mode:
authorRuby Loo <ruby.loo@intel.com>2017-11-07 17:47:40 -0500
committerRuby Loo <ruby.loo@intel.com>2017-12-04 10:17:30 -0500
commitfeac8cfb786f7490743b3f270aa569054795ef4f (patch)
tree22d4571c01351e412ae92d6d0cb4e6fd99e8d8ae /ironic/tests/unit/api/test_root.py
parent638943dbf8e4adbcbe81a2af0f8a1d5ffd9771f6 (diff)
downloadironic-feac8cfb786f7490743b3f270aa569054795ef4f.tar.gz
Pin API version during rolling upgrade
During a rolling upgrade, when the new services are pinned to the old release, the API version will also be pinned to the old release. This will prevent users from accessing new features that may not quite work. The .sample was updated to reflect the change to the help string for the [DEFAULT]/pin_release_version configuration option. The update also pulled in changes for other options, from other (non-ironic) libraries. Change-Id: I38a0f106b589945fb62071f3dfe5bff43c6fee93 Partial-Bug: #1708549
Diffstat (limited to 'ironic/tests/unit/api/test_root.py')
-rw-r--r--ironic/tests/unit/api/test_root.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ironic/tests/unit/api/test_root.py b/ironic/tests/unit/api/test_root.py
index a4dade70a..118a4cca3 100644
--- a/ironic/tests/unit/api/test_root.py
+++ b/ironic/tests/unit/api/test_root.py
@@ -31,8 +31,9 @@ class TestRoot(base.BaseApiTest):
version1 = response['default_version']
self.assertEqual('v1', version1['id'])
self.assertEqual('CURRENT', version1['status'])
- self.assertEqual(versions.MIN_VERSION_STRING, version1['min_version'])
- self.assertEqual(versions.MAX_VERSION_STRING, version1['version'])
+ self.assertEqual(versions.min_version_string(),
+ version1['min_version'])
+ self.assertEqual(versions.max_version_string(), version1['version'])
class TestV1Root(base.BaseApiTest):