Commit Graph

37 Commits

Author SHA1 Message Date
Felipe Reyes 783a80c119 Use charmcraft 2.x to build
Change-Id: Idbc4684feb56990bf9afe48645c7441c54c426a4
2023-08-10 15:32:35 -04:00
Felipe Reyes 957a292fb8 Upin the versions of tox
Unpin the versions of tox, setuptools, etc. This removes the issue
with tox 4.x breaking the virtualenv dependencies.

Change-Id: I0fee66af4d908b2800154482daa4aa76dee59d4f
Related-Bug: #2002788
2023-02-22 14:02:49 -03:00
Alex Kavanagh 23da3d2257 Revert "Add Kinetic and Zed support"
This reverts commit 527261db5c.

Reason for revert: I'm not sure that this should have been merged; it removes support for focal, and that's needed on the 2.4 branch; thus this couldn't be a clean cherry-pick to the stable/jammy branch.

Change-Id: I5b53d552961d39bda91ef97f425123c1bab7e349
2022-08-31 11:40:07 +00:00
Corey Bryant 527261db5c 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: I1a250a0591c15971840bbd6130c7cff3822eed4f
2022-08-26 18:40:35 +00:00
James Page bbe25222e0 Updates for jammy enablement
- charmcraft: build-on 20.04 -> run-on 20.04/22.04 [*archs]
- Refresh tox targets
- Drop impish bundles and OSCI testing
- Add jammy metadata

Change-Id: I518bc0212fadd3dc78b8bb21d229ee00e6b9a375
2022-04-05 15:37:58 +01:00
Alex Kavanagh ecceb52f33 Update to classic charms to build using charmcraft in CI
This update is to ensure that the Zuul Canonical CI builds the charm
before functional tests and ensure that that artifact is used for the
functional tests.  This is to try to ensure that the charm that gets
landed to the charmhub is the same charm that was tested with.

Change-Id: I4ebaac856ddda643804454288961924c1c256aa9
2022-02-15 16:20:13 +00:00
Corey Bryant 357f995438 Additional test updates
* drop trusty/xenial metadata and function tests
* switch to release-specific zosci functional tests
* switch to yoga zosci unit test job
* add py39

Change-Id: I51ed5c7fdb98dcbea72298da956a66b411fed03f
2021-11-20 08:31:11 -05:00
Alex Kavanagh b4efe9dc4b Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- charm-helpers sync for new charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: I1f99e0d8e70ce29b647707f7e3b53a59ba93fe05
2021-09-23 14:37:28 +01:00
Aurelien Lourot f5cf525377 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: Ic42a655ccf68ff5b9af92ee4f31bfa7e98e661f2
2021-07-22 14:54:36 +02:00
Aurelien Lourot a482fd2263 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
https://github.com/openstack-charmers/release-tools/pull/127
https://github.com/openstack-charmers/release-tools/pull/129

Change-Id: I252a9ab7a8c3220d414deb3765bec26378bd58df
2020-12-15 10:58:22 +01:00
Alex Kavanagh b8c9fc66b4 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: I7c643447959cfd82234653fdbd2bab1c0594469c
2020-09-28 10:22:11 +01:00
Aurelien Lourot 4acb2d59f4 Fix installing dnspython on python 3.5
https://github.com/openstack-charmers/release-tools/pull/100

Change-Id: Idffa15f7fddb0843649c5b83637fec019c2bd9a5
Closes-Bug: #1888225
2020-07-20 16:12:38 +02:00
Alex Kavanagh 24fa642247 Fix directory /etc/nagios/nrpe.d/ issue
Under certain deployment conditions, the charm can attempt to write to
the /etc/nagios/nrpe.d/ directory before it exists.  This directory is
created by the nrpe charm, but if the hacluster (this charm) gets
installed first, then it can be triggered to attempt to set up the nrpe
entries before the directory can be created by nrpe.  This change (and
the associated charm-helpers change) ensures that the charm will delay
the nrpe config until the directory is available (and thus, the nrpe
charm is fully installed)

Related charm-helpers: https://github.com/juju/charm-helpers/pull/492

Change-Id: Ibcbb5f56205b72c475807e3c34c64a00844908f4
Closes-Bug: #1882557
2020-07-15 15:13:08 +01:00
David Ames 2520749d1b Enable the py38 target
The unit tests pass with python3.8 but the tox target was missing.

Change-Id: I3b7d3b11d830df49ef1e4320f2cb68dc64ba06f6
2020-03-17 13:15:16 -07:00
Xiyue Wang df5f114ae1 Port hacluster tests from Amulet to Zaza
Closes-Bug: #1828424
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/148

Signed-off-by: Xiyue Wang <celia.wang@canonical.com>

Change-Id: I0c0447680f89e2378f9bca3b8322a9bfa50ffd46
2019-12-19 02:54:10 +00:00
Corey Bryant 155749ef7d
Enable functional tests for bionic-train
This patch also updates the smoke test to run bionic-train.

Change-Id: Ic3375c957ded388935e2b435fbf6a477bf172b1d
2019-10-24 12:57:11 -05:00
Ryan Beisner 66d5bfb2d2
Sync charm/ceph helpers, tox, and requirements
Change-Id: I4b121d65211622a8a1ff36c553376d1cc5ad89d7
2019-09-30 21:43:19 -05:00
Ryan Beisner 6ed2bb0943
Standardize auxiliary file location across os-charms
Change-Id: Ifaa5453bc0703c77184184e05c53d21649f6b92e
Closes-Bug: #1843826
2019-09-12 15:51:49 -05:00
Camille Rodriguez 8767086714 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: Icc28a2fcecc41b7479d62fd6e3bed8e53d89299b
2019-08-26 17:34:43 -04:00
Zuul 9660cb5e70 Merge "Add Python 3 Train unit tests" 2019-08-13 18:04:58 +00:00
Corey Bryant bef29dd7a1 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: I63d7a250d2f1e36d072eb00c277a704a2fb5ff9d
Story: #2005924
Task: #34228
2019-07-30 10:17:35 -04:00
Chris MacNaughton 8527adaae0 Sync charm-helpers
Change-Id: I56e04d87484bff31e7800642b4355cbeca7cd581
2019-07-16 07:06:05 +00:00
Alex Kavanagh 02b406b6f3 Convert charm to Python 3
Change-Id: Ib7cc06b3b42f26f725a9ea79f09189cc72952d29
2019-03-14 12:40:07 +00:00
Pete Vander Giessen 6f3d0d39a6 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: I99dea1cf41401c5e0bb9d8fdb1ad36f1a1fe7ad5
2019-03-07 17:11:32 -05:00
Doug Hellmann 7e96099afe 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: Ia5b18ff05d9aaceacfa7995fe58474d96dfcdf33
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-11-02 14:19:16 +00:00
Vu Cong Tuan 08d6b11bf6 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: I75a36c74069a125e1ded46ed7aac710941320d11
2018-06-28 08:33:31 +07:00
Zuul 5a7018bf69 Merge "Create DNS records when using DNS HA" 2018-05-16 14:51:13 +00:00
David Ames 6ebcc30d77 Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: I3d7c36b5728dfdf62e48507aa4f7e05c8fb54c48
2018-05-08 11:59:23 -07:00
Liam Young 526ffd7587 Create DNS records when using DNS HA
Deficiencies in the older maas API client that is used to manage
DNS records for DNS HA prevent DNS records being created. This
change creates the DNS records by directly interacting with the REST
maas api (v2). If the old approach of pre-creating the DNS records is
followed then those are used rather than creating new ones.

Change-Id: I6e1d7e5f0a7d813c78dfc1e78743ae7b218fbd01
Closes-Bug: 1764832
2018-04-23 17:26:47 +00:00
Ryan Beisner e251aec359 Update tox.ini to stop using unverified package
As of pip 10.0, --allow-unverified is not permitted.

Use of the flag in this repo was previously used to force
installation of python-apt to accommodate certain unit tests.

The unverified package, python-apt, is no longer necessary
for test execution.

Related-Bug: #1760720

Change-Id: Id08a9dd5096afa9e6d7fe811e53c4d9d83247cac
2018-04-03 16:35:47 +00:00
Ryan Beisner 57a7dd86f5 Sync charm-helpers
Change-Id: I49b73bae7379dc50027b8c9ec8beee926dce927c
2018-02-21 14:08:39 -06:00
Andrew McLeod d6c5ecdd34 Enable xenial-pike amulet test
Make default func27-smoke xenial-pike
Charm-helpers sync

Change-Id: I325902a23d1c72a743417261139d7542a8fa5e2e
2017-11-21 12:17:36 +13:00
Alex Kavanagh e1018cf3b2 Fix alphanumeric comparisons for openstack and ubuntu releases
- sync charmhelpers with fix-alpha helpers
- fix up code where the alpha comparisons are done

Change-Id: Ib42a1e976c05a164f134ea54e4bd390b7d79d55c
Related-Bug: #1659575
2017-03-29 17:51:58 +01:00
David Ames f58b1d3018 Enable Ocata Amulet Tests
- Add Zesty as a supported series to metadata.yaml.
- Turn on Xenial-Ocata Amulet test definitions.
- Sync charm helpers to get Juju 2.x amulet compatibility.
- Keeping Zesty-Ocata Amulet test definitions turned off until the
  metadata.yaml changes propagate to the charm store.
- Resync tox.ini to resolve trusty amulet test failures.

Change-Id: Ie191a57b33dd6b349e190686cb5b8a9a5b3075d1
2017-03-21 17:46:09 +00:00
Ryan Beisner a872c24002 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.

Also create empty dirs with .keep files where necessary.
Some classic charms have actions and/or lib dirs, and some
do not. In all classic charms, flake will now check those
dirs to ensure lint coverage of existing or future content.

Change-Id: I619fb1235ebb57609bcf90717073882c1355b545
2016-09-09 19:22:07 +00:00
Ryan Beisner f313da0507 Use bundletester for amulet test execution
Switch to using bundletester for execution of functional tests,
leveraging tox to build out test virtualenvs.

Rename amulet tests inline with gate-*, dev-* and dfs-*
naming standards.

Update README to refer to functional testing section of the charm
guide.

Also enable Trusty-Mitaka and Xenial-Mitaka Amulet test
targets.

Change-Id: I7d3a5d1ced6410e98a5b134c9cd7c02f0ba21708
2016-07-21 20:26:01 +00:00
Liam Young f4b4fd658e Add tox and testr config and fix apt_pkg error exposed by tox unit_test run 2016-05-24 15:50:48 +00:00