Commit Graph

18 Commits

Author SHA1 Message Date
Alex Kavanagh c478be4764 21.04 libraries freeze for charms on master branch
* charm-helpers sync for classic charms
* build.lock file for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure stable/21.04 branch for charms.openstack
  - ensure stable/21.04 branch for charm-helpers

Change-Id: I8b159e2fd0eadecb23c580804ec9b3609b14fdb1
2021-04-03 20:20:43 +01:00
Alex Kavanagh 5d91f89fae Updates to pin charm-tools to 2.8.3
* Update requirements.txt to pin charm-tools to 2.8.3
* Update tox.ini to change the build parameters.
* This upgrades from <2.7 which adds reproducible charms
* Bug was fixed that controlled the default output directory
  doesn't get 'builds' appended.  The tox change puts it
  back so that stable & master both build to the same
  directory.  This may be reviewed in the future.

Change-Id: If175d58b7b663927d7e7be1c44550a9b8aaa5d79
2021-02-18 14:42:16 +00:00
Alex Kavanagh 6071c55738 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: I59137f0bc2a0c5ee15f52bd03afefa275e9a011b
2020-09-26 18:29:00 +01:00
Alex Kavanagh c5bb1c231d 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: Ice3f935d7ed834c5caad3a7703f4f7d29ae9813b
2020-07-27 20:48:37 +01:00
Ryan Beisner d82958bd65
Sync charm/ceph helpers, tox, and requirements
Also remove duplicate tags declaration from metadata.yaml.

Change-Id: I16ebb5ffbd5e59e72dbb9c642abbcb2aa26b3bb0
2019-10-01 14:41:54 -05:00
Camille Rodriguez b025d3d39b 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: I432a562efb84e486034f97f433186a31a80d4b2d
2019-09-02 11:34:02 -04:00
Corey Bryant 89fc180a67 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: I8a8bbce4e79a7959f1735902c87d9d1ab02b9957
Story: #2005924
Task: #34228
2019-07-30 10:16:42 -04:00
Pete Vander Giessen 0ffc020464 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: Ic04bd20af254018f4466f32933d187a912daa5b9
2019-03-07 17:01:04 -05:00
Paul Goins a927ffdee4 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: I6c57c238e19a3e7e500f81135075cdcb11ac3127
2019-03-01 14:38:35 +01:00
Doug Hellmann 02498cfcbc 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: Icbaef58649b5b21d932a7f497a61faa322bad03b
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:37:17 -04:00
Nguyen Van Duc 0f9a152497 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: Ie36a6934cd0aa4ff5d087fcc61740f9014f08946
2018-07-12 17:48:46 +07:00
Ryan Beisner 7598d2f55c 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: Id421159a7fe5ab330a302172790994079e96319b
Partial-Bug: 1642981
2016-11-28 18:21:00 -06:00
Ryan Beisner ff0224dbac 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: Ie84a6fa14bf68b49376cd9ec560afbe8e29b578d
2016-09-06 22:06:58 +00:00
Ryan Beisner bb82897cda Add .gitreview and clean up repo
Update tox.ini to lint unit_tests, clean lint.

Add src/README.md placeholder to prevent inheritence of the
lower layer readme file in the built charm.

Add src/tox.ini and test-requirements for Amulet prep.

Update metadata.yaml for series.

Update tox.ini to minimize and clarify pep8 ignores.

Resolve flake8/pbr test-requirements version range conflict.

Mock apt in unit tests.

Add required tags data in src/metadata.yaml for charm proof.

Use openstack/charms.openstack proper in test-requirements
instead of a user space fork.

Update src/layer.yaml repo value to point to official location
and remove unnecessary options.

Change-Id: I5ca9e6cf9f8f91b3ce0ec3b48cf63535ca37c0f7
2016-08-03 18:59:01 +00:00
Alex Kavanagh a1d134bccd Update the charm to work with renamed barbican-hsm interface
The barbican-hsm-plugin interface was changed to barbican-hsm.
2016-07-13 16:43:08 +00:00
Alex Kavanagh bacbfac125 Remove py27 from tox.ini as not needed 2016-07-13 14:24:33 +00:00
Alex Kavanagh 45e370b142 Charm with unit tests
Working charm with unit tests. Various features:

Change the install ownership for token store

It turns out that the 'user' that creates the token store, is the only one that
can access it, apart from root.  As Barbican uses a 'barbican' user for the
barbican-worker process, we need to create the token store with 1777 perms (see
https://github.com/opendnssec/SoftHSMv2/issues/185) and also create the initial
token using the barbican user.

Add an initial README.md: This describes the charm, where to get help
and how to use it.
2016-07-12 16:53:46 +00:00
Alex Kavanagh cbe7232aac Initial commit of basic softhsm plugin charm
This is a barebones charm (as part of this commit) which only connects to the
prinical barbican charm and announces its name (as softhsm).  Next steps are to
install and configure the software for the softhsm and determine what should go
across the charm relation.
2016-06-23 13:48:39 +00:00