]> git.proxmox.com Git - mirror_ovs.git/commit - tests/ovsdb-idl.at
python: make python idl unicode-tolerant
authorLance Richardson <lrichard@redhat.com>
Wed, 9 Aug 2017 19:38:43 +0000 (15:38 -0400)
committerRussell Bryant <russell@ovn.org>
Wed, 9 Aug 2017 20:08:18 +0000 (16:08 -0400)
commite7164d96bcbcf79044a93f6e7acc68f05d8e3945
treeb75416daef27410062a990350b9c2ee4c4d901f7
parentf88ee3a599461f390bce7d0b00c182d7a1f5cb6e
python: make python idl unicode-tolerant

Ensure that JSON is utf-8 encoded and that bytes sent/received on
the stream sockets are in utf-8 form. Add a test case to verify
that unicode data can be sent/received successfully using Python
IDL module.

Co-authored-by: Terry Wilson <twilson@redhat.com>
Signed-off-by: Terry Wilson <twilson@redhat.com>
Signed-off-by: Lance Richardson <lrichard@redhat.com>
Signed-off-by: Russell Bryant <russell@ovn.org>
python/ovs/json.py
python/ovs/jsonrpc.py
python/ovs/stream.py
tests/ovsdb-idl.at
tests/test-ovsdb.py