Add functional tests
This relies on zaza updates landing. https://github.com/gnuoy/zaza/tree/functest-utils https://github.com/gnuoy/zaza/tree/functest-utils-vault Change-Id: Iebb2415077b682dfdf590b4b5f35a3c593ed3d69
This commit is contained in:
parent
773b360a70
commit
d4e1b83d44
|
@ -12,6 +12,7 @@ description: |
|
|||
credentials, SQL/NoSQL databases, X.509 certificates,
|
||||
SSH credentials, and more.
|
||||
series:
|
||||
- bionic
|
||||
- xenial
|
||||
tags:
|
||||
- security
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
# zaza
|
||||
git+https://github.com/openstack-charmers/zaza.git#egg=zaza
|
|
@ -0,0 +1,12 @@
|
|||
series: xenial
|
||||
services:
|
||||
vault:
|
||||
num_units: 1
|
||||
series: xenial
|
||||
charm: ../../../vault
|
||||
postgresql:
|
||||
charm: cs:postgresql
|
||||
num_units: 1
|
||||
relations:
|
||||
- - vault:db
|
||||
- postgresql:db
|
|
@ -0,0 +1,9 @@
|
|||
charm_name: vault
|
||||
tests:
|
||||
- zaza.charm_tests.vault.tests.VaultTest
|
||||
configure:
|
||||
- zaza.charm_tests.vault.setup.basic_setup
|
||||
gate_bundles:
|
||||
- xenial
|
||||
dev_bundles:
|
||||
- bionic
|
|
@ -0,0 +1,35 @@
|
|||
[tox]
|
||||
envlist = pep8
|
||||
skipsdist = True
|
||||
|
||||
[testenv]
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
PYTHONHASHSEED=0
|
||||
whitelist_externals = juju
|
||||
passenv = HOME TERM CS_API_*
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
install_command =
|
||||
pip install {opts} {packages}
|
||||
|
||||
[testenv:pep8]
|
||||
basepython = python2.7
|
||||
deps=charm-tools
|
||||
commands = charm-proof
|
||||
|
||||
[testenv:func-noop]
|
||||
basepython = python3
|
||||
commands =
|
||||
true
|
||||
|
||||
[testenv:func]
|
||||
basepython = python3
|
||||
commands =
|
||||
functest-run-suite --keep-model
|
||||
|
||||
[testenv:func-smoke]
|
||||
basepython = python3
|
||||
commands =
|
||||
functest-run-suite --keep-model
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
Loading…
Reference in New Issue