yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #08913
[Bug 1266220] Re: Unit tests fail when run from symlinked directory
** Changed in: horizon
Status: Fix Committed => Fix Released
** Changed in: horizon
Milestone: None => icehouse-2
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1266220
Title:
Unit tests fail when run from symlinked directory
Status in OpenStack Dashboard (Horizon):
Fix Released
Bug description:
E.g, horizon git tree is located at /opt/stack/horizon, and there is a
symlink in user's home directory which points to the horizon git tree:
~/horizon -> /opt/stack/horizon. Then cd ~/horizon followed by
./run_tests.sh fails:
FAIL: test_customize_dashboard (horizon.test.tests.base.CustomPanelTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/akrivoka/horizon/horizon/test/tests/base.py", line 382, in test_customize_dashboard
self.assertEqual(cats.name, "WildCats")
AssertionError: 'Cats' != 'WildCats'
"'Cats' != 'WildCats'" = '%s != %s' % (safe_repr('Cats'), safe_repr('WildCats'))
"'Cats' != 'WildCats'" = self._formatMessage("'Cats' != 'WildCats'", "'Cats' != 'WildCats'")
>> raise self.failureException("'Cats' != 'WildCats'")
======================================================================
FAIL: test_customized_permissions (horizon.test.tests.base.CustomPermissionsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/akrivoka/horizon/horizon/test/tests/base.py", line 420, in test_customized_permissions
self.assertEqual(resp.status_code, 302)
AssertionError: 200 != 302
'200 != 302' = '%s != %s' % (safe_repr(200), safe_repr(302))
'200 != 302' = self._formatMessage('200 != 302', '200 != 302')
>> raise self.failureException('200 != 302')
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1266220/+subscriptions
References