Arif Ali 3f86a15b38
Some checks failed
Python package / build (3.10) (push) Failing after 1m40s
Python package / build (3.8) (push) Failing after 3s
Python package / build (3.9) (push) Failing after 3s
Add zaza tests for cert renewals for ovn-central
2025-12-17 11:19:11 +00:00
2023-01-11 12:55:53 +00:00
2022-04-22 14:34:22 +02:00
2020-06-11 15:53:51 +00:00
2024-02-19 11:03:16 -03:00
2025-05-05 17:14:41 -04:00
2025-05-05 17:14:41 -04:00
2023-01-06 20:12:08 +00:00

Zaza OpenStack Tests

This is a test library designed to be shared between the OpenStack Charms to improve code-reuse among the various components.

Usage

This example is taken from the pacemaker-remote charm's tests.yaml:

charm_name: pacemaker-remote
tests:
  - zaza.openstack.charm_tests.pacemaker_remote.tests.PacemakerRemoteTest
configure:
  - zaza.charm_tests.noop.setup.basic_setup
gate_bundles:
  - basic
smoke_bundles:
  - basic

test-requirements.txt:

git+https://github.com/openstack-charmers/zaza.git#egg=zaza
git+https://github.com/openstack-charmers/zaza-openstack-tests.git#egg=zaza.openstack

Configuration

Zaza-openstack-test uses environment variables to configure the tests:

Env var Description Default Value
FUNCTEST_AMPHORA_LOCATION http://tarballs.openstack.org/octavia/test-images/test-only-amphora-x64-haproxy-ubuntu-xenial.qcow2
MOJO_LOCAL_DIR
OS_AUTH_URL Undercloud authentication url
OS_PASSWORD Undercloud password
OS_REGION_NAME Undercloud region name
OS_TENANT_NAME Undercloud tenant name
OS_USERNAME Undercloud username
TEST_ARISTA_IMAGE_LOCAL /tmp/arista-cvx-virt-test.qcow2
TEST_ARISTA_IMAGE_REMOTE
TEST_BIONIC_IMAGE_NAME Name of bionic image bionic
TEST_CACERT
TEST_CAKEY
TEST_CERT
TEST_CIDR_EXT
TEST_CIDR_EXT
TEST_CIRROS_IMAGE_NAME Name of cirros image cirros
TEST_EXT_NET_SUBNET Name of external subnet ext_net_subnet
TEST_EXT_NET Name of external network ext_net
TEST_FIP_RANGE Undercloud fip range
TEST_FOCAL_IMAGE_NAME Name of focal image focal
TEST_GATEWAY Undercloud gateway
TEST_IRONIC_DEPLOY_INITRD
TEST_IRONIC_DEPLOY_VMLINUZ
TEST_IRONIC_RAW_BM_IMAGE
TEST_JAMMY_IMAGE_NAME Name of jammy image jammy
TEST_KEYPAIR_NAME Name of keypair zaza
TEST_KEY
TEST_MAGNUM_QCOW2_IMAGE_URL
TEST_NAME_SERVER Undercloud name server
TEST_NET_ID Undercloud net id
TEST_NVIDIA_VGPU_HOST_SW
TEST_PRIVATE_NET_SUBNET Name of private subnet private_subnet
TEST_PRIVATE_NET Name of private network private
TEST_PRIVKEY Path to private key corresponding to TEST_KEYPAIR_NAME
TEST_PROVIDER_ROUTER Name of private-external router provider-router
TEST_TMPDIR Path to the e temporary directory used by Python
TEST_TRILIO_LICENSE
TEST_VIP00
Description
No description provided
Readme Apache-2.0 3.8 MiB
Languages
Python 99.6%
Jinja 0.4%