diff options
| author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2015-02-20 16:10:52 -0500 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2015-02-20 16:10:52 -0500 |
| commit | f2760cd5d8a1e2725d0c87bab0828fb6a4215c7c (patch) | |
| tree | bce384a45feea5b76050bd191d49952d0d316008 /meta-openstack/recipes-devtools/python/python-novaclient/novaclient-specify-full-path-to-test-certificate.patch | |
| parent | 0300d491caac03aec3858e56b2999bce2444c28a (diff) | |
| parent | db43720c6ce4750be4776d01454a4d5cce21c9e6 (diff) | |
| download | meta-cloud-services-f2760cd5d8a1e2725d0c87bab0828fb6a4215c7c.tar.gz | |
Merge branch 'master' into kilo
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-novaclient/novaclient-specify-full-path-to-test-certificate.patch')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-novaclient/novaclient-specify-full-path-to-test-certificate.patch | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-novaclient/novaclient-specify-full-path-to-test-certificate.patch b/meta-openstack/recipes-devtools/python/python-novaclient/novaclient-specify-full-path-to-test-certificate.patch deleted file mode 100644 index 1cee4d0..0000000 --- a/meta-openstack/recipes-devtools/python/python-novaclient/novaclient-specify-full-path-to-test-certificate.patch +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | From bdd853d38c7b14088d3e6368e298201c249ab004 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Keith Holman <Keith.Holman@windriver.com> | ||
| 3 | Date: Fri, 13 Jun 2014 09:54:41 -0400 | ||
| 4 | Subject: [PATCH] novaclient: specify full path to test certificate | ||
| 5 | |||
| 6 | The tests shipped with novaclient assume that the files | ||
| 7 | exist at the same location as are appear within the | ||
| 8 | source tree. The tests also assume that the test is ran | ||
| 9 | from the root of the tree. This causes a test to fail as | ||
| 10 | it can't find a test certificate used in one of the | ||
| 11 | tests. This patch fixes the affected test by putting in | ||
| 12 | an identifier that is replaced with the full path to the | ||
| 13 | certificate file. | ||
| 14 | |||
| 15 | Signed-off-by: Keith Holman <Keith.Holman@windriver.com> | ||
| 16 | --- | ||
| 17 | novaclient/tests/v1_1/test_servers.py | 2 +- | ||
| 18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 19 | |||
| 20 | Index: git/novaclient/tests/v1_1/test_servers.py | ||
| 21 | =================================================================== | ||
| 22 | --- git.orig/novaclient/tests/v1_1/test_servers.py | ||
| 23 | +++ git/novaclient/tests/v1_1/test_servers.py | ||
| 24 | @@ -501,7 +501,7 @@ | ||
| 25 | def test_get_password(self): | ||
| 26 | s = self.cs.servers.get(1234) | ||
| 27 | self.assertEqual(b'FooBar123', | ||
| 28 | - s.get_password('novaclient/tests/idfake.pem')) | ||
| 29 | + s.get_password('%PYTHON_SITEPACKAGES_DIR%/novaclient/tests/idfake.pem')) | ||
| 30 | self.assert_called('GET', '/servers/1234/os-server-password') | ||
| 31 | |||
| 32 | def test_get_password_without_key(self): | ||
