Allow node owners to administer associated ports
Expose a port's node's owner to policy, giving Ironic admins the option of modifying the policy file to allow users specified by a node's owner field to perform API actions on that node's associated ports. Change-Id: I47ecbad9729f18dacc703e2a625ef3e92bfb00ed Story: #2006506 Task: #37539
This commit is contained in:
@@ -66,7 +66,7 @@ class TestPortObject(db_base.DbTestCase, obj_utils.SchemasTestMixIn):
|
||||
|
||||
port = objects.Port.get(self.context, address)
|
||||
|
||||
mock_get_port.assert_called_once_with(address)
|
||||
mock_get_port.assert_called_once_with(address, owner=None)
|
||||
self.assertEqual(self.context, port._context)
|
||||
|
||||
def test_get_bad_id_and_uuid_and_address(self):
|
||||
|
||||
Reference in New Issue
Block a user