// Create a valid config with two subnets and no command channel.
os.str("");
os<<config_test_txt<<","
<<args_txt
<<dhcp4_cfg_txt
<<subnet1
<<",\n"
<<subnet2
<<subnet_footer
<<"}\n"// close dhcp4
<<"}}";
/* Verify the control channel socket exists */
ASSERT_TRUE(fileExists(socket_path_));
// Send the config-test command
sendUnixCommand(os.str(),response);
/* Verify the control channel socket still exists */
EXPECT_TRUE(fileExists(socket_path_));
// Verify the configuration was successful.
EXPECT_EQ("{ \"result\": 0, \"text\": \"Configuration seems sane. Control-socket, hook-libraries, and D2 configuration were sanity checked, but not applied.\" }",