← Back to team overview

sws team mailing list archive

[Bug 1037946] [NEW] I18N problem in Nova's test suites

 

Jian Wen (wenjianhn) has assigned this bug to you for OpenStack Compute (nova):

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

** Affects: nova
     Importance: Undecided
     Assignee: Sina Web Service Dev (sws)
         Status: New

-- 
I18N problem in Nova's test suites
https://bugs.launchpad.net/bugs/1037946
You received this bug notification because you are a member of Sina Web Service Dev, which is a bug assignee.