The ironic.tests.unit.api.test_middleware Module

The ironic.tests.unit.api.test_middleware Module

Tests to assert that various incorporated middleware works as expected.

class ironic.tests.unit.api.test_middleware.TestCORSMiddleware(*args, **kwds)[source]

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

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

The tests below provide minimal confirmation that the CORS middleware is active, and may be configured. For comprehensive tests, please consult the test suite in oslo_middleware.

setUp()[source]
test_invalid_cors_get_request()[source]
test_invalid_cors_options_request()[source]
test_valid_cors_get_request()[source]
test_valid_cors_options_request()[source]
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.