SetupNetworks response body shouldn't be Empty! It should contain the new created host_nics collection just like other RESTAPI actions.
This is very important for the REST API tests process. part of the test is to validate the response code and body after sending action/request which in this case can't be done!
The return value for REST action is the action contents + status of the request, is this what you want to get back?
yes response body should contain action status
posted patch: http://gerrit.ovirt.org/#/c/6968/1
merged, commit 39728d8b9ab74c0604b55d29183bf75a181e82e6
Verify on SI16 - PASS Response for setupnetworks action: <action> <host_nics> <actions> <link href="/hosts/1d1683d0-f2a7-11e1-b6f8-001a4a169763/nics/setupnetworks" rel="setupnetworks"/> </actions> <host_nic href="/api/hosts/1d1683d0-f2a7-11e1-b6f8-001a4a169763/nics/52333f8c-3f97-486a-bfa2-d88e379e2ad0" id="52333f8c-3f97-486a-bfa2-d88e379e2ad0"> <actions> <link href="/api/hosts/1d1683d0-f2a7-11e1-b6f8-001a4a169763/nics/52333f8c-3f97-486a-bfa2-d88e379e2ad0/attach" rel="attach"/> <link href="/api/hosts/1d1683d0-f2a7-11e1-b6f8-001a4a169763/nics/52333f8c-3f97-486a-bfa2-d88e379e2ad0/detach" rel="detach"/> </actions> <name>eth0</name> <link href="/api/hosts/1d1683d0-f2a7-11e1-b6f8-001a4a169763/nics/52333f8c-3f97-486a-bfa2-d88e379e2ad0/statistics" rel="statistics"/> <host href="/api/hosts/1d1683d0-f2a7-11e1-b6f8-001a4a169763" id="1d1683d0-f2a7-11e1-b6f8-001a4a169763"/> <network href="/api/networks/31969310-1452-4d8b-b71f-ffb086fe657a" id="31969310-1452-4d8b-b71f-ffb086fe657a"/> <mac address="00:15:17:A7:6A:4C"/> <ip address="10.35.128.10" netmask="255.255.255.0" gateway="10.35.128.254"/> <boot_protocol>dhcp</boot_protocol> <speed>1000000000</speed> <status> <state>up</state> </status> <mtu>1500</mtu> <bridged>true</bridged> <custom_configuration>false</custom_configuration> </host_nic> </host_nics> <status> <state>complete</state> </status> </action>
(In reply to comment #2) > The return value for REST action is the action contents + status of the > request, is this what you want to get back? this is incorrect, you should query for host nics (after the action complited) and return them in response, otherwise it's a fake, QE verify action success based on your response.
(In reply to comment #8) > (In reply to comment #2) > > The return value for REST action is the action contents + status of the > > request, is this what you want to get back? > > this is incorrect, you should query for host nics (after the action > complited) and return them in response, otherwise it's a fake, QE verify > action success based on your response. will be addressed in https://bugzilla.redhat.com/show_bug.cgi?id=853739