]> granicus.if.org Git - icinga2/blobdiff - test/livestatus.cpp
Merge pull request #6602 from Icinga/fix/improve-tls-handshake-exception-logging
[icinga2] / test / livestatus.cpp
index 11f45c23cf93d8866f9c04838834d584fac19961..bb74ffc303812e6344be49c476d4668504d7214b 100644 (file)
@@ -67,10 +67,10 @@ BOOST_AUTO_TEST_CASE(hosts)
        BOOST_TEST_MESSAGE( "Querying Livestatus...");
 
        std::vector<String> lines;
-       lines.push_back("GET hosts");
-       lines.push_back("Columns: host_name address check_command");
-       lines.push_back("OutputFormat: json");
-       lines.push_back("\n");
+       lines.emplace_back("GET hosts");
+       lines.emplace_back("Columns: host_name address check_command");
+       lines.emplace_back("OutputFormat: json");
+       lines.emplace_back("\n");
 
        /* use our query helper */
        String output = LivestatusQueryHelper(lines);
@@ -97,10 +97,10 @@ BOOST_AUTO_TEST_CASE(services)
        BOOST_TEST_MESSAGE( "Querying Livestatus...");
 
        std::vector<String> lines;
-       lines.push_back("GET services");
-       lines.push_back("Columns: host_name service_description check_command notes");
-       lines.push_back("OutputFormat: json");
-       lines.push_back("\n");
+       lines.emplace_back("GET services");
+       lines.emplace_back("Columns: host_name service_description check_command notes");
+       lines.emplace_back("OutputFormat: json");
+       lines.emplace_back("\n");
 
        /* use our query helper */
        String output = LivestatusQueryHelper(lines);