[fuelclient] Shlex does not accept unicode input prior to python 2.7.3

Bug #1501769 reported by Sylwester Brzeczkowski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Confirmed
Medium
Fuel Sustaining
Mitaka
Won't Fix
Medium
Fuel Python (Deprecated)
Newton
Confirmed
Medium
Fuel Sustaining

Bug Description

Now it's impossible to test commands which content unicode in fuel2 using BaseCLITest class:

    def exec_command(self, command=''):
        """Executes fuelclient with the specified arguments."""

        return main_mod.main(argv=shlex.split(command))

Possible solutions are:

- drop python 2.6
- replace shlex with something else (custom function or some third-party module)
- change all test to pass list of arguments instead of string to 'exec_command'

Dmitry Pyzhov (dpyzhov)
tags: added: area-python
Artem Roma (aroma-x)
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Artem Roma (aroma-x)
Revision history for this message
Artem Roma (aroma-x) wrote :

This seems to me as tech-debt bug as we are not dropping support for py26 and AFAIU will not in near future. Also workaround is available [1]

[1]: https://github.com/openstack/python-fuelclient/blob/master/fuelclient/tests/unit/v2/cli/test_node.py#l143-l148

tags: added: tech-debt
Changed in fuel:
assignee: Artem Roma (aroma-x) → Fuel Python Team (fuel-python)
Revision history for this message
Dmitry Pyzhov (dpyzhov) wrote :

We passed SCF in 8.0. Moving the bug to 9.0.

Changed in fuel:
milestone: 8.0 → 9.0
Revision history for this message
Sylwester Brzeczkowski (sbrzeczkowski) wrote :
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.