refactor
This commit is contained in:
parent
985e503c21
commit
ea30396e49
@ -218,8 +218,8 @@ static void common_tests(app_config &config, provider_type prov) {
|
||||
std::map<std::string_view, std::function<void(app_config &)>> methods{
|
||||
{JSON_API_PASSWORD,
|
||||
[](app_config &cfg) {
|
||||
test_getter_setter(cfg, &app_config::get_api_auth,
|
||||
&app_config::set_api_auth, "", "auth",
|
||||
test_getter_setter(cfg, &app_config::get_api_password,
|
||||
&app_config::get_api_password, "", "auth",
|
||||
JSON_API_PASSWORD, "auth2");
|
||||
}},
|
||||
{JSON_API_PORT,
|
||||
|
Loading…
x
Reference in New Issue
Block a user