rbac - Fix vif_attach expected return values

Client vif_attach only return resp - not body.

On a system without policies enabled the test fail with
too maby values to unpack - which is confusing ...

Change-Id: I36bce09c9ffe31364d738809adabe65a3af8443f
This commit is contained in:
Harald Jensås 2023-05-11 21:41:01 +02:00 committed by Julia Kreger
parent 3c43cf1eb7
commit 3c8235ed02
1 changed files with 2 additions and 2 deletions

View File

@ -539,7 +539,7 @@ class TestNodeProjectReader(base.BaseBaremetalRBACTest):
baremetal:node:vif:attach
"""
try:
resp, body = self.reader_client.vif_attach(
resp = self.reader_client.vif_attach(
self.node['uuid'], 'vifid')
except lib_exc.NotFound as e:
resp = e.resp
@ -1173,7 +1173,7 @@ class TestNodeSystemReader(base.BaseBaremetalRBACTest):
baremetal:node:vif:attach
"""
try:
resp, body = self.reader_client.vif_attach(
resp = self.reader_client.vif_attach(
self.node['uuid'], 'vifid')
except lib_exc.Forbidden as e:
resp = e.resp