]> granicus.if.org Git - icinga2/commitdiff
Use the "plugin-check-command" template in the livestatus unit tests
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 10 Aug 2016 06:37:30 +0000 (08:37 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 10 Aug 2016 06:37:30 +0000 (08:37 +0200)
refs #12338

test/livestatus-test.cpp

index 16a1fa3d9bf3b5c5fd276fd21c89310d04a62a0f..66ee617bd880d21edfe3c355e7fb55d7707cb2f1 100644 (file)
@@ -46,7 +46,7 @@ struct LivestatusFixture
                cfgfp.open(cfg_file_path_tmp.CStr(), std::ofstream::out | std::ofstream::trunc);
                cfgfp << std::fixed;
                cfgfp << "object CheckCommand \"dummy\" {\n";
-               cfgfp << "  execute = PluginCheck\n";
+               cfgfp << "  import \"plugin-check-command\"\n";
                cfgfp << "  command = \"/bin/echo\"\n";
                cfgfp << "}\n";
                cfgfp << "object Host \"test-01\" {\n";