The ironic.tests.unit.api.test_audit Module

Tests to assert that audit middleware works as expected.

class ironic.tests.unit.api.test_audit.TestAuditMiddleware(*args, **kwargs)[source]

Bases: ironic.tests.unit.api.base.BaseApiTest

Provide a basic smoke test to ensure audit middleware is active.

The tests below provide minimal confirmation that the audit middleware is called, and may be configured. For comprehensive tests, please consult the test suite in keystone audit_middleware.

setUp()[source]
test_disable_audit_request(*args, **keywargs)[source]
test_enable_audit_request(*args, **keywargs)[source]
test_enable_audit_request_error(*args, **keywargs)[source]