IcingaServiceTest: delete after storing them

This commit is contained in:
Thomas Gelf 2016-09-08 13:52:07 +00:00
parent 999019ba16
commit 8a3956b6a2
1 changed files with 6 additions and 0 deletions

View File

@ -38,6 +38,7 @@ class IcingaServiceTest extends BaseTestCase
$service->display_name = 'Something else';
$service->host = 'not yet';
$service->store($db);
$service->delete();
}
public function testAcceptsAssignRules()
@ -131,6 +132,7 @@ class IcingaServiceTest extends BaseTestCase
'host.address="127.*"',
'host.vars.env="test"'
);
$service->store($db);
$service = IcingaService::loadWithAutoIncId($service->id, $db);
@ -143,6 +145,8 @@ class IcingaServiceTest extends BaseTestCase
'host.address="127.*"',
$service->toPlainObject()->assignments['assign'][0]
);
$service->delete();
}
public function testStaysUnmodifiedWhenSameFiltersAreSetInDifferentWays()
@ -207,6 +211,8 @@ class IcingaServiceTest extends BaseTestCase
$this->loadRendered('service2'),
(string) $service
);
$service->delete();
}
public function testRendersToTheCorrectZone()