Commit Graph

16 Commits

Author SHA1 Message Date
Alex Kavanagh 823f79feb9 Sync libraries & common files prior to freeze
* charm-helpers sync for classic charms
* charms.ceph sync for ceph charms
* rebuild for reactive charms
* sync tox.ini files as needed
* sync requirements.txt files to sync to standard

Change-Id: Ie91548167daa588d34ea55b9fa2d8d78ad5270e2
2020-09-26 18:40:24 +01:00
Alex Kavanagh 64cc0c998a Release sync for 20.08
- Classic charms: sync charm-helpers.
- Classic ceph based charms:  also sync charms.ceph
- Reactive charms: trigger a rebuild
- sync tox.ini
- sync requirements.txt and test-requirements.txt

Change-Id: I623f452d966bd27d826322b784b32d6b20fdf5b0
2020-07-27 21:00:04 +01:00
Ryan Beisner 65e767eac3
Sync charm/ceph helpers, tox, and requirements
Change-Id: I2d69a0b69eaf518b3bc0630cfc196d2bc6c3e7da
2019-09-30 22:42:08 -05:00
Camille Rodriguez 5b41c38d4e Add disco-stein bundle to gate tests
The bundle disco-stein was in the dev bundles because
a bug with the Python 3.7 syntax prevented the success of
the deployment of HA clusters. This bug is fixed, we can
reintegrate disco-stein in the gate bundles.

Other small additions:
- 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.

LP Related-Bug: #1823718
Change-Id: Ie13fc4dcc8e815893d2f9b6c7e61e912d8300bb5
2019-08-27 15:16:07 -04:00
Corey Bryant 949a4e5a92 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: I41a456b4ffc97cc7d92cd59c1bfbdc7df8002ce2
Story: #2005924
Task: #34228
2019-07-30 10:17:31 -04:00
Pete Vander Giessen 4dfc5158a0 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: Ib9a1cd1dfc2aac961f61177ee757c7e6a548807f
2019-03-08 10:26:04 -05:00
Paul Goins 8f921c84fb 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: If784b5a78fa237eb380a0635ce8fbcc0f6b9590e
2019-03-01 14:43:57 +01:00
Doug Hellmann 1d961bf71a 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: I540ffc4494ca56f1778b8d195e25e36d9d0b7727
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:40:59 -04:00
Vu Cong Tuan 0cdf9a74d2 Add py36 testenv
Python 3.6 is installed by default in Ubuntu 18.04 LTS.
Therefore, according to Transition Plan [1],
it'll be handy to have py36 testenv.

For more details, please check Python2 Deprecation Timeline [2]
and Python3-first Goal - Completion Criteria [3].

[1] https://wiki.ubuntu.com/Python/Python36Transition
[2] https://governance.openstack.org/tc/resolutions/20180529-python2-deprecation-timeline.html
[3] https://review.openstack.org/#/c/575933/8/goals/stein/python3-first.rst@42

Change-Id: I5d492f06759a1456c40bf19cb71253b70e6ad306
2018-06-27 11:24:36 +07:00
Ryan Beisner de89fc1461 Update tox.ini for py27 requirement
Reactive source charms are Python3-only, but have py27 unit tests
declared in project-config.

The Tox tool recently changed behavior.  It used to pass when a tox
target was missing commands.  Now it fails in that case.

This commit places a py27 no-op shim to allow gate tests to pass,
effectively restoring the original behavior for these py3x-only repos.

Change-Id: Ifd4ac81020b325bc7151771d6564c5a0562f6e5c
Partial-Bug: 1642981
2016-11-28 18:21:31 -06:00
Ryan Beisner 068a29eccf Update tox.ini files from release-tools gold copy
All OpenStack Charms now contain identical tox.ini files,
not to be modified or made unique within each charm repo.

This is to ensure consistency across charm repos in tox
target naming, approach and purpose, also giving the
charm dev and test experience additional consistency.

Change-Id: Ie3752edbe5fc9518e2d31ea27e805d2812e1b76b
2016-09-06 22:02:28 +00:00
Alex Kavanagh f10d28e392 Refactor to source charm
This is in line with the agreed conventions on where to put
files in a layered source package.

Essentially, just the final moving of things around and ensuring
that the dummy tests pass, along with lint.

Change-Id: I392568d6279f0a5876bdb2a3ad5e49fee03734aa
2016-06-15 17:27:33 +00:00
Ryan Beisner 01dfcd927d Add initial no-op unit test structure
This does not actually add unit tests, only an inert
and passing no-op test to unblock initialization of
this repo with regard to layer build and test
automation.

Change-Id: I7102d6f483d7680c4fc99074c5567cbf32cde690
2016-06-03 16:19:37 +00:00
Ryan Beisner e2c90d5828 Prepare repo for gerrit 2016-06-01 20:17:19 +00:00
Ryan Beisner c5d14bc979 Update tox.ini for charm-build from venv 2016-05-04 17:44:20 -05:00
Liam Young 453fe14856 Add tox goodness 2016-05-04 21:47:37 +00:00