Removes redundant requirements and adds a new job which runs
'tox -epip-check-reqs' in order to avoid having redundant
dependencies specified or missing some.
Change-Id: I5ca35922213cfbe4c2b4b49388bffcc0b8fc6a96
As we have already dropped python2 support,
usage of six module is redundant.
The patch also edits the classifiers in setup.cfg
which comply with the wallaby cycle goals.
Change-Id: I2b0e4050e489ddfc7cbabe4165d5499ba6788422
tox deprecated its whitelist_externals option in
3.18 release. The patch bumps the min version of tox
to 3.18 and renames the option from whitelist_externals
to allowlist_externals.
Change-Id: I12d4bb75839adf78c17e8e562535fbf0d7e2e816
This repository is hosted on opendev.org's
gitea server, and doesn't get mirrored to
github currently (we may add mirroring in
the future). We can swap a bunch of URLs
that assume the content is on github and
older infra cgit servers with correct URLs.
Meetings have moved from IRC to MeetPad,
fix the corresponding details in the README.
Also use this commit to strip trailing
whitespaces across the repository.
Change-Id: Ica0a7ba08d9c437f94fbc9ab282bd929f01df8ff
* 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
As it was announced [1] global bindep-fallback.txt was removed and now
projects need to have a local bindep.txt to be able to install binary
dependencies for testing.
In test jobs the script tools/test-setup.sh is called which requires
mysql and postgres servers and clients to be installed.
To eliminate 'ERROR: InterpreterNotFound: python3.5' of the zuul job
refstack-tox-py35-func-mysql, simply replace the tox environment
py35-func-mysql to py36-func-mysql with a base python of 3.6 instead of
3.5 and rename the zuul job to contain py36 in the name.
Update the Zuul template to use nodejs6 jobs, this makes the single jobs
obsolete, remove them. Without this change, the gate will use
nodejs4 and fail.
[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-June/007272.html
Change-Id: I90cb912befb9d09fed330bd8d27a491caffbf7b9
This patch disables anonymous test result uploads. It also
fixes a python35 incompatability uncovered by more extensive
testing of signing uploads (bytes can no longer be decoded).
Also updated coverage tests to not include tests in coverage.
Co-Authored-By: megan guiney <meganmguiney@gmail.com>
Change-Id: I3f19f1399eb2948eaf8340b5c4be18b698c7e139
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
The goal of this patch is to buil in the ability to upgrade
the alembic version table of both new and existing RefStack
databases in order to allow for the usage of subunit2sql tooling
within the existing db, thus facilitating the upload and storage
of subunit data in RefStack server.
[TEST CASES HANDLED]
* default name -> nondefault name
* nondefault name -> default name
* nondefault -> another nondefault
[OTHER ACTION ITEMS]
* tighten up workflow for cleaner code
Change-Id: I7aa0965b22a46439d66c81108fc0b8947316579d
[H203] Use assertIs(Not)None to check for None (off by default) Unit
test assertions tend to give better messages for more specific
assertions. As a result, assertIsNone(...) is preferred over
assertEqual(None, ...) and assertIs(None, ...), and
assertIsNotNone(...) is preferred over assertNotEqual(None, ...) and
assertIsNot(None, ...). Off by default.
Change-Id: I2c1a179ba1a413cbea269f9574779bb5451441b2
Running py2* post py3* tests results in error. Add
'rm -f .testrepository/times.dbm' command in testenv to
resolve this.
Change-Id: Id23d6edfe6980680420141d01f36181194135ca6
This patch also adds the necessary changes to fix py35 compatibility
and ensure that the current functional/unit tests pass.
Change-Id: Iaced98e98db29882a35bea1abd98e50dd167b511
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
Coverage gate job, added on I0906930940c86293deb605d56ba518913152254a
is looking for 'cover' tox environment instead of current 'py27-cover',
this change rename cover environment to fix gate job failure.
Change-Id: I3b2b44593874768db1340ffe2afe2d0db9ce8efb
Python 3.3 is not supported from Mitaka, as per Infra.
This patch removes the support for the same.
Change-Id: I3aa689a1c88abe274f492cf90f7c10f9b07f5553
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 oslo.log lib in application.
Move API related options from refstack/api/config.py
to the oslo_config's configuration file.
Make regeneration of example config file with oslo.log namespace
and with moved API options.
Change-Id: Id0db95fe34eb8faa284e9d716cbeebdf6d25c183
Add possibility to generate a config file with default values.
Run `tox -e genconfig` and etc/refstack.conf.sample appears.
Change-Id: Ie7c7d90ec056ad254f4247d4b0adc06bdd096ee6
Add oslo libraries for works with database and config.
Refactor database relation code. Move it in refstack/db.
Now after istallation of refstack available a command-line
utility: `refstack-manage` and `refstack-api`.
`refstack-manage`
This utlity provide commands for manipulation of database
migrations and setup config file through
--config-file /path/to/refstack.conf option.
Config file should contain database connection string.
For example:
[DEFAULT]
sql_connection = mysql://root:passw0rd@127.0.0.1/refstack
Add ability to runtime updrade/downgrade db through command-line utillity.
`refstack-api`
This utility allow to launch api on gunicorn server. Specify config through
--env REFSTACK_OSLO_CONFIG=/path/to/refstack.conf
Change-Id: Ibea97d433d54d307233aa04e9487f1a1230e7487
Some requirements were updated to py33 compiliant versions.
Also imports were modified according to py33 compatibility.
https://storyboard.openstack.org/#!/story/117
Change-Id: I4422f1bcfb02fd27b0c275ef58b19fdfb386cd17