sendUnixCommand("{ \"command\": \"version-get\" }", response);
EXPECT_TRUE(response.find("\"result\": 0") != string::npos);
EXPECT_TRUE(response.find("log4cplus") != string::npos);
- EXPECT_FALSE(response.find("GTEST_VERSION") != string::npos);
+ EXPECT_FALSE(response.find("Hooks directory: ") != string::npos);
// Send the build-report command.
sendUnixCommand("{ \"command\": \"build-report\" }", response);
EXPECT_TRUE(response.find("\"result\": 0") != string::npos);
- EXPECT_TRUE(response.find("GTEST_VERSION") != string::npos);
+ EXPECT_TRUE(response.find("Hooks directory: ") != string::npos);
}
// Tests that the server properly responds to list-commands command.
sendHttpCommand("{ \"command\": \"version-get\" }", response);
EXPECT_TRUE(response.find("\"result\": 0") != string::npos);
EXPECT_TRUE(response.find("log4cplus") != string::npos);
- EXPECT_FALSE(response.find("GTEST_VERSION") != string::npos);
+ EXPECT_FALSE(response.find("Hooks directory: ") != string::npos);
// Send the build-report command.
sendHttpCommand("{ \"command\": \"build-report\" }", response);
EXPECT_TRUE(response.find("\"result\": 0") != string::npos);
- EXPECT_TRUE(response.find("GTEST_VERSION") != string::npos);
+ EXPECT_TRUE(response.find("Hooks directory: ") != string::npos);
}
TEST_F(HttpCtrlChannelD2Test, getVersion) {
sendHttpCommand("{ \"command\": \"version-get\" }", response);
EXPECT_TRUE(response.find("\"result\": 0") != string::npos);
EXPECT_TRUE(response.find("log4cplus") != string::npos);
- EXPECT_FALSE(response.find("GTEST_VERSION") != string::npos);
+ EXPECT_FALSE(response.find("Hooks directory: ") != string::npos);
// Send the version-get command
sendHttpCommand("{ \"command\": \"version-get\" }", response, "::1");
EXPECT_TRUE(response.find("\"result\": 0") != string::npos);
EXPECT_TRUE(response.find("log4cplus") != string::npos);
- EXPECT_FALSE(response.find("GTEST_VERSION") != string::npos);
+ EXPECT_FALSE(response.find("Hooks directory: ") != string::npos);
}
// Verify that the dual stack scenario works as expect.
sendHttpCommand("{ \"command\": \"version-get\" }", response);
EXPECT_TRUE(response.find("\"result\": 0") != string::npos);
EXPECT_TRUE(response.find("log4cplus") != string::npos);
- EXPECT_FALSE(response.find("GTEST_VERSION") != string::npos);
+ EXPECT_FALSE(response.find("Hooks directory: ") != string::npos);
// Send the version-get command
sendHttpCommand("{ \"command\": \"version-get\" }", response, "::1");
EXPECT_TRUE(response.find("\"result\": 0") != string::npos);
EXPECT_TRUE(response.find("log4cplus") != string::npos);
- EXPECT_FALSE(response.find("GTEST_VERSION") != string::npos);
+ EXPECT_FALSE(response.find("Hooks directory: ") != string::npos);
}
// This test verifies that the server signals timeout if the transmission
sendUnixCommand("{ \"command\": \"version-get\" }", response);
EXPECT_TRUE(response.find("\"result\": 0") != string::npos);
EXPECT_TRUE(response.find("log4cplus") != string::npos);
- EXPECT_FALSE(response.find("GTEST_VERSION") != string::npos);
+ EXPECT_FALSE(response.find("Hooks directory: ") != string::npos);
// Send the build-report command
sendUnixCommand("{ \"command\": \"build-report\" }", response);
EXPECT_TRUE(response.find("\"result\": 0") != string::npos);
- EXPECT_TRUE(response.find("GTEST_VERSION") != string::npos);
+ EXPECT_TRUE(response.find("Hooks directory: ") != string::npos);
}
// This test verifies that the DHCP server handles server-tag-get command
sendHttpCommand("{ \"command\": \"version-get\" }", response);
EXPECT_TRUE(response.find("\"result\": 0") != string::npos);
EXPECT_TRUE(response.find("log4cplus") != string::npos);
- EXPECT_FALSE(response.find("GTEST_VERSION") != string::npos);
+ EXPECT_FALSE(response.find("Hooks directory: ") != string::npos);
// Send the build-report command
sendHttpCommand("{ \"command\": \"build-report\" }", response);
EXPECT_TRUE(response.find("\"result\": 0") != string::npos);
- EXPECT_TRUE(response.find("GTEST_VERSION") != string::npos);
+ EXPECT_TRUE(response.find("Hooks directory: ") != string::npos);
}
TEST_F(HttpCtrlChannelDhcpv4Test, getVersion) {
sendHttpCommand("{ \"command\": \"version-get\" }", response);
EXPECT_TRUE(response.find("\"result\": 0") != string::npos);
EXPECT_TRUE(response.find("log4cplus") != string::npos);
- EXPECT_FALSE(response.find("GTEST_VERSION") != string::npos);
+ EXPECT_FALSE(response.find("Hooks directory: ") != string::npos);
// Send the version-get command
sendHttpCommand("{ \"command\": \"version-get\" }", response, "::1");
EXPECT_TRUE(response.find("\"result\": 0") != string::npos);
EXPECT_TRUE(response.find("log4cplus") != string::npos);
- EXPECT_FALSE(response.find("GTEST_VERSION") != string::npos);
+ EXPECT_FALSE(response.find("Hooks directory: ") != string::npos);
// Clean up after the test.
CfgMgr::instance().clear();
sendHttpCommand("{ \"command\": \"version-get\" }", response);
EXPECT_TRUE(response.find("\"result\": 0") != string::npos);
EXPECT_TRUE(response.find("log4cplus") != string::npos);
- EXPECT_FALSE(response.find("GTEST_VERSION") != string::npos);;
+ EXPECT_FALSE(response.find("Hooks directory: ") != string::npos);;
// Send the version-get command
sendHttpCommand("{ \"command\": \"version-get\" }", response, "::1");
EXPECT_TRUE(response.find("\"result\": 0") != string::npos);
EXPECT_TRUE(response.find("log4cplus") != string::npos);
- EXPECT_FALSE(response.find("GTEST_VERSION") != string::npos);
+ EXPECT_FALSE(response.find("Hooks directory: ") != string::npos);
// Clean up after the test.
CfgMgr::instance().clear();
sendUnixCommand("{ \"command\": \"version-get\" }", response);
EXPECT_TRUE(response.find("\"result\": 0") != string::npos);
EXPECT_TRUE(response.find("log4cplus") != string::npos);
- EXPECT_FALSE(response.find("GTEST_VERSION") != string::npos);
+ EXPECT_FALSE(response.find("Hooks directory: ") != string::npos);
// Send the build-report command
sendUnixCommand("{ \"command\": \"build-report\" }", response);
EXPECT_TRUE(response.find("\"result\": 0") != string::npos);
- EXPECT_TRUE(response.find("GTEST_VERSION") != string::npos);
+ EXPECT_TRUE(response.find("Hooks directory: ") != string::npos);
}
// This test verifies that the DHCP server handles server-tag-get command
sendHttpCommand("{ \"command\": \"version-get\" }", response);
EXPECT_TRUE(response.find("\"result\": 0") != string::npos);
EXPECT_TRUE(response.find("log4cplus") != string::npos);
- EXPECT_FALSE(response.find("GTEST_VERSION") != string::npos);
+ EXPECT_FALSE(response.find("Hooks directory: ") != string::npos);
// Send the build-report command
sendHttpCommand("{ \"command\": \"build-report\" }", response);
EXPECT_TRUE(response.find("\"result\": 0") != string::npos);
- EXPECT_TRUE(response.find("GTEST_VERSION") != string::npos);
+ EXPECT_TRUE(response.find("Hooks directory: ") != string::npos);
}
TEST_F(HttpCtrlChannelDhcpv6Test, getVersion) {
sendHttpCommand("{ \"command\": \"version-get\" }", response);
EXPECT_TRUE(response.find("\"result\": 0") != string::npos);
EXPECT_TRUE(response.find("log4cplus") != string::npos);
- EXPECT_FALSE(response.find("GTEST_VERSION") != string::npos);
+ EXPECT_FALSE(response.find("Hooks directory: ") != string::npos);
// Send the version-get command
sendHttpCommand("{ \"command\": \"version-get\" }", response, "127.0.0.1");
EXPECT_TRUE(response.find("\"result\": 0") != string::npos);
EXPECT_TRUE(response.find("log4cplus") != string::npos);
- EXPECT_FALSE(response.find("GTEST_VERSION") != string::npos);
+ EXPECT_FALSE(response.find("Hooks directory: ") != string::npos);
// Clean up after the test.
CfgMgr::instance().clear();
sendHttpCommand("{ \"command\": \"version-get\" }", response);
EXPECT_TRUE(response.find("\"result\": 0") != string::npos);
EXPECT_TRUE(response.find("log4cplus") != string::npos);
- EXPECT_FALSE(response.find("GTEST_VERSION") != string::npos);
+ EXPECT_FALSE(response.find("Hooks directory: ") != string::npos);
// Send the version-get command
sendHttpCommand("{ \"command\": \"version-get\" }", response, "127.0.0.1");
EXPECT_TRUE(response.find("\"result\": 0") != string::npos);
EXPECT_TRUE(response.find("log4cplus") != string::npos);
- EXPECT_FALSE(response.find("GTEST_VERSION") != string::npos);
+ EXPECT_FALSE(response.find("Hooks directory: ") != string::npos);
// Clean up after the test.
CfgMgr::instance().clear();