ironic-inspector/ironic_inspector/test/unit
Steve Baker c9e312f8b4 Implement secure RBAC
The default policy will been replaced with one which aligns with the
Secure-RBAC scopes and roles. Since ironic-inspector is a tool used only
by system-level admins, only the ``system`` scope is supported, and the
only roles in the policy rules are ``admin`` and ``reader``.

The is_admin and is_observer rules are deprecated for removal, and
every rule which refers to them are deprecated in favor of the
system-scoped equivalent (system_scope:all with role:admin or
role:reader)

No unit tests covered the existing policy, these are now covered by
test_acl.TestACLDeprecated.

Change-Id: I4d038245c6b97b1504fb47eeec78ad3f9e5a897c
2021-02-23 10:24:49 +13:00
..
__init__.py Move unit tests to "unit" directory 2016-04-05 11:15:29 +03:00
policy_fixture.py Add upgrade check, and json2yaml policy handling 2021-01-04 13:56:28 -08:00
test_acl.py Implement secure RBAC 2021-02-23 10:24:49 +13:00
test_api_tools.py Use unittest.mock instead of third party mock 2020-04-18 16:15:28 -05:00
test_common_ironic.py Use correct Node id attribute 2020-11-23 16:19:35 +13:00
test_coordination.py Use unittest.mock instead of third party mock 2020-04-18 16:15:28 -05:00
test_db.py Use unittest.mock instead of third party mock 2020-04-18 16:15:28 -05:00
test_dnsmasq_pxe_filter.py pxe filter - option to always block unknown hosts 2020-09-28 12:18:00 +02:00
test_introspect.py Revert "Power off before inspection" 2020-09-29 00:24:14 +00:00
test_iptables.py pxe filter - option to always block unknown hosts 2020-09-28 12:18:00 +02:00
test_keystone.py Use unittest.mock instead of third party mock 2020-04-18 16:15:28 -05:00
test_locking.py Use unittest.mock instead of third party mock 2020-04-18 16:15:28 -05:00
test_main.py Use correct Node id attribute 2020-11-23 16:19:35 +13:00
test_manager.py Add leader election for periodic sync with ironic 2020-07-02 12:17:28 +02:00
test_migrations.py Hacking: enforce usage of autospec=True in tests 2020-04-28 12:27:41 +02:00
test_node_cache.py Merge "Follow up to incorrect pxe-enabled was set" 2020-08-17 14:51:19 +00:00
test_plugins_accel_device.py Identify accelerator devices during introspection 2020-08-20 14:03:37 +08:00
test_plugins_base_physnet.py Use unittest.mock instead of mock 2020-06-10 20:21:00 +02:00
test_plugins_base.py Use unittest.mock instead of third party mock 2020-04-18 16:15:28 -05:00
test_plugins_capabilities.py Use unittest.mock instead of third party mock 2020-04-18 16:15:28 -05:00
test_plugins_discovery.py Allow setting other fields on discovery 2020-06-29 09:57:37 +02:00
test_plugins_extra_hardware.py Relax extra_hardware data validation by default 2020-07-28 12:48:33 +02:00
test_plugins_introspection_data.py Use unittest.mock instead of third party mock 2020-04-18 16:15:28 -05:00
test_plugins_lldp_basic.py Use latest version of python construct 2020-05-14 10:37:07 +02:00
test_plugins_local_link_connection.py Hacking: enforce usage of autospec=True in tests 2020-04-28 12:27:41 +02:00
test_plugins_pci_devices.py Hacking: enforce usage of autospec=True in tests 2020-04-28 12:27:41 +02:00
test_plugins_physnet_cidr_map.py Use unittest.mock instead of mock 2020-06-10 20:21:00 +02:00
test_plugins_raid_device.py Use autospec=True in mocks 2020-04-22 14:10:53 +02:00
test_plugins_rules.py Use autospec=True in mocks 2020-04-22 14:10:53 +02:00
test_plugins_standard.py Do not try to set local_gb to -1 when the matched root device size is 0 2020-07-09 16:40:22 +02:00
test_process.py Hacking: enforce usage of autospec=True in tests 2020-04-28 12:27:41 +02:00
test_pxe_filter.py pxe filter - option to always block unknown hosts 2020-09-28 12:18:00 +02:00
test_rules.py Use unittest.mock instead of third party mock 2020-04-18 16:15:28 -05:00
test_swift.py Use unittest.mock instead of third party mock 2020-04-18 16:15:28 -05:00
test_utils.py Fix node id vs uuid in processing_logger_prefix 2021-02-17 18:40:58 +02:00
test_wsgi_service.py Enable Basic HTTP authentication middleware. 2020-06-05 01:28:40 +12:00