]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Port API admin action tests to Python 3
authorVictor Stinner <vstinner@redhat.com>
Wed, 7 Oct 2015 21:44:46 +0000 (23:44 +0200)
committerVictor Stinner <vstinner@redhat.com>
Wed, 14 Oct 2015 20:17:26 +0000 (22:17 +0200)
commit34b0ea07c45eaa1bd8cf2782d5637c7d4cfbc74b
tree6a8abd1f9aeb084a5c032059fdd24fddb3ce3aa2
parent08b6b23cad254200b45d063ed6996d22f1d65626
Port API admin action tests to Python 3

* Replace ast.literal_eval(response.body) with response.json
* Use oslo_serialization.jsonutils.dump_as_bytes() to encode the
  response to JSON as bytes for the HTTP body.
* tests-py3.txt: add cinder.tests.unit.api.contrib.test_admin_actions

Partial-Implements: blueprint cinder-python3
Change-Id: Ib30c701b9dbbcc774dfc5f19a7174ab318006206
cinder/tests/unit/api/contrib/test_admin_actions.py
tests-py3.txt