Commit Graph

8 Commits

Author SHA1 Message Date
Alex Kavanagh 72245e1d00 Switch from testr to stestr for unit tests
Change-Id: I2415dbae9c2a2ac5951b9e9176a514a1d1330ab0
2021-02-10 10:19:46 +00:00
Liam Young ba731e355c Re-enable unit tests
Re-enable and fix unit tests. Unit test check of set_local removed
as the json dump is not ordering dict keys and the set_local
calls will be removed by an imminent patch.

Change-Id: Id804e0e518c0013043db6f4b7cd44ccaa5499749
2020-08-14 07:53:53 +00:00
James Page 462582e4f3 requires: Provide get_current_request method
Minor refactor to ensure that the get_current_request method
actually exists for the requires part of this interface.

Misc drive by fixes for CI scaffolding as well.

Change-Id: I26e9585df2a84c336d9f01115c6208d7ef994b3c
2020-05-04 10:19:09 +01:00
Camille Rodriguez 29eba49426 Avoid pollution and false positives with tox.ini
- removing sitepackages in tox.ini to avoid test env pollution
- skip_missing_interpreters in tox.ini set to False to avoid false
positives by skipping missing interpreters.

Change-Id: I72582997b86641c773686e4e04cedf7d1d11d9e1
2019-08-27 08:39:21 -04:00
Liam Young e43d82e1f8 Add unit tests
Interface can now have unit tests so I have added them.

Change-Id: I6fba1ae6cb428c7f73446d051bf05657aba57ba2
2018-12-07 19:54:10 +00:00
Doug Hellmann 7cfed26220 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I2bc5f7d63ef948318a8c5c6c498021431f9757ad
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-10-04 12:35:37 +00:00
Doug Hellmann 8bc220e3d7 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Remove --allow-unverified from pip, it's not supported with current pip.
Remove install of python-apt since it fails and is unneeded for the job.

Change-Id: I72ab95ec19b059ef83e628859cf16e663333308b
Story: #2002586
Task: #24317
2018-10-04 12:02:22 +02:00
James Page 0e191799fc Add initial requires 2017-07-03 15:17:35 +01:00