The ironic.tests.unit.common.test_policy Module

The ironic.tests.unit.common.test_policy Module

class ironic.tests.unit.common.test_policy.PolicyInCodeTestCase(*args, **kwds)[source]

Bases: ironic.tests.base.TestCase

Tests whether the configuration of the policy engine is corect.

test_admin_api()[source]
test_is_member()[source]
test_node_create()[source]
test_node_get()[source]
test_public_api()[source]
test_show_password()[source]
class ironic.tests.unit.common.test_policy.PolicyInCodeTestCaseNegative(*args, **kwds)[source]

Bases: ironic.tests.base.TestCase

Tests whether the configuration of the policy engine is corect.

test_admin_api()[source]
test_node_create()[source]
test_node_get()[source]
test_public_api()[source]
test_show_password()[source]
class ironic.tests.unit.common.test_policy.PolicyTestCase(*args, **kwds)[source]

Bases: ironic.tests.base.TestCase

Tests whether ironic.common.policy behaves as expected.

setUp()[source]
test_authorize_access_forbidden()[source]
test_authorize_passes()[source]
test_authorize_policy_not_registered()[source]
test_get_oslo_policy_enforcer_config_file(*args, **keywargs)[source]
test_get_oslo_policy_enforcer_namespace(*args, **keywargs)[source]
test_get_oslo_policy_enforcer_no_args(*args, **keywargs)[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.