yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #49922
[Bug 1574493] [NEW] keystone tox -epy27 fail in devstack environment
Public bug reported:
reproduce steps:
1. clone devstack, enable keystone
2. cd /opt/stack/keystone && tox -epy27
==============================
Failed 1 tests - output below:
==============================
keystone.tests.unit.test_cli.CliNoConfigTestCase.test_cli
---------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "keystone/tests/unit/test_cli.py", line 71, in test_cli
self.assertThat(self.logging.output, matchers.Contains(expected_msg))
File "/tmp/keystone/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 493, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: 'Config file not found, using default configs.' not in u''
If I remove /etc/keystone/keystone.conf then it will succeed
As a developer, I always run devstack on my workstation, and as unit
test code shouldn't rely on or affected by real environment, I think
this is a bug which should be fixed
already have a solution, I will fix it by myself
** Affects: keystone
Importance: Undecided
Assignee: ZhiQiang Fan (aji-zqfan)
Status: In Progress
** Changed in: keystone
Assignee: (unassigned) => ZhiQiang Fan (aji-zqfan)
** Changed in: keystone
Status: New => In Progress
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1574493
Title:
keystone tox -epy27 fail in devstack environment
Status in OpenStack Identity (keystone):
In Progress
Bug description:
reproduce steps:
1. clone devstack, enable keystone
2. cd /opt/stack/keystone && tox -epy27
==============================
Failed 1 tests - output below:
==============================
keystone.tests.unit.test_cli.CliNoConfigTestCase.test_cli
---------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "keystone/tests/unit/test_cli.py", line 71, in test_cli
self.assertThat(self.logging.output, matchers.Contains(expected_msg))
File "/tmp/keystone/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 493, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: 'Config file not found, using default configs.' not in u''
If I remove /etc/keystone/keystone.conf then it will succeed
As a developer, I always run devstack on my workstation, and as unit
test code shouldn't rely on or affected by real environment, I think
this is a bug which should be fixed
already have a solution, I will fix it by myself
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1574493/+subscriptions
Follow ups