I18N problem in Nova's test suites

Bug #1037946 reported by Jian Wen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Jian Wen

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

Tags: i18n tests
Jian Wen (wenjianhn)
Changed in nova:
assignee: nobody → Sina Web Service Dev (sws)
Changed in nova:
assignee: Sina Web Service Dev (sws) → Jian Wen (wenjianhn)
status: New → In Progress
Jian Wen (wenjianhn)
Changed in nova:
status: In Progress → Fix Committed
Jian Wen (wenjianhn)
tags: added: i18n
tags: added: tests
Changed in nova:
status: Fix Committed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/11539
Committed: http://github.com/openstack/nova/commit/55b37bef9ba3a45abd544e3b4487cba2ddad37db
Submitter: Jenkins
Branch: master

commit 55b37bef9ba3a45abd544e3b4487cba2ddad37db
Author: Jian Wen <email address hidden>
Date: Fri Aug 17 16:14:51 2012 +0800

    Disable I18N in Nova's test suites

    Messages translated into other language like Chinese cause some
    unit tests to fail.

    Fixes LP bug #1037946.

    Change-Id: I01d04333d28bab52d6f424432524b206f3845fba

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → folsom-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: folsom-rc1 → 2012.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.