From 0c80c1630ce20ad57e849cbd9e91cbc0d8015bc4 Mon Sep 17 00:00:00 2001 From: Tom Barron Date: Fri, 11 Mar 2016 05:55:02 -0500 Subject: [PATCH] Enable api.view.test_versions unit tests This commit adds a init file so that this unit test module gets run and modifies test_generate_href_defaults so that it works with our codebase. Change-Id: I39bbdb0ca5da5dd5867923491ca8e843289a476a --- cinder/tests/unit/api/views/__init__.py | 0 cinder/tests/unit/api/views/test_versions.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 cinder/tests/unit/api/views/__init__.py diff --git a/cinder/tests/unit/api/views/__init__.py b/cinder/tests/unit/api/views/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/cinder/tests/unit/api/views/test_versions.py b/cinder/tests/unit/api/views/test_versions.py index 8f430a84c..b21fdd2e2 100644 --- a/cinder/tests/unit/api/views/test_versions.py +++ b/cinder/tests/unit/api/views/test_versions.py @@ -121,7 +121,7 @@ class ViewBuilderTestCase(test.TestCase): result = self._get_builder()._generate_href() - self.assertEqual('http://localhost/v1/', result) + self.assertEqual('http://localhost/v3/', result) @ddt.data( ('v2', None, URL_BASE + 'v2/'), -- 2.45.2