Project scope driver vendor pass-through

The tests were not enabled earlier on, for endpoints that
are not going to be exposed to users, really. So this patch
just updates them so they are tested as expected.

Change-Id: If3c989d5bcf03de5704e30165747642134952f75
This commit is contained in:
Julia Kreger 2021-02-19 17:00:32 -08:00
parent e870bd34d0
commit 5dff46a700
2 changed files with 5 additions and 7 deletions

View File

@ -446,7 +446,8 @@ class TestRBACProjectScoped(TestACLBase):
'owner_port_ident': owned_node_port['uuid'],
'other_port_ident': other_port['uuid'],
'owner_portgroup_ident': owner_pgroup['uuid'],
'other_portgroup_ident': other_pgroup['uuid']})
'other_portgroup_ident': other_pgroup['uuid'],
'driver_name': 'fake-driverz'})
@ddt.file_data('test_rbac_project_scoped.yaml')
@ddt.unpack

View File

@ -2214,22 +2214,19 @@ owner_reader_cannot_get_drivers_vendor_passthru:
path: '/v1/drivers/{driver_name}/vendor_passthru/methods'
method: get
headers: *owner_reader_headers
assert_status: 403
skip_reason: policy not implemented
assert_status: 500
lessee_reader_cannot_get_drivers_vendor_passthru:
path: '/v1/drivers/{driver_name}/vendor_passthru/methods'
method: get
headers: *lessee_reader_headers
assert_status: 403
skip_reason: policy not implemented
assert_status: 500
third_party_admin_cannot_get_drivers_vendor_passthru:
path: '/v1/drivers/{driver_name}/vendor_passthru/methods'
method: get
headers: *third_party_admin_headers
assert_status: 403
skip_reason: policy not implemented
assert_status: 500
# Node Bios - https://docs.openstack.org/api-ref/baremetal/#node-bios-nodes