mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-29 16:15:50 +00:00
refactor: Replace all old instances of Config with New Config (#1627)
Fixes #1184 Previous PR's found [here](https://github.com/XRPLF/clio/pull/1593) and [here](https://github.com/XRPLF/clio/pull/1544)
This commit is contained in:
@@ -22,7 +22,9 @@
|
||||
#include "util/TestHttpClient.hpp"
|
||||
#include "util/TestHttpServer.hpp"
|
||||
#include "util/TestWebSocketClient.hpp"
|
||||
#include "util/config/Config.hpp"
|
||||
#include "util/newconfig/ConfigDefinition.hpp"
|
||||
#include "util/newconfig/ConfigValue.hpp"
|
||||
#include "util/newconfig/Types.hpp"
|
||||
#include "web/ng/Request.hpp"
|
||||
#include "web/ng/Response.hpp"
|
||||
#include "web/ng/impl/HttpConnection.hpp"
|
||||
@@ -48,10 +50,13 @@
|
||||
|
||||
using namespace web::ng::impl;
|
||||
using namespace web::ng;
|
||||
using namespace util::config;
|
||||
namespace http = boost::beast::http;
|
||||
|
||||
struct HttpConnectionTests : SyncAsioContextTest {
|
||||
util::TagDecoratorFactory tagDecoratorFactory_{util::Config{boost::json::object{{"log_tag_style", "int"}}}};
|
||||
util::TagDecoratorFactory tagDecoratorFactory_{
|
||||
ClioConfigDefinition{{"log_tag_style", ConfigValue{ConfigType::String}.defaultValue("int")}}
|
||||
};
|
||||
TestHttpServer httpServer_{ctx, "localhost"};
|
||||
HttpAsyncClient httpClient_{ctx};
|
||||
http::request<http::string_body> request_{http::verb::post, "/some_target", 11, "some data"};
|
||||
|
||||
Reference in New Issue
Block a user