Commit Graph

9 Commits

Author SHA1 Message Date
Alex Kavanagh 003bdda7e1 Migrate from testr to stestr
Change-Id: I48d7a87546669a3641bb82174ab6d7d9c0a8b820
2021-02-10 12:27:05 +00:00
Ghanshyam Mann 81ace899f8 [ussuri][goal] Updates for python 2.7 drop
OpenStack is dropping the py2.7 support in ussuri cycle.

charm repos need few updates on either py2 drop or updating
ussuri python template, tox.ini etc.

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

Change-Id: I860b169528a7130a6c755ad494f6b3db08ea6aee
2020-03-24 17:31:29 +00:00
Camille Rodriguez e3cb4885ab Avoid pollution and false positives with tox.ini
Removing sitepackages in tox.ini to avoid test env pollution and
skip_missing_interpreters in tox.ini set to False to avoid false
positives by skipping missing interpreters.

Change-Id: I56991549c33e21d369fe8355558a29c812e09290
2019-08-27 08:33:45 -04:00
Corey Bryant f6d8ce78bb Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Note that python35-charm-jobs is retained since this charm is supported
on Xenial.

Change-Id: I3db9bd4e4b3b09b321f250eaa1bf33f6c7e3a229
Story: #2005924
Task: #34228
2019-07-30 10:15:52 -04:00
Paul Goins c7636710cc Excluding unit_tests from coverage
Unit tests generally will all be executed, and measuring them will
skew the overall coverage numbers.  Thus, I'm excluding the unit_tests
folder.

Change-Id: I9efa8c8c0d16047112e34d7e3b598060bf970567
2019-03-01 15:03:21 +01:00
Paul Goins 59f211c065 Added tox environment for gathering coverage
This technique was borrowed from the tox "cover" environment in
openstack/nova's tox.ini.  This leverages the fact that stestr lets
you override the python executable via the PYTHON environment
variable.  Doing this allows us to easily generate coverage for our
unit tests.

An important caveat is that this does not provide any coverage for
tests via zaza, amulet, etc.  It is purely focused on the unit tests.

Note that this replaces the previous .coveragerc; coverage
configuration is instead pulled from tox.ini.

Change-Id: I4056a0afd0a09d6d7e45b443c13fd39fa41fa3c0
2019-03-01 11:38:53 +01:00
Doug Hellmann ec52a95799 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: I1f1a91cd78dadae85246cb10b8f3cea424d67ca3
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-10-12 12:11:25 +00:00
Frode Nordahl a9ac7dc88b
Fix None dereference and add more unit tests
Also update tox.ini to add mandated py27 target and
remove duplicate pep8 directory listing

Change-Id: Idddafc30bdada764dd2b13da77ce85baee002969
2018-05-14 14:24:23 +02:00
Frode Nordahl 3eca0062fd
Fix generate_asn mask and add unit tests
Change-Id: I18776f026ba288a150e783e4102006e690572d6f
2018-05-09 12:11:31 +02:00