chore: Remove irrelevant test for config fallback url

The 'fallback url' was removed from config a few months ago (this test should
have been removed with it)
This commit is contained in:
John Colvin committed 2023-04-18 14:54:25 +00:00
1 parent 7dba037980
commit 81529fdbe7
1 file changed
-36
-36
View File
@@ -407,42 +407,6 @@ TEST_CASE("Configuration Tests", "[config]") {
REQUIRE(config::get<Foo>().name() == "good");
}
SECTION("fallback_test") {
// HTTPServer main;
HTTPServer fallback;
// std::string main_url = "http://localhost:" +
// boost::lexical_cast<std::string>(main.port()) + "/";
std::string main_url = "http://does_not_exist:12345/";
// main.stop();
std::string fallback_url =
"http://127.0.0.1:" +
boost::lexical_cast<std::string>(fallback.port()) + "/";
std::string response = "HTTP/1.0 200 OK\r\n"
"Content-Type: text/plain\r\n\r\n";
std::string content = "FooGroup {\n"
" value {\n"
" group: \"http_group\"\n"
" foo {\n"
" name: \"http\"\n"
" id: 80\n"
"}}}\n";
fallback.add_response("/spark.conf", response, content);
fallback.start();
initialize_for_test(
"include: '" + main_url +
"'\n"
"fallback: '" +
fallback_url + "'\n",
false);
fallback.stop();
REQUIRE(get<FooGroup>().foo().name() == "http");
REQUIRE(get<FooGroup>().foo().id() == 80);
}
SECTION("macro_definition_order_test") {
// The $is_crusible test
// o2_cme_enabled depends on Foo which has a rule which depends on