Commit Graph

32 Commits

Author SHA1 Message Date
Rafael Lopez 43b98b6416 Minimal update to tox.ini for tests to pass
- remove pip.sh
- unpin top level requirements
- update charm-tools version for pep8 test
- update osci.yaml tox_extra_args for compatibility

Signed-off-by: Rafael Lopez <rafael.lopez@canonical.com>
Change-Id: Iec9fbd296d6d5b5fa647739d5588218c28e0a773
2023-01-17 03:58:22 +00:00
Alex Kavanagh 6751832bb6 Migrate percona-cluster to charmcraft build
- add *.charm  to .gitignore
- add build-requirements.txt
- add charmcraft.yaml (build on 18.04, run on 18.04)
- modify osci.yaml to do build
- add rename.sh to clean-up naming of charms
- modify bundles to work with *.charm and use the charmhub
- modify tox.ini to include the build target

Note that this charm doesn't officially support xenial, but the bundle
has been left in the tests for debugging/test purposes.  It Launchpad it
will be build on bionic to run on bionic.

This patch adds *.charm to the .gitignore to ensure that any built
artifacts are ignored.

Change-Id: Icd4942262a8dfcd3a194684571861121d92f8ed2
2022-05-20 16:08:07 -07:00
Corey Bryant 50f3f31f47 Switch to yoga unit jobs and add py39
Change-Id: I951c774ef57b5437d7e624936f67fdbf6c383d58
2021-11-17 14:49:35 -05:00
Alex Kavanagh e1ca4001ac charm-helpers sync for 21.10 release
- charm-helpers sync for new charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: If2397cf401d1bcec3ff7c622fa9e3477291fc7eb
2021-09-28 13:02:13 +01:00
Aurelien Lourot 524a3572f3 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: I7e20ce898d770ce93e784f123e172f39eab7a2db
2021-07-22 15:00:29 +02:00
Aurelien Lourot 151034b84e 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: I9b801a2ca6c7679117fcd2322cc324c7a8d8077b
2020-12-15 11:17:06 +01:00
Alex Kavanagh a4635c13a8 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: I1bf6a834b3678f631f6335af9f0e8b779f863c66
2020-09-27 19:39:08 +01:00
Aurelien Lourot 31fe0059f2 Remove Amulet leftover and support Python 3.8
Support Python 3.8 by pulling a version of charm-helpers containing https://github.com/juju/charm-helpers/pull/423

Change-Id: I1167c67fa23482862900989d5105162af2599309
Closes-Bug: #1828424
2020-03-05 12:36:27 +01:00
Ryan Beisner 9b68baa799
Sync charm/ceph helpers, tox, and requirements
Change-Id: I340623964d1d016fb8425803bf963394a27935e5
2019-09-30 22:10:15 -05:00
Camille Rodriguez 9b1699e7cb 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:
- Removed unused Amluet test templates
- 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: I38ba1d762fede6c25b8b4c41919859e52eb097fd
2019-09-04 09:14:37 -04:00
Zuul 8a8495a4b3 Merge "Add Python 3 Train unit tests" 2019-08-13 18:12:05 +00:00
Corey Bryant 6338660677 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: If3b1f9f6d5af0f8f64e9ffb50b0f2f8c5d112d40
Story: #2005924
Task: #34228
2019-07-30 10:19:37 -04:00
David Ames 257c58f373 Convert percona-cluster to Zaza
Convert amulet tests to zaza.
Add additional tests for new cold boot actions.
Use multi-model tests.yaml for different tests for bionic and xenial.

Change-Id: I5dadefa6092acecdaae194370a81b05a69b09909
2019-07-18 13:57:58 -07:00
David Ames 681cdf8e45 Convert to python3
Convert the percona cluster charm to python3.

Remove Trusty testing.

Change-Id: Ia5ae43f16caffb5c4356d3f5616e0383e23b5f50
2019-07-08 07:41:48 -07:00
Alex Kavanagh (tinwood) 79d8a0f7b7 Revert "Convert the charm to Python 3"
It's broken at trusty and needs to be re-worked due to a lack of python3-mysqldb at trusty

This reverts commit 03f93dbc76.

Change-Id: I2b722014fc1ed5823635a6b45b3307326fd901af
2019-03-14 15:12:50 +00:00
Alex Kavanagh 03f93dbc76 Convert the charm to Python 3
Change-Id: I2bb250a4abbe58fe3953357332fa0fe16b432e1c
2019-03-12 15:12:59 +00:00
Pete Vander Giessen bad07251d8 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: Iabc59ae7ae228f5db9b1be4b03868825afb23394
2019-03-07 17:12:58 -05:00
Doug Hellmann d2487c4316 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: I68759b87fa4c7af04a95bb188d94f7ddc724ef7d
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-11-02 14:21:15 +00:00
Vu Cong Tuan d105cabc1d 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: I60e3789829b738422258bb3373f16f48c24052c4
2018-06-27 15:02:51 +07:00
David Ames caadf6cd7a Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: I137ad6fad748f751da53efa21931f9f7fcda9616
2018-05-08 12:57:33 -07:00
Ryan Beisner 19e1fce3db 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: Ia6e28d103a43123bc6e40b1922ea9a9ee8f438ba
2018-04-03 16:32:30 +00:00
Ryan Beisner c54685d8e1 Sync charm-helpers
Change-Id: I6beeb8282d1ab1b7b1dd9ae280f2373d320912f9
2018-02-21 14:10:33 -06:00
Andrew McLeod f75b58ea4a Enable artful amulet test
Rename tests to align with ubuntu releases;
Remove explicit openstack release amulet tests
Make default func27-smoke xenial
Charm-helpers sync

Change-Id: I6de9d3f052536827157b191f75e5d8f9b271f80e
2017-11-15 11:21:32 +13:00
Alex Kavanagh 00b5990e74 Fix alphanumeric comparisons for ubuntu releases
- sync charmhelpers with fix-alpha helpers
- fix up code where the alpha comparisons are done

Change-Id: I61a6831f381664f9378a1b6a7a119cf3a2c026c2
Related-Bug: #1659575
2017-04-04 20:39:18 +01:00
James Page bb30f468aa Correctly detect IPv6 addresses
Use the is_ip function from charmhelpers to correctly
detect and return IPv4 and IPv6 addresses.

Support DNS querying for IPv6 addresses using ipv6
argument (defaults to false).

Resync tox.ini from release tools to resolve libcharmstore
compatibility issues for 1.25.x testing.

Change-Id: I719ac7db350b2b257ae057acc4299a8e97501a7b
Partial-Bug: 1622780
2017-03-20 10:19:55 +00:00
Ryan Beisner 08821ef50e 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: Ic1fd0f38b2bd68825bfc81768252162b27715afd
2016-09-09 19:43:36 +00:00
Ryan Beisner 629cc1090c 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: Iafb77627824d4f18d8a1f1f2a611db950870e81a
2016-09-06 22:10:00 +00:00
James Page 6578871698 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-* and dev-* naming standards.

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

Add basic multi-unit test for Xenial.

Change-Id: I06a976d9fc6418f04f46f3c3cca83d2fb47f3ee4
2016-07-21 14:24:52 +01:00
James Page 094873d629 Fix and tidy backup action
During refactoring of the actions codebase, the backup
action managed to miss getting the default 'args' parameter.

Add args parameter so the the backup action is functional again.

Enable pep8 checking of actions, tidy up issues.

Use boolean action options as real booleans, not as strings.

Change-Id: Ia75dd90ac31dce4009fd44f8c1d582814134e3d9
Closes-Bug: 1583898
2016-05-20 10:05:44 +01:00
James Page 10be2a1a94 Update to charm-tools >= 2.0.0
The new release of charm-tools no longer ships the charm
command; update minimum version requirement and switch
to using charm-proof instead, unblocking current pep8
failures across all charms.

Also pin the version of requests to 2.6.0 until theblues
(indirect dependency of charm-tools) sort out its
requirements versioning.

Change-Id: I5a429afce4f29b1591608a17dc5d5edfd45f8744
2016-03-23 09:30:17 +00:00
Billy Olsen d2fbcdb809 Use tox in Makefile targets
Modify the Makefile to point at the appropriate tox targets
so that tox and Make output can be equivalent. This involves
mapping the lint target to the pep8 target and the test target
to the py27 target.

Update tox.ini to not use site-packages as the PyYAML installed
version conflicts with pip requirements.

Change-Id: I4c236be7fad1ce15b561832b1368ca2a789bc38a
2016-03-16 22:15:56 +00:00
James Page 5cf419bdbb Add tox support for check/gate
This charm was missed pre-migration to git/gerrit.

Add support for executing pep8 and unit tests using tox.

Change-Id: I5518e870c572ccc292d6fe4e9b7c910c7f3f0260
2016-03-02 10:20:07 +00:00