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: I25766a658b7db8a8c03fb30fb5fb15fd04e2aaf8
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: Iee5a90919a8d8392e2e5437fa2326477573b3473
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: I8aa2b47ed327b14720d7964fe0cd2520cbe8d62d
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: I6aca0d4c6a863d5cc5da556cff56e5fde5d335d3
Pull in the fix for internal, public and admin certificates in
charms.openstack.
Change-Id: I9722127aa687c6cc084c575ebc70dfa377bb2803
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: I34e8db0c9cda91704cae6fecbac885ba5d8831b7
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: Ibc2bf7b92ff2bfadfeb860d2151666bee5ec347d
Add amulet tests for pike, but leave disabled for now.
Required charmhelpers support for Pike picked up during rebuild.
Change-Id: Id7cb699dd9d1ca806e862917137f6d1d69c6fef8
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: I453d1f57d723a2519f6191f585fa378150fc61d8
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: I44f8b8cae9ce3248c85ec2d9a679da418723044e
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: I3b53e36874805f453b29de28b76184aaf2da5c97
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.
Change-Id: Ic01e735deb427b1f73280070058cc9f4730c2fed
Align active status message with other OpenStack related charms,
ensuring a consistent user experience and aligning with monitoring
code checks in amulet functional test helpers.
Change-Id: I97324c80e0c5a4ea406c9a53b1bb80a7e4234661
Closes-Bug: 1632095
This charm was written when the reactive framework was in its infancy
and the layers for Openstack had not been written. This change
updates the charm to use the new layout and removes code which now
resides in a shared layer. The unit tests have also been updated and
extended.
Change-Id: Ib75710021aa48fb739c6fbca8ef52bf296d2a26a
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: I475ea4ad8376cdcc0713512790a8a87209a724a8
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: I07aafbb613d13084eb5d88877659f1690f794040
Switch to using bundletester for execution of functional tests,
leveraging tox to build out test virtualenvs.
Rename amulet tests inline with gate-* and dfs-* naming standards.
Update README to refer to functional testing section of the charm
guide.
Change-Id: I99d4adf310a19aa5dc86a2930df50870f2420f22
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: I5a6f9d970e614f4a62bc63bfafe85e6d0bd87e15
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: I1135f2cc3d4da7f9ab5cdd5535053ccc0a4f897a
Enable tests for later Ubuntu and OpenStack release
versions; tidy headers in each test target; update
base deployment task to support multiple ODL
releases as Helium is not Java 8 compatible, blocking
testing on Ubuntu 16.04.
Change-Id: Idf9f0cf46e4c5a5c9914e203a4f8acf23a62edd9
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: Ifb8974dbd681d3117152a8f7a7bfc889d6c3f315
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: Ibd881d74cbc10b16d4fa8a8ddb8aee01806e56c6
Also updates the base amulet deployment to use correct locations for
other charms and makes use of AMULET_ODL_LOCATION.
Change-Id: I36450bd175f3435e03050c91bcde873c7da497bf