fc563d37bc
While trying to make some changes I discovered that the tox configuration for osc-placement was rather out of date and functional tests were not working for python3. With this change we bring tox.ini into a style that is more in keeping with modern standards, use stestr, and update some functional tests so they work with python3. The functional tests changes are either: * to fix the decoding of response * to adapt argparse error response checking between python version. These changes cascade some required change into how the gate-side functional testing is performed. We make it explicit that in the python2 job, the 'functional' tox job is run. When the python3 job is run, 'functional-py3' is run. Also stestr replaces testr in the post-test hook. When the functional-py3 test had been run in the past it was actually running a python2 osc-placement against a python3 devstack. We change that here to be python3 and python3. Once that was happening, additional failures were revealed, now fixed. One particular issue was that while the json module for python 3.6 and greater will decode strings or bytes, the version of 3.5 will only do strings. We switch to using simplejson throughout which smooths things over. This is added as a new requirement but it isn't really: simplejson is required by osc-lib. Finally, some requirements need to be tuned to pass the gate requirements job. Change-Id: I999a3103dd85c0a437785766eef533875fca31fc
4 lines
58 B
Plaintext
4 lines
58 B
Plaintext
[DEFAULT]
|
|
test_path=./osc_placement/tests/unit
|
|
top_dir=./
|