OpenStackClient plugin for Placement service
Go to file
Chris Dent fc563d37bc Update tox and tests to work with modern setups
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
2019-03-01 04:12:18 +00:00
doc/source Merge "Resource provider examples" 2018-08-29 14:26:42 +00:00
osc_placement Update tox and tests to work with modern setups 2019-03-01 04:12:18 +00:00
playbooks/legacy Update tox and tests to work with modern setups 2019-03-01 04:12:18 +00:00
releasenotes Update reno for stable/rocky 2018-07-26 12:36:45 +00:00
.coveragerc Initial commit 2017-03-22 11:58:28 +02:00
.gitignore Initial commit 2017-03-22 11:58:28 +02:00
.gitreview Initial commit 2017-03-22 11:58:28 +02:00
.mailmap Initial commit 2017-03-22 11:58:28 +02:00
.stestr.conf Update tox and tests to work with modern setups 2019-03-01 04:12:18 +00:00
.zuul.yaml add python 3.6 unit test job 2018-09-09 05:56:03 -04:00
CONTRIBUTING.rst Initial commit 2017-03-22 11:58:28 +02:00
HACKING.rst Initial commit 2017-03-22 11:58:28 +02:00
LICENSE Initial commit 2017-03-22 11:58:28 +02:00
MANIFEST.in Initial commit 2017-03-22 11:58:28 +02:00
README.rst Add image link in README.rst 2018-07-30 12:18:01 +00:00
babel.cfg Initial commit 2017-03-22 11:58:28 +02:00
requirements.txt Update tox and tests to work with modern setups 2019-03-01 04:12:18 +00:00
setup.cfg Update author-email in setup.cfg 2018-12-04 04:30:36 +00:00
setup.py Initial commit 2017-03-22 11:58:28 +02:00
test-requirements.txt Update tox and tests to work with modern setups 2019-03-01 04:12:18 +00:00
tox.ini Update tox and tests to work with modern setups 2019-03-01 04:12:18 +00:00

README.rst

osc-placement

image

OpenStackClient plugin for the Placement service

This is an OpenStackClient plugin, that provides CLI for the Placement service. Python API binding is not implemented - Placement API consumers are encouraged to use the REST API directly, CLI is provided only for convenience of users.