Skip to content

Commit 35526d9

Browse files
committed
Allow charm ironic-api to skip tests
1 parent 5a901a7 commit 35526d9

File tree

1 file changed

+12
-0
lines changed
  • zaza/openstack/charm_tests/audit

1 file changed

+12
-0
lines changed

zaza/openstack/charm_tests/audit/tests.py

+12
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,15 @@ def test_102_apipaste_excludes_audit_section(self):
105105
application_name=self.application_name):
106106
api_paste_content = self.fetch_api_paste_content()
107107
self.assertNotIn(section_heading, api_paste_content)
108+
109+
110+
class IronicAuditMiddlewareTest(KeystoneAuditMiddlewareTest):
111+
"""Ironic-API audit middleware test class."""
112+
113+
def test_101_apipaste_includes_audit_section(self):
114+
"""Test api-paste.ini renders audit section when enabled."""
115+
self.skipTest('ironic-api does not use an api-paste.ini file')
116+
117+
def test_102_apipaste_excludes_audit_section(self):
118+
"""Test api_paste.ini does not render audit section when disabled."""
119+
self.skipTest('ironic-api does not use an api-paste.ini file')

0 commit comments

Comments
 (0)