[icinga-checkins] icinga.org: icinga2/master: Use the "plugin-check-command" template in the livestatus unit tests

git at icinga.org git at icinga.org
Wed Aug 10 08:37:44 CEST 2016


Module: icinga2
Branch: master
Commit: 827b230467d679bce27f7d10d06cbb11f4e69ef5
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=827b230467d679bce27f7d10d06cbb11f4e69ef5

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Wed Aug 10 08:37:30 2016 +0200

Use the "plugin-check-command" template in the livestatus unit tests

refs #12338

---

 test/livestatus-test.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/livestatus-test.cpp b/test/livestatus-test.cpp
index 16a1fa3..66ee617 100644
--- a/test/livestatus-test.cpp
+++ b/test/livestatus-test.cpp
@@ -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";



More information about the icinga-checkins mailing list