summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-glance
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-glance')
-rw-r--r--meta-openstack/recipes-devtools/python/python-glance/glance-change-builtin-tests-config-location.patch56
1 files changed, 28 insertions, 28 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-glance/glance-change-builtin-tests-config-location.patch b/meta-openstack/recipes-devtools/python/python-glance/glance-change-builtin-tests-config-location.patch
index 4f82a53..87bfd4a 100644
--- a/meta-openstack/recipes-devtools/python/python-glance/glance-change-builtin-tests-config-location.patch
+++ b/meta-openstack/recipes-devtools/python/python-glance/glance-change-builtin-tests-config-location.patch
@@ -10,11 +10,11 @@ these configuration files using absolute path.
10 10
11Signed-off-by: Vu Tran <vu.tran@windriver.com> 11Signed-off-by: Vu Tran <vu.tran@windriver.com>
12 12
13diff --git a/glance/tests/functional/__init__.py b/glance/tests/functional/__init__.py 13Index: git/glance/tests/functional/__init__.py
14index 1256133..01adb81 100644 14===================================================================
15--- a/glance/tests/functional/__init__.py 15--- git.orig/glance/tests/functional/__init__.py
16+++ b/glance/tests/functional/__init__.py 16+++ git/glance/tests/functional/__init__.py
17@@ -900,7 +900,7 @@ class FunctionalTest(test_utils.BaseTestCase): 17@@ -849,7 +849,7 @@
18 return engine.execute(sql) 18 return engine.execute(sql)
19 19
20 def copy_data_file(self, file_name, dst_dir): 20 def copy_data_file(self, file_name, dst_dir):
@@ -23,11 +23,11 @@ index 1256133..01adb81 100644
23 shutil.copy(src_file_name, dst_dir) 23 shutil.copy(src_file_name, dst_dir)
24 dst_file_name = os.path.join(dst_dir, file_name) 24 dst_file_name = os.path.join(dst_dir, file_name)
25 return dst_file_name 25 return dst_file_name
26diff --git a/glance/tests/unit/api/test_common.py b/glance/tests/unit/api/test_common.py 26Index: git/glance/tests/unit/api/test_common.py
27index 8892025..2aac6b7 100644 27===================================================================
28--- a/glance/tests/unit/api/test_common.py 28--- git.orig/glance/tests/unit/api/test_common.py
29+++ b/glance/tests/unit/api/test_common.py 29+++ git/glance/tests/unit/api/test_common.py
30@@ -137,7 +137,7 @@ class TestMalformedRequest(test_utils.BaseTestCase): 30@@ -135,7 +135,7 @@
31 super(TestMalformedRequest, self).setUp() 31 super(TestMalformedRequest, self).setUp()
32 self.config(flavor='', 32 self.config(flavor='',
33 group='paste_deploy', 33 group='paste_deploy',
@@ -36,11 +36,11 @@ index 8892025..2aac6b7 100644
36 self.api = config.load_paste_app('glance-api') 36 self.api = config.load_paste_app('glance-api')
37 37
38 def test_redirect_incomplete_url(self): 38 def test_redirect_incomplete_url(self):
39diff --git a/glance/tests/unit/base.py b/glance/tests/unit/base.py 39Index: git/glance/tests/unit/base.py
40index 4a19730..16ec103 100644 40===================================================================
41--- a/glance/tests/unit/base.py 41--- git.orig/glance/tests/unit/base.py
42+++ b/glance/tests/unit/base.py 42+++ git/glance/tests/unit/base.py
43@@ -76,7 +76,7 @@ class IsolatedUnitTest(StoreClearingUnitTest): 43@@ -80,7 +80,7 @@
44 registry=self.registry) 44 registry=self.registry)
45 45
46 def _copy_data_file(self, file_name, dst_dir): 46 def _copy_data_file(self, file_name, dst_dir):
@@ -49,11 +49,11 @@ index 4a19730..16ec103 100644
49 shutil.copy(src_file_name, dst_dir) 49 shutil.copy(src_file_name, dst_dir)
50 dst_file_name = os.path.join(dst_dir, file_name) 50 dst_file_name = os.path.join(dst_dir, file_name)
51 return dst_file_name 51 return dst_file_name
52diff --git a/glance/tests/unit/common/test_config.py b/glance/tests/unit/common/test_config.py 52Index: git/glance/tests/unit/common/test_config.py
53index 2dfede1..422a458 100644 53===================================================================
54--- a/glance/tests/unit/common/test_config.py 54--- git.orig/glance/tests/unit/common/test_config.py
55+++ b/glance/tests/unit/common/test_config.py 55+++ git/glance/tests/unit/common/test_config.py
56@@ -64,8 +64,7 @@ class TestPasteApp(test_utils.BaseTestCase): 56@@ -63,8 +63,7 @@
57 57
58 paste_to = temp_file.replace('.conf', '-paste.ini') 58 paste_to = temp_file.replace('.conf', '-paste.ini')
59 if not paste_config_file and make_paste_file: 59 if not paste_config_file and make_paste_file:
@@ -63,22 +63,22 @@ index 2dfede1..422a458 100644
63 _appendto(paste_from, paste_to, paste_append) 63 _appendto(paste_from, paste_to, paste_append)
64 64
65 app = config.load_paste_app('glance-registry') 65 app = config.load_paste_app('glance-registry')
66@@ -90,8 +89,7 @@ class TestPasteApp(test_utils.BaseTestCase): 66@@ -89,8 +88,7 @@
67 paste_append=pipeline) 67 paste_append=pipeline)
68 68
69 def test_load_paste_app_with_paste_config_file(self): 69 def test_load_paste_app_with_paste_config_file(self):
70- paste_config_file = os.path.join(os.getcwd(), 70- paste_config_file = os.path.join(os.getcwd(),
71- 'etc/glance-registry-paste.ini') 71- 'etc/glance-registry-paste.ini')
72+ paste_config_file = '/etc/glance/glance-registry-paste.ini' 72+ paste_config_file = '/etc/glance/glance-registry-paste.ini'
73 expected_middleware = context.UnauthenticatedContextMiddleware 73 expected_middleware = osprofiler.web.WsgiMiddleware
74 self._do_test_load_paste_app(expected_middleware, 74 self._do_test_load_paste_app(expected_middleware,
75 paste_config_file=paste_config_file) 75 paste_config_file=paste_config_file)
76diff --git a/glance/tests/utils.py b/glance/tests/utils.py 76Index: git/glance/tests/utils.py
77index 760824c..db598ba 100644 77===================================================================
78--- a/glance/tests/utils.py 78--- git.orig/glance/tests/utils.py
79+++ b/glance/tests/utils.py 79+++ git/glance/tests/utils.py
80@@ -67,7 +67,7 @@ class BaseTestCase(testtools.TestCase): 80@@ -76,7 +76,7 @@
81 self.config(property_protection_file=self.property_file) 81 property_utils.CONFIG.remove_section(section)
82 82
83 def _copy_data_file(self, file_name, dst_dir): 83 def _copy_data_file(self, file_name, dst_dir):
84- src_file_name = os.path.join('glance/tests/etc', file_name) 84- src_file_name = os.path.join('glance/tests/etc', file_name)