test_create_certs ssl certificate directory is wrongly set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Undecided
|
Ionuț Arțăriși |
Bug Description
On a fresh devstack clone + .stack.sh, I get a failing unit test. (the error only shows up when at least one other unit test is ran together with it which I suppose is because of the test cases' setup/teardown methods).
$ ./run_tests.sh -N test_wsgi test_cert_setup
test_query_
test_render_
test_render_
test_render_
test_render_
test_response_
test_create_certs (test_cert_
=======
ERROR: test_create_certs (test_cert_
-------
Traceback (most recent call last):
File "/opt/stack/
shutil.
File "/usr/lib/
onerror(
File "/usr/lib/
names = os.listdir(path)
OSError: [Errno 2] No such file or directory: '/opt/stack/
-------
Ran 7 tests in 0.076s
FAILED (errors=1)
Changed in keystone: | |
assignee: | nobody → Ionuț Arțăriși (mapleoin) |
status: | New → In Progress |
Changed in keystone: | |
milestone: | none → grizzly-2 |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | grizzly-2 → 2013.1 |
Reviewed: https:/ /review. openstack. org/17341 github. com/openstack/ keystone/ commit/ 77dee93763e4941 b07f628c1c67d92 5503a5df51
Committed: http://
Submitter: Jenkins
Branch: master
commit 77dee93763e4941 b07f628c1c67d92 5503a5df51
Author: Ionuț Arțăriși <email address hidden>
Date: Mon Dec 3 11:59:20 2012 +0100
use keystone test and change config during setUp
Also fixes this traceback which I keep getting on devstack:
ERROR: test_create_certs (tests. test_cert_ setup.CertSetup TestCase) ------- ------- ------- ------- ------- ------- ------- ------- ------- ---- keystone/ tests/test_ cert_setup. py", line 52, in tearDown
shutil. rmtree( rootdir( SSLDIR) ) python2. 7/shutil. py", line 237, in rmtree
onerror( os.listdir, path, sys.exc_info()) python2. 7/shutil. py", line 235, in rmtree keystone/ tests/ssl/ '
---
Traceback (most recent call last):
File "/opt/stack/
File "/usr/lib/
File "/usr/lib/
names = os.listdir(path)
OSError: [Errno 2] No such file or directory: '/opt/stack/
Fixes bug 1086812
Change-Id: Iba10822aaf1284 549d610bb1172df 03ffc48f363