The ironic.tests.unit.common.test_policy Module

class ironic.tests.unit.common.test_policy.PolicyInCodeTestCase(*args, **kwargs)[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, **kwargs)[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, **kwargs)[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_enforce_existing_rule_fails()[source]
test_enforce_existing_rule_passes()[source]
test_enforce_existing_rule_raises()[source]
test_enforce_missing_rule_fails()[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]