sws team mailing list archive
-
sws team
-
Mailing list archive
-
Message #00129
[Bug 1037943] Re: I18N problem in Nova's test suites
Sorry. This is a bug in nova.
:(
** Changed in: swift
Status: New => Invalid
** Changed in: swift
Assignee: Sina Web Service Dev (sws) => (unassigned)
--
You received this bug notification because you are a member of Sina Web
Service Dev, which is a bug assignee.
https://bugs.launchpad.net/bugs/1037943
Title:
I18N problem in Nova's test suites
Status in OpenStack Object Storage (Swift):
Invalid
Bug description:
Some unit tests rely on HTTP response.
Like "self.assertIn("invalid state for '%(_action)s'" % locals(), res.body)" in
/opt/stack/nova/nova/tests/api/openstack/compute/contrib/test_admin_actions.py .
If the response was translated to other language like Chinese the assertion will fail.
How to reproduce the bug:
% export LANG=zh_CN.UTF-8
% export LANGUAGE=zh_CN:en_GB:en
% export LC_MESSAGES="zh_CN.UTF-8"
% ./run_tests.sh
Change locale to english would fix this:
% export LANG=en_US.UTF-8
% export LANGUAGE=en_US:en
% export LC_ALL=C
% ./run_tests.sh
To manage notifications about this bug go to:
https://bugs.launchpad.net/swift/+bug/1037943/+subscriptions