Skip to content

Commit

Permalink
Migrate functional tests from amulet to zaza
Browse files Browse the repository at this point in the history
Change-Id: I339748e528ac57879ae2210f8f1e196fd04093dc
Func-Test-PR: openstack-charmers/zaza-openstack-tests#229
Closes-Bug: 1828424
  • Loading branch information
sahid authored and lourot committed Apr 14, 2020
1 parent de548e0 commit 8490919
Show file tree
Hide file tree
Showing 24 changed files with 912 additions and 973 deletions.
6 changes: 3 additions & 3 deletions Makefile
Expand Up @@ -6,11 +6,11 @@ lint:

test:
@echo Starting unit tests...
@tox -e py27
@tox -e py37

functional_test:
@echo Starting Amulet tests...
@tox -e func27
@echo Starting Zaza functional tests...
@tox -e func

bin/charm_helpers_sync.py:
@mkdir -p bin
Expand Down
41 changes: 15 additions & 26 deletions test-requirements.txt
@@ -1,29 +1,18 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
# This file is managed centrally by release-tools and should not be modified
# within individual charm repos. See the 'global' dir contents for available
# choices of *requirements.txt files for OpenStack Charms:
# https://github.com/openstack-charmers/release-tools
#
# TODO: Distill the func test requirements from the lint/unit test
# requirements. They are intertwined. Also, Zaza itself should specify
# all of its own requirements and if it doesn't, fix it there.
#
charm-tools>=2.4.4
coverage>=3.6
requests>=2.18.4
mock>=1.2
flake8>=2.2.4,<=2.4.1
stestr
requests>=2.18.4
# BEGIN: Amulet OpenStack Charm Helper Requirements
# Liberty client lower constraints
amulet>=1.14.3,<2.0;python_version=='2.7'
bundletester>=0.6.1,<1.0;python_version=='2.7'
python-ceilometerclient>=1.5.0
python-cinderclient>=1.4.0,<5.0.0
python-glanceclient>=1.1.0
python-heatclient>=0.8.0
python-keystoneclient>=1.7.1
python-neutronclient>=3.1.0
python-novaclient>=2.30.1
python-openstackclient>=1.7.0
python-swiftclient>=2.6.0
pika>=0.10.0,<1.0
distro-info
git+https://github.com/juju/charm-helpers.git#egg=charmhelpers
# END: Amulet OpenStack Charm Helper Requirements
# NOTE: workaround for 14.04 pip/tox
pytz
pyudev # for ceph-* charm unit tests (not mocked?)
stestr>=2.2.0
coverage>=4.5.2
pyudev # for ceph-* charm unit tests (need to fix the ceph-* charm unit tests/mocking)
git+https://github.com/openstack-charmers/zaza.git#egg=zaza;python_version>='3.0'
git+https://github.com/openstack-charmers/zaza-openstack-tests.git#egg=zaza.openstack
7 changes: 4 additions & 3 deletions tests/README.md
@@ -1,8 +1,9 @@
# Overview

This directory provides Amulet tests to verify basic deployment functionality
from the perspective of this charm, its requirements and its features, as
exercised in a subset of the full OpenStack deployment test bundle topology.
This directory provides Zaza test definitions and bundles to verify basic
deployment functionality from the perspective of this charm, its requirements
and its features, as exercised in a subset of the full OpenStack deployment
test bundle topology.

For full details on functional testing of OpenStack charms please refer to
the [functional testing](http://docs.openstack.org/developer/charm-guide/testing.html#functional-testing)
Expand Down

0 comments on commit 8490919

Please sign in to comment.