19 Commits

Author SHA1 Message Date
Martin Kopec
35b3a1da4f Fix CI, Drop python2 and 3.5, update jobs to python3
* 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
2020-12-18 20:59:21 +00:00
Luz Cazares
b041333bc7 Add support for new doc PTI jobs
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
2017-12-18 15:46:17 -08:00
Luz Cazares
9e4970217e Update Refstack docs for documentation migration
This patch updates the Refstack documentation in support of the
OpenStack documentation migration[1]. Follow guide on [2]
Refstack documentation is displayed under Related Projects [3]

[1] https://specs.openstack.org/openstack/docs-specs/specs \
    /pike/os-manuals-migration.html
[2] https://docs.openstack.org/openstackdocstheme/latest/
[3] https://docs.openstack.org/openstack-projects.html

Change-Id: I6f3fbfcf8240da6aa1ee6f754205c5b615eec3d0
2017-07-10 19:26:08 +00:00
Andreas Jaeger
0d29e9a144 Use openstackdocstheme
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
2017-04-05 13:34:12 +02:00
xhzhf
fb328ad4e5 modify test-requirement according to requirements project
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
2017-02-20 17:13:08 +08:00
Luz Cazares
f1ed8079ec Added tox target which checks requirements.txt
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
2017-02-14 21:58:43 +00:00
Flavio Percoco
77b1d14173 Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.

For more information about this effort, please read this email threads[1][2]

To see an example of how this would look like check[3]

[1] http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html
[2] http://lists.openstack.org/pipermail/openstack-dev/2016-December/108710.html
[3] https://gist.github.com/f862e9d7fa0ba34d8b676496a302085f

Co-Authored-By: Luz Cazares <luz.cazares@intel.com>

Change-Id: Iadfc72ff96c4de66bb8a4a379d5566fac7445c83
2016-12-14 17:25:37 +00:00
Luz Cazares
6b5b867bdc Adding mechanism to build documentation via sphinx
Change-Id: Iaf1b201ddb6890199dd76ab67022557b7fd0b2fc
2016-08-15 15:11:10 +00:00
Paul Van Eck
48d36fa26f Refactor capabilities
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
2016-03-23 16:12:20 -07:00
sslypushenko
2b89f65ad4 Add filter for signed test results and related UI
With this patch users can list their own test results.

Change-Id: Ie2d944924f6ae966a13d0ca9908810c315ade5ab
2015-08-17 17:06:02 +03:00
sslypushenko
59822ee4c4 Added PEP 0257 check
Because, lack of inline docs is a big problem all over OpenStack

Change-Id: I54e1756d9984996cd1d509482b9c9a9d60dbef16
2015-07-02 13:45:58 +00:00
Paul Van Eck
961e46df6c Add API endpoint for retrieving capabilities
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
2015-05-01 11:56:27 -07:00
Vladislav Kuzmin
7fb06e8317 Repair tests coverage utility
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
2015-03-19 10:58:51 +03:00
Vladislav Kuzmin
05e0433f10 Increase test coverage for database migration
Change-Id: If091d16827beccc82878eb1478ec2bff349cb58a
2015-03-17 11:38:48 +03:00
Vladislav Kuzmin
eabbe08cb0 Improve API functional tests
Change-Id: Ib14b894cdb687e578d9aff7c327f1bf4586be2f7
2015-03-17 11:34:52 +03:00
Vladislav Kuzmin
16affe2d12 Improve database creation for testing
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
2015-03-06 10:14:04 +03:00
sslypushenko
88a24238fa API with DB
Change-Id: Iedf19086d7e0fde059cfbaedc92b8ac1ff297cfc
2015-01-19 18:35:56 +02:00
Catherine Diep
1f69dcb1e9 Add instruction to install test requirements.
Add instruction in the refstack.md file to install test
requirements.  Also add a default config.json file.

Change-Id: Ie3a9a5cfc175b0ec8f5e5c57d767bd0af6a2d62e
2014-06-12 10:40:59 -07:00
david
13ecce15f5 added tox.ini
Change-Id: I8ba7000fa12227487f2777ebeca4b30f202364aa
2014-03-01 17:36:44 -08:00