ironic/ironic/tests/unit/drivers/modules
Devananda van der Veen dc0dad9773 Mask instance secrets in API responses
This change adds a new policy setting, "show_instance_secrets", whose
behavior mirrors that of the existing "show_passwords" policy setting.

Whereas "show_passwords" has historically blocked all sensitive
information from the node's driver_info field, the new setting blocks
all sensitive information from the node's instance_info field, including
image_url.

The name of the old setting, "show_passwords", is not being changed at
this time because such a change is not backwards-compatible. Instead,
the documentation string for this setting has been changed to clarify
what it does. Note that the behavior has not actually changed.

Note that this change moves the policy.check("show_password") call from
the Pecan hook into the API's Nodes() class, where the
policy.check("show_instance_secrets") is also added. This makes the code
a little cleaner and more maintainable, especially if we want to add any
more checks like this in the future.

As a result of this cleanup, the ironic-specific
RequestContext.show_password property is removed.

Partial-bug: #1530972
Partial-bug: #1526752
Related-bug: #1613903

Change-Id: I48493c53971cdab3b9122897e51322e19ce2f600
2016-08-26 08:31:17 -07:00
..
amt Clean imports in code 2016-08-18 10:02:30 +07:00
cimc Improve tests for driver's parse_driver_info() 2016-06-27 16:15:05 -05:00
drac Delete bios_wsman_mock.py from DRAC driver 2016-07-08 13:07:52 +02:00
ilo Merge "Fix iLO drivers inconsistent boot mode default value" 2016-08-26 01:37:41 +00:00
irmc Remove iterated form of side effects 2016-07-07 10:08:55 +09:00
msftocs Remove iterated form of side effects 2016-07-07 10:08:55 +09:00
network Adding InfiniBand Support 2016-08-14 09:14:34 +03:00
oneview Move "server_profile_template_uri" to REQUIRED_ON_PROPERTIES 2016-08-22 19:20:54 +08:00
ucs Remove iterated form of side effects 2016-07-07 10:08:55 +09:00
__init__.py Move unit tests to correct directory 2015-09-30 17:47:19 -07:00
test_agent.py Mask instance secrets in API responses 2016-08-26 08:31:17 -07:00
test_agent_base_vendor.py Mask instance secrets in API responses 2016-08-26 08:31:17 -07:00
test_agent_client.py Fix test in test_agent_client.py 2016-06-20 21:11:29 -04:00
test_console_utils.py test_console_utils: using mock_open for builtin open() 2016-08-09 15:19:32 +07:00
test_deploy_utils.py Merge "Check keyword arguments" 2016-08-10 14:36:47 +00:00
test_iboot.py Remove iterated form of side effects 2016-07-07 10:08:55 +09:00
test_image_cache.py Merge "Move ironic.tests.unit.base to ironic.tests.base" 2015-10-23 04:46:43 +00:00
test_inspector.py Migrate to using keystoneauth Sessions 2016-08-03 11:24:21 -07:00
test_ipminative.py Merge "Rename some variables in test_ipminative.py" 2016-08-11 19:46:00 +00:00
test_ipmitool.py Merge "Remove incorrect CONF.import_opt() from test_ipmitool.py" 2016-08-19 20:10:24 +00:00
test_iscsi_deploy.py Add "erase_devices_metadata_priority" config option 2016-08-12 09:59:39 +01:00
test_pxe.py Copy iPXE script over only when needed 2016-08-17 18:47:06 +03:00
test_seamicro.py Remove iterated form of side effects 2016-07-07 10:08:55 +09:00
test_snmp.py Update hacking test-requirement 2016-08-23 13:25:47 -07:00
test_ssh.py Remove iterated form of side effects 2016-07-07 10:08:55 +09:00
test_virtualbox.py Cleanup unused conf variables 2016-05-10 09:22:54 +10:00
test_wol.py Rename utils.py to mgr_utils.py to avoid namespace collision 2015-10-23 06:09:41 -07:00