Implement tests
This commit is contained in:
parent
f90906d8a8
commit
24b458eb65
48
charms/openstack-exporter-k8s/tests/bundles/smoke.yaml
Normal file
48
charms/openstack-exporter-k8s/tests/bundles/smoke.yaml
Normal file
@ -0,0 +1,48 @@
|
||||
bundle: kubernetes
|
||||
applications:
|
||||
mysql:
|
||||
charm: ch:mysql-k8s
|
||||
channel: 8.0/stable
|
||||
scale: 1
|
||||
trust: true
|
||||
|
||||
# Currently traefik is required for networking things.
|
||||
# If this isn't present, the units will hang at "installing agent".
|
||||
traefik:
|
||||
charm: ch:traefik-k8s
|
||||
channel: 1.0/candidate
|
||||
scale: 1
|
||||
trust: true
|
||||
options:
|
||||
kubernetes-service-annotations: metallb.universe.tf/address-pool=public
|
||||
|
||||
keystone:
|
||||
charm: ch:keystone-k8s
|
||||
channel: 2023.2/edge
|
||||
scale: 1
|
||||
trust: false
|
||||
options:
|
||||
admin-role: admin
|
||||
storage:
|
||||
fernet-keys: 5M
|
||||
credential-keys: 5M
|
||||
|
||||
openstack-exporter:
|
||||
charm: ../../openstack-exporter-k8s.charm
|
||||
scale: 1
|
||||
trust: false
|
||||
resources:
|
||||
openstack-exporter-image: ghcr.io/canonical/openstack-exporter:1.6.0-7533071
|
||||
|
||||
|
||||
relations:
|
||||
- - traefik:ingress
|
||||
- keystone:ingress-internal
|
||||
- - traefik:ingress
|
||||
- keystone:ingress-public
|
||||
|
||||
- - mysql:database
|
||||
- keystone:database
|
||||
|
||||
- - keystone:identity-ops
|
||||
- openstack-exporter:identity-ops
|
@ -3,8 +3,9 @@ gate_bundles:
|
||||
smoke_bundles:
|
||||
- smoke
|
||||
configure:
|
||||
- zaza.openstack.charm_tests.keystone.setup.add_tempest_roles
|
||||
tests: []
|
||||
- zaza.openstack.charm_tests.keystone.setup.wait_for_all_endpoints
|
||||
tests:
|
||||
- zaza.openstack.charm_tests.openstack_exporter.tests.OpenstackExporterTest
|
||||
tests_options:
|
||||
trust:
|
||||
- smoke
|
||||
@ -15,4 +16,19 @@ tests_options:
|
||||
default:
|
||||
smoke: True
|
||||
|
||||
target_deploy_status: []
|
||||
target_deploy_status:
|
||||
traefik:
|
||||
workload-status: active
|
||||
workload-status-message-regex: '^$'
|
||||
rabbitmq:
|
||||
workload-status: active
|
||||
workload-status-message-regex: '^$'
|
||||
keystone:
|
||||
workload-status: active
|
||||
workload-status-message-regex: '^$'
|
||||
mysql:
|
||||
workload-status: active
|
||||
workload-status-message-regex: '^.*$'
|
||||
openstack-exporter:
|
||||
workload-status: active
|
||||
workload-status-message-regex: '^$'
|
||||
|
Loading…
x
Reference in New Issue
Block a user