|
@@ -74,9 +74,16 @@ class HostRESTControllerTest extends BaseRESTControllerTest
|
|
|
*/
|
|
|
protected function obtainData($key = null)
|
|
|
{
|
|
|
+ $datos = [
|
|
|
+ 'name' => 'HostType',
|
|
|
+ 'shortname' => 'hosttype',
|
|
|
+ 'opcode' => 1,
|
|
|
+ ];
|
|
|
+ $this->getClient()->request('POST', '/api/hosttypes.json', $datos);
|
|
|
+
|
|
|
$datos = [
|
|
|
'mac' => 'cafecafecafe',
|
|
|
- 'hostType' => null,
|
|
|
+ 'hostType' => 1,
|
|
|
'state' => HostStatus::STATE_ACTIVE,
|
|
|
'filename' => 'cafecafecafe.bin',
|
|
|
];
|