Set utf-8 in decode and encode calls 42/67942/2
authorCédric Ollivier <cedric.ollivier@orange.com>
Sat, 25 May 2019 07:38:40 +0000 (09:38 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sat, 25 May 2019 09:26:46 +0000 (11:26 +0200)
commit94b00b4a8fe8f338d2ad60a7c9836013154bb704
treea3bb2615acdcc52af79920a68374b72d4e0ff087
parenta02c3601c488f6bdd6e57e7cebeb00f7daf8f1c9
Set utf-8 in decode and encode calls

It eases backporting in iruya and hunter as a few logs can't be
decoded as ascii [1].

[1] https://build.opnfv.org/ci/job/functest-opnfv-functest-vnf-iruya-juju_epc-run/56/console

Change-Id: I52a6f9a25130cbf62e8ce3b9972064ab73177665
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 5853dd1ef3c522a975f9685250b1b3e85588f738)
functest/opnfv_tests/openstack/rally/rally.py
functest/opnfv_tests/openstack/refstack/refstack.py
functest/opnfv_tests/openstack/shaker/shaker.py
functest/opnfv_tests/openstack/tempest/tempest.py
functest/opnfv_tests/openstack/vmtp/vmtp.py
functest/opnfv_tests/vnf/epc/juju_epc.py
functest/opnfv_tests/vnf/router/vnf_controller/ssh_client.py
functest/tests/unit/openstack/rally/test_rally.py
functest/tests/unit/utils/test_functest_utils.py
functest/utils/functest_utils.py