[icinga-checkins] icinga.org: icingaweb2-module-director/master: IcingaHostTest: remove obsolete workaround

git at icinga.org git at icinga.org
Mon Oct 10 12:00:29 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: 89f86abdda8cfdabf3f83dbd4e65c4aba8e0fda2
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=89f86abdda8cfdabf3f83dbd4e65c4aba8e0fda2

Author: Thomas Gelf <thomas at gelf.net>
Date:   Sun Oct  9 13:15:51 2016 +0000

IcingaHostTest: remove obsolete workaround

---

 test/php/library/Director/Objects/IcingaHostTest.php |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/test/php/library/Director/Objects/IcingaHostTest.php b/test/php/library/Director/Objects/IcingaHostTest.php
index b8705b0..861bd73 100644
--- a/test/php/library/Director/Objects/IcingaHostTest.php
+++ b/test/php/library/Director/Objects/IcingaHostTest.php
@@ -382,15 +382,12 @@ class IcingaHostTest extends BaseTestCase
         $host->object_type = 'template';
         $host->zone_id = null;
 
-        // TODO: this should happen automagically
-        $host->invalidateResolveCache();
         $config = new IcingaConfig($db);
         $host->renderToConfig($config);
         $this->assertEquals(
             array('zones.d/director-global/host_templates.conf'),
             $config->getFileNames()
         );
-
     }
 
     public function testWhetherTwoHostsCannotBeStoredWithTheSameApiKey()



More information about the icinga-checkins mailing list