
Add ops.scenario tests. This allows each charm class to be easily tested with different permutations of missing/incomplete/complete relations. This is a starting point for using ops.scenario, additional tests should include: examining rendered files, peer relation, test secrets events etc Change-Id: I8ebdad250d7cb169c3c0d72858e0582000d98b6e
19 lines
1.0 KiB
Bash
Executable File
19 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# NOTE: this only fetches libs for use in unit tests here.
|
|
# Charms that depend on this library should fetch these libs themselves.
|
|
|
|
echo "WARNING: Charm interface libs are excluded from ASO python package."
|
|
charmcraft fetch-lib charms.nginx_ingress_integrator.v0.ingress
|
|
charmcraft fetch-lib charms.data_platform_libs.v0.database_requires
|
|
charmcraft fetch-lib charms.keystone_k8s.v1.identity_service
|
|
charmcraft fetch-lib charms.keystone_k8s.v0.identity_credentials
|
|
charmcraft fetch-lib charms.keystone_k8s.v0.identity_resource
|
|
charmcraft fetch-lib charms.rabbitmq_k8s.v0.rabbitmq
|
|
charmcraft fetch-lib charms.ovn_central_k8s.v0.ovsdb
|
|
charmcraft fetch-lib charms.traefik_k8s.v1.ingress
|
|
charmcraft fetch-lib charms.ceilometer_k8s.v0.ceilometer_service
|
|
charmcraft fetch-lib charms.cinder_ceph_k8s.v0.ceph_access
|
|
echo "Copying libs to to unit_test dir"
|
|
rsync --recursive --delete lib/ tests/lib/
|