openstack-charmers / zaza-openstack-tests

OpenStack Charms Functional Test Library for Zaza
Apache License 2.0
7 stars 77 forks source link

Add class for keystone audit middleware testing #1212

Closed MylesJP closed 1 month ago

MylesJP commented 2 months ago

Added general class for testing keystone audit middleware functionality in charms. Tests correct rendering of api-paste.ini file.

Example usage with charm Heat:

tests/tests.yaml

tests:
  - zaza.openstack.charm_tests.audit.tests.KeystoneAuditMiddlewareTest

tests_options:
  audit-middleware:
    service: heat
MylesJP commented 1 month ago

Added a fix for the case where the service name and the application name differ. In most cases they are the same but in nova-cloud-controller, service name is 'nova' in file path while application_name is 'nova-cloud-controller'.

freyes commented 1 month ago

:information_source: This PR is being exercised by this gerrit change - https://review.opendev.org/c/openstack/charm-nova-cloud-controller/+/918017