Commit Graph

7 Commits

Author SHA1 Message Date
Hervé Beraud 6ff8acbd6a 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: Ie96a81d19be4f14efc7067ddb9c47827f5255ccf
2021-12-15 11:11:14 +00:00
ShangXiao 25f3d891ed Switch to Ussuri jobs
Change-Id: Ic0a5f4e085b0184b895b018975e56c5989fb6bda
2019-12-10 09:24:30 +08: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 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
Doug Hellmann 04987ed385 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I31eeb67816e10ca303a5c35f0a6cd5942a79434d
Story: #2002586
Task: #24317
2018-09-11 13:19:28 -04:00