Commit Graph

18 Commits

Author SHA1 Message Date
Corey Bryant 2c99cba7e0 Add Kinetic and Zed support
* sync charm-helpers to classic charms
* change openstack-origin/source default to zed
* align testing with zed
* add new zed bundles
* add zed bundles to tests.yaml
* add zed tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases
* add bindep.txt for py310
* sync tox.ini and requirements.txt for ruamel
* use charmcraft_channel 2.0/stable
* drop reactive plugin overrides
* move interface/layer env vars to charmcraft.yaml

Change-Id: I054650d578c30b5c865cbd7a567eb5d7c8032d01
2022-08-31 18:48:39 +01:00
Alex Kavanagh 9d5b82ebfb Update to build using charmcraft
Due to a build problem with the reactive plugin, this change falls back
on overriding the steps and doing a manual build, but it also ensures
the CI system builds the charm using charmcraft.  Changes:

- add a build-requirements.txt
- modify charmcraft.yaml
- modify osci.yaml
    -> indicate build with charmcraft
- modify tox.ini
    -> tox -e build does charmcraft build/rename
    -> tox -e build-reactive does the reactive build
- modify bundles to use the <charm>.charm artifact in tests.
  and fix deprecation warning re: prefix
- tox inception to enable tox -e func-test in the CI

Change-Id: I826947b1b358c4b04ba18135035292e135cce985
2022-02-01 18:29:11 +00:00
Hervé Beraud 8a162064db 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: I2f54eb8f1fae913603f8692986361b88a32cc221
2021-12-15 14:40:18 +00:00
Corey Bryant 5f3c1de4f1 Add yoga bundles and release-tool syncs
* charm-helpers sync for classic charms
* pin pyparsing for aodhclient
* pin cffi for py35
* add non-voting focal-yoga bundle
* add non-voting jammy-yoga bundle
* add series metadata for jammy
* switch xena bundles to voting
* run focal-ussuri as smoke tests
* remove trusty, xenial, and groovy metadata and tests

Change-Id: Ic01c91ede3d820e8eb9258fd0d19799efb4ebccb
2021-11-12 11:11:26 -05:00
Aurelien Lourot dbf5142802 Sync release-tools
In order to fix ResolutionImpossible on tox invocation.

https://github.com/openstack-charmers/release-tools/issues/151
https://github.com/openstack-charmers/release-tools/pull/152

Change-Id: Ib7f509be145966bbe09cbf1aff7b08923de10fe9
2021-07-22 14:51:27 +02:00
Alex Kavanagh e5f0496fe1 Updates to flip all libraries back to master
This patchset updates all the requirements for charms.openstack,
charm-helpers, charms.ceph, zaza and zaza-openstack-tests back
to master branch.

Change-Id: Ic2d80c0c1eb8e22408ce363fd05b5d66d1d93e4b
2021-05-03 16:02:04 +01:00
Alex Kavanagh 07b76d50e7 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: I0f28e1e28ee9cb5712ef5b7b007903d317a5f61a
2021-04-03 20:20:30 +01:00
Alex Kavanagh 746e7f88a4 Fix missing auto DB creation on Victoria
Also updates for testing period for 20.01 release.
All these changes are needed together in order to have passing
functional tests.

Includes updates to charmhelpers/charms.openstack for cert_utils
and unit-get for the install hook error on Juju 2.9

* charm-helpers sync for classic charms
* rebuild for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure master branch for charms.openstack
  - ensure master branch for charm-helpers

Change-Id: Ieff90482f0acfac735c1ed69fc0593bd44913bac
Closes-Bug: #1903725
2021-01-27 18:18:52 +01:00
Aurelien Lourot f70cbf41ea Sync release-tools
Sync release-tools boilerplate containing these changes
in order to pin pip < 20.3:
https://github.com/openstack-charmers/release-tools/pull/125
https://github.com/openstack-charmers/release-tools/pull/126

Change-Id: Ib977225e1dcb651dd9d98ab67edaa76545621451
2020-12-11 13:52:41 +01:00
Alex Kavanagh f4ed57fc08 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: Ic9b019feec791d33f45e71264f4649d60b75f958
2020-09-26 18:28:48 +01:00
Aurelien Lourot cccfdc343a Porting tests from Amulet to Zaza
Change-Id: I84fe9bbb195871f2e2a9caffc2c32253616ffd33
Func-Test-PR: https://github.com/openstack-charmers/zaza-openstack-tests/pull/240
Closes-Bug: #1828424
2020-04-20 14:46:34 +02:00
Pete Vander Giessen fac18726b7 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: Icface3ab69059083e172a4c16f721f783a5ff5e0
2019-03-07 17:00:58 -05:00
Ryan Beisner f12029cccd Update requirements
Also remove tests/charm-helpers if present, in favor
of the pip-installed charm-helpers.

Change-Id: I0f6d9122a10e1b73073830e48c920e4001f0d356
2018-10-04 10:51:30 -05:00
Ryan Beisner 88b5bd5490 Add .gitreview and clean up repo
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.

Remove legacy lint and test targets from Makefile, ensuring
these tests will execute via tox.  Trusty test runners have
no py35 interpreter, and would have failed in running both
py34 and py35 in succession as it was defined.

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

Change-Id: Ia663fda7761dca6dc08583314f00beedf1db60cc
2016-08-03 18:54:57 +00:00
Alex Kavanagh e019366bf3 Change test-requirements.txt ajkavanagh to openstack
Changed from:
git+https://.../ajkavanagh/charms.openstack.git#egg=charms-openstack
to:
git+https://.../openstack/charms.openstack.git#egg=charms-openstack

This is because the tests should come from the openstack master branch.
2016-07-12 13:53:47 +00:00
Alex Kavanagh 6d0248e9d9 Add barbican-hsm-plugin interface support
The barbican-hsm-plugin interface provides a mechanism for the Barbican
charm to communicate with an HSM plugin.  The plugin (from the Barbican
perspective) is provided as a PKCS#11 compliant library (.so) and so is
local to the Barbican installation.  Thus, the hsm-plugin charms are
subordinate to the Barbican charm and run on the same unit.

This change also provides two actions (generate-mkek and generate-hmac)
which are 'one-off' operations to initialise the HSM with the global
master keys.

Add a note to the README that the generate-mkek and generate-hmac
actions may only be done once as the HSM may reject overwriting the key.

Add Apache2.0 LICENSE and license headers to files
Removed redundant copyright file

Change the reference for the internal port to 9311 The barbican project
changed the INTERNAL port to the same as the PUBLIC port.

Add in seed_file and seed_length to template. These are needed for a
change in Barbican to support seeding the RNG in the HSM if required.
They are set to /dev/random and 32.

Fetch the barbican sources from a PPA (for bug: 1599550)

Remove the trusty support for Py3 from install hook
2016-07-12 12:35:51 +00:00
Alex Kavanagh 71f1af340f Make the charm Python3 compliant
These changes enable the charm code to work under Python2 and Python3.  All
reactive charms should be Python3 compliant.
2016-05-24 09:08:43 +00:00
Alex Kavanagh 1ea4507ced Initial unit_tests added - NOT FUNCTIONAL at this stage
This adds in the unit_test framework but there is a name collision
between charm.openstack as a module, and charm.openstack here which the
package loader can't resolve.  Therefore, going to change the
charm.openstack package to charms.openstack to avoid the collision.
2016-05-19 18:00:23 +00:00