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:
parent
3c43cf1eb7
commit
3c8235ed02
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user