Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Commit

Permalink
fix(tests): Compilation warnings removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
bouda1 committed Jun 11, 2021
1 parent 7372e41 commit dd0d351
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/enginerpc/enginerpc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -153,39 +153,39 @@ TEST_F(EngineRpc, GetVersion) {
TEST_F(EngineRpc, ProcessServiceCheckResult) {
enginerpc erpc("0.0.0.0", 40001);
auto output = execute("ProcessServiceCheckResult test_host test_svc 0");
ASSERT_EQ(output.size(), 1);
ASSERT_EQ(output.size(), 1u);
ASSERT_EQ(output.front(), "ProcessServiceCheckResult: 0");
erpc.shutdown();
}

TEST_F(EngineRpc, ProcessServiceCheckResultBadHost) {
enginerpc erpc("0.0.0.0", 40001);
auto output = execute("ProcessServiceCheckResult \"\" test_svc 0");
ASSERT_EQ(output.size(), 2);
ASSERT_EQ(output.size(), 2u);
ASSERT_EQ(output.front(), "ProcessServiceCheckResult failed.");
erpc.shutdown();
}

TEST_F(EngineRpc, ProcessServiceCheckResultBadService) {
enginerpc erpc("0.0.0.0", 40001);
auto output = execute("ProcessServiceCheckResult test_host \"\" 0");
ASSERT_EQ(output.size(), 2);
ASSERT_EQ(output.size(), 2u);
ASSERT_EQ(output.front(), "ProcessServiceCheckResult failed.");
erpc.shutdown();
}

TEST_F(EngineRpc, ProcessHostCheckResult) {
enginerpc erpc("0.0.0.0", 40001);
auto output = execute("ProcessHostCheckResult test_host 0");
ASSERT_EQ(output.size(), 1);
ASSERT_EQ(output.size(), 1u);
ASSERT_EQ(output.front(), "ProcessHostCheckResult: 0");
erpc.shutdown();
}

TEST_F(EngineRpc, ProcessHostCheckResultBadHost) {
enginerpc erpc("0.0.0.0", 40001);
auto output = execute("ProcessHostCheckResult '' 0");
ASSERT_EQ(output.size(), 2);
ASSERT_EQ(output.size(), 2u);
ASSERT_EQ(output.front(), "ProcessHostCheckResult failed.");
erpc.shutdown();
}
Expand All @@ -203,7 +203,7 @@ TEST_F(EngineRpc, NewThresholdsFile) {
"21,\n \"fit\": 60.5\n }\n]}]");
enginerpc erpc("0.0.0.0", 40001);
auto output = execute("NewThresholdsFile /tmp/thresholds_file.json");
ASSERT_EQ(output.size(), 1);
ASSERT_EQ(output.size(), 1u);
ASSERT_EQ(output.front(), "NewThresholdsFile: 0");
command_manager::instance().execute();
ASSERT_EQ(_ad->get_thresholds_file(), "/tmp/thresholds_file.json");
Expand Down

0 comments on commit dd0d351

Please sign in to comment.