diff options
author | Victor Stinner <vstinner@redhat.com> | 2015-06-12 10:28:49 +0200 |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2015-06-12 18:11:42 +0200 |
commit | 5977295dafc914406c765398e234dfcfd48d7766 (patch) | |
tree | 2da1113fd7adb119c753805b6effe3106d7aec95 /tox.ini | |
parent | 639a24dc95e57149f21480b4a057d757e837fdbf (diff) | |
download | ceilometer-5977295dafc914406c765398e234dfcfd48d7766.tar.gz |
Port middleware to Python 3
* Fix integer division: status_code/100 => status_code//100
* HTTP body type is bytes. Decode the HTTP body from UTF-8 to use it.
Encode XML and JSON to UTF-8 to produce the HTTP body (for error
messages).
* Factorize XML/JSON code a little bit more (ex: add the new
content_type variable)
* Fix test_app on Python 3: decode HTTP from UTF-8 to load JSON
* tox.ini: add api.v2.test_app to Python 3.4
Change-Id: I4f916cba36306f776b01df915c55e314ade6b6ba
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -47,6 +47,7 @@ commands = deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements-py3.txt commands = python -m testtools.run \ + ceilometer.tests.api.v2.test_app \ ceilometer.tests.api.v2.test_query \ ceilometer.tests.compute.virt.libvirt.test_inspector \ ceilometer.tests.compute.virt.vmware.test_vsphere_operations \ |