* Starting in mysql8, we can't expect a db user to be
created with the GRANT command, we'll need to create
one explicitly.
* OpenStack has dropped the py2.7 and py3.5 support
in ussuri cycle. From now on, refstack will test only
with py3 jobs. Complete discussion & schedule can be
found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support
Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
* Replace the "refstack-tox-py36-func-mysql" with
"refstack-tox-functional" to simplify naming and use the system default
python3 version for this functional job.
* replace testr unit test runner by stestr. testr runner hasn't been updated
for ~ 6 years - stestr is its successor
Story: 2003257
Task: 24062
Change-Id: I90ab2eca6366f0b6256f097712efac2ffe08b2c0
Implement optional cleanup to support the new PTI jobs
for documentation which won't use tox anymore.
Docs tox environment will still available for developers but
it is no loger used in the gate to construct the documentation.
See http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html
Change-Id: Ib4a380eec3c9f286dc563f2b81c6b27f92467cf3
Since refstack is an official OpenStack project that gets published on
docs.openstack.org, it should use OpenStack branding.
Use openstackdocstheme and set it up correctly.
Change-Id: Iefce329a5ce85b90528045004356b065101b606b
the OpenStack requirements project has modify version requirement of docutils/oslosphinx.
The link is below
https://review.openstack.org/#/c/418772/
So modify test-requirement like other project
Closes-Bug: #1666149
Change-Id: Ie9acf0408f8081b5275bb272a1864c4880280869
New tox target check that there is no missing or superfluous (unused)
requirements in requirements.txt.
Patch is copy/paste from Iff37af95269c38e4d435a53a21e5d60e2c5a3fa8
which do the same for Tempest projec.
This change also includes the fixes to requirements.txt needed
to pass the new tests.
Change-Id: Id52c5b140647268525120373ac19a63f72b12462
Rename the 'capabilities' endpoint to 'guidelines' to align more
with DefCore terminology. Several references to 'capabilities' were
thus updated to 'guidelines'.
Split out the actual requests to the DefCore repository so
that it can be used by other components.
Also, the cache expiration time was increased to 12 hours from 10 minutes.
Change-Id: I031798ffc32cdd66428af83a1ee610f00385c524
This endpoint will serve as a proxy for the openstack/defcore
repository. Instead of the UI sending requests to GitHub directly
where requests might be impeded due to cross-origin blockage or API
rate-limiting, the UI will be able to send requests to the Refstack
API in order to get capability data. The requests-cache library is
used so as not to keep sending requests to GitHub when likely
nothing has changed. With this, Refstack no longer has to worry about
mirroring capability files and keeping them updated.
GET /v1/capabilities - list all capability files
GET /v1/capabilities/2015.03 - get contents of file 2015.03.json
Change-Id: I6d327273f191e3339219e35eed8768da35c5bffb
Add requirements for coverage utility.
It makes it possible to run `tox -e py27-cover`
and 'cover' directory will generated with
tests coverage report in HTML format.
Change-Id: I38c4197246fab4d0b8ea9ba3c61cc10966a1fc9e
Create MySQL database before starting tests and cleanup after that.
MySQL database is able to work in standalone mode where establish
connection using a Unix domain socket.
This patch makes it possible to perform functional tests with `tox -e py27-func-mysql`.
If an enviroment variable REFSTACK_TEST_MYSQL_URL is set then tests will run with it
and a database will not be created.
Update test requirements.
Change-Id: I0cdba19701bbf06109e78f78f275038caeecd881
Add instruction in the refstack.md file to install test
requirements. Also add a default config.json file.
Change-Id: Ie3a9a5cfc175b0ec8f5e5c57d767bd0af6a2d62e