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: I954643e47acc836ae82ab70bc286b65d3ac92217
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
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: I00eb414c591dbf6fb9682b256448c6831fed9cd2
Story: #2002586
Task: #24317
Ensure that EOL releases are removed from metadata
and tests, and that the current dev release is enabled
in metadata. Dev release tests are enabled separately
because of chickens and eggs.
Change-Id: I6cdd26814973b15f7c57b17039c95950ac1cbc68
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: I22deb4616b7865f9fb4f621aeb74d49dc055471c
Pull in the fix for internal, public and admin certificates in
charms.openstack.
Change-Id: Ic5c421c8217996aa6263dd75f19b2606c59c5dbe
Closes-Bug: #1750915
Bionic, being the next LTS, is important to enable for dev
and test as early as possible ahead of 18.02.
Zesty goes EOL in Jan 2018. The next stable charms release (18.02)
will not provide Zesty series support, as it was an interim
(non-LTS) release.
Change-Id: Ic308d952be4668bd61edc533aad7b6ab8463fa26
With keystoneauth1 sessions the service catalog search function,
url_for takes argument interface, no longer named endpoint_type.
This change updates tests to use this argument name.
Change-Id: I37eec176ba55eb0fe37e3500d4b7bcf712333d37
Add amulet tests for pike, leave disabled for now.
Charm helpers changes will be picked up during rebuild.
Change-Id: I5389c816464bc030a3070613d649644b951e81f4
Every reactive charm that uses charms.openstack and implements unit
testing needs to mock charmhelpers, as otherwise the tests blow up.
This patch uses the mocking of charmhelpers in charms.openstack so that
a charm layer can just import test_mocks and charmhelpers will be mocked
out along with setting up a default
charmhelpers.c.o.u.OPENSTACK_RELEASES so that when an OpenStackCharm()
derived charm class won't fail on definition.
Change-Id: Id6537afcd24840a008a537543a15cfe5fd278886
Related-Bug: #1693017
Depends-On: I5ac40617ee30e5f421ec16fc7592177a5e6aa166
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes
Change-Id: I04fdfedcc7ee540b83045dfc1dbdca0a0a5784de
- fix up code where the alpha comparisons are done
- refactor the code so that it uses, rather than fights,
charms.openstack features.
Change-Id: Ie3b7fdd53ee73c700b8515dce4bd114cab72269d
Related-Bug: #1659575
- 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.
Change-Id: I31ed9225c0f21574db93758153df9caf5b980b34
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: I547c0ae0ac93fe7a9321a8d4d9a9711190dd5249
Partial-Bug: 1642981
- Remove Precise-Icehouse Amulet test definitions if they exist.
- Add Xenial-Newton Amulet test definitions.
- Add Yakkety-Newton Amulet test definitions.
- Use the percona-cluster charm in tests instead of the mysql charm.
- Remove in-tree charm-helper test code as it is expressed in
test-requirements.
Change-Id: If4980b5215c46fd52c17266bfa216bc17d7af28f
Drop the use of 'access' from the odl-controller relation; the
interface only sets connected and available.
Also assess status after the neutron-api-plugin-subordinate is
connected, as it does not provide any state.
Change-Id: I7b1793779a516c963f7459749aa02dc9ecef603d
This charm was written in the defunct services framework and before
the layers for Openstack had been written. This change
updates the charm to use the reactive framework and removes code which
now resides in a shared layer.
Change-Id: I103551103fde5f502634e3b3896d69626e0b876a
This optimizes the publication process to the charm store, and
ensures that the charm code and version is consistent across all
supported Ubuntu series.
Change-Id: Idd92affe9e012d3a5ac8263b1af57ef91f9e1044
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: I0389f21af14c94a9d1579b41e588a0a7152f0490
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.
Change-Id: If68e119a2adcc3701e765c18f2a138a2cee81d6e
All contributions to this charm where made under Canonical
copyright; switch to Apache-2.0 license as agreed so we
can move forward with official project status.
Change-Id: I25aa2f328c69a333a8f9b6c409867724ca463267
Add amulet tests; these are currently a copy of the
tests from the openvswitch-odl charm but do provide
some base level of functional verification of the
charm.
Enable test targets for currently supported releases
of OpenStack and Ubuntu.
Change-Id: I8486e30297b7d5e4bc9649ef94a6e447315bfbd8
The charm-helpers project have re-licensed to Apache 2.0
inline with the agreed licensing approach to intefaces,
layers and charms generally.
Resync helpers to bring charmhelpers inline with charm
codebase.
Change-Id: I1cf9e7d748536f5e34abaf29dd635413b30ecb1f
Add support for OpenStack Newton and Ocata.
Rework version detection code to just match on major version for
OpenStack projects using semantic versioning.
Provide fallback version detection based on major.minor versions
for swift packages.
Rework config-flags support helpers.
Fix is_ip function to correctly detect both IPv4 and IPv6 addresses.
Change-Id: Iace7e2b97a78ed8251cdec51fa748153e69525ad
Avoid use of 'service --status-all' which is currently
broken on trusty for upstart managed daemons; the change
moves to detecting how the daemon is managed, and then
using upstart status XXX or the return code of service XXX
status to determine whether a process is running.
Fixes for IPv6 network address detection under Ubuntu
16.04 which changes the output format of the ip commands
slightly.
Update the version map to include 8.1.x as a Neutron
version for Mitaka.
Change-Id: I56b59eb52ee442342df4abec5110abd0cdab16e3
Closes-Bug: 1581171
Closes-Bug: 1581598
Closes-Bug: 1580674
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: I8f2dd2a3875e2650ba2c419d630eae268472b737
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.
Change-Id: Icf362e7e60844ea59a6d242c3507e9aadb1c3087