Commit Graph

26 Commits

Author SHA1 Message Date
Alex Kavanagh 003bdda7e1 Migrate from testr to stestr
Change-Id: I48d7a87546669a3641bb82174ab6d7d9c0a8b820
2021-02-10 12:27:05 +00:00
Hervé Beraud e134357244 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Note that https://github.com/openstack/charms.openstack is used during tests
and he need `mock`, unfortunatelly it doesn't declare `mock` in its
requirements so it retrieve mock from other charm project (cross dependency).
So we depend on charms.openstack first and when
Ib1ed5b598a52375e29e247db9ab4786df5b6d142 will be merged then CI
will pass without errors.

Depends-On: Ib1ed5b598a52375e29e247db9ab4786df5b6d142
Change-Id: Iaf7949e304a6e11ff0ac47875bec69c7ccb2d621
2020-06-09 16:39:59 +02: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
OpenDev Sysadmins fdd05104db OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:49:14 +00: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
Doug Hellmann 42f8ee0bf5 add .gitreview file
Add configuration file so git-review can find gerrit.

Change-Id: I8afac22490cf732aec0e7693e4901c6a268ebbde
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-10-12 12:10:19 +00:00
Frode Nordahl bd8934f648
Re-add gate jobs, enabling py3 gate
Add .gitignore

Remove .travis.yml

Change-Id: I8313c1231f1ec7edfe3cc85f6447d8d589cfd0e3
2018-10-12 13:14:45 +02:00
Frode Nordahl a34640e10e
Add support for generating 16-bit ASn
Change-Id: I8b1508361fdc7541c0fc231e7e816651626596b7
2018-05-21 06:27:23 +02: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
David Ames 1ff8ee74a1
Merge pull request #2 from openstack-charmers/make_bindings_optional
Make publishing of links from bindings charm controlled
2018-02-12 16:12:53 -08:00
Frode Nordahl 15a3979959
Make publishing of links from bindings charm controlled
Caller should pass a list of bindings for which it wants to
publish information to peer.
2018-02-12 10:30:48 +01:00
Frode Nordahl bee87717bd
Merge pull request #1 from openstack-charmers/dragent-compat
Compatibility with neutron-dynamic-routing
2018-02-09 08:37:22 +01:00
David Ames 8a71764672 Compatibility with neutron-dynamic-routing
Allow for passive neighbors.
2018-02-08 16:32:00 -08:00
Frode Nordahl b01a9fbc70
Update link to Quagga Charm 2018-02-08 20:35:34 +01:00
Frode Nordahl 31af313b9d Move to https://github.com/openstack-charmers/charm-interface-bgp.git 2018-02-08 20:15:05 +01:00
Frode Nordahl 5ad7d955be
Merge pull request #2 from fnordahl/readme-add-link
README: Add link to Quagga Charm
2018-01-31 13:38:13 +01:00
Frode Nordahl 1ccd4d398a
README: Add link to Quagga Charm 2018-01-31 13:37:26 +01:00
Frode Nordahl a2ca804acd Rename README -> README.md 2018-01-31 13:29:19 +01:00
Frode Nordahl d626cbbc8f
Merge pull request #1 from fnordahl/travis
Travis: Install dependencies before running tests
2018-01-31 13:26:38 +01:00
Frode Nordahl 3172450f2f Travis: Install dependencies before running tests 2018-01-31 13:23:02 +01:00
Frode Nordahl e48b23e163 Initial commit 2018-01-31 13:13:12 +01:00