← Back to team overview

sws team mailing list archive

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

 

** Changed in: nova
       Status: New => In Progress

** Changed in: nova
     Assignee: Sina Web Service Dev (sws) => Jian Wen (wenjianhn)

-- 
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/1037946

Title:
  I18N problem in Nova's test suites

Status in OpenStack Compute (Nova):
  Fix Committed

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/nova/+bug/1037946/+subscriptions