[ui] Implement provider test button #49
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
This commit is contained in:
parent
3e8284b851
commit
eaa95cf9d1
@ -342,6 +342,7 @@ void handlers::generate_config(provider_type prov, std::string_view name,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (data_dir.has_value()) {
|
if (data_dir.has_value()) {
|
||||||
|
utils::file::directory{data_dir.value()}.create_directory();
|
||||||
launch_process(prov, name, {"-dd", data_dir.value(), "-gc"});
|
launch_process(prov, name, {"-dd", data_dir.value(), "-gc"});
|
||||||
} else {
|
} else {
|
||||||
launch_process(prov, name, {"-gc"});
|
launch_process(prov, name, {"-gc"});
|
||||||
|
@ -286,7 +286,7 @@ class Mount with ChangeNotifier {
|
|||||||
Future<bool> test() async {
|
Future<bool> test() async {
|
||||||
try {
|
try {
|
||||||
final auth = await _auth.createAuth();
|
final auth = await _auth.createAuth();
|
||||||
final response = await http.put(
|
final response = await http.get(
|
||||||
Uri.parse(
|
Uri.parse(
|
||||||
Uri.encodeFull(
|
Uri.encodeFull(
|
||||||
'${getBaseUri()}/api/v1/test?auth=$auth&name=$name&type=$type&config=${jsonEncode(mountConfig.settings)}',
|
'${getBaseUri()}/api/v1/test?auth=$auth&name=$name&type=$type&config=${jsonEncode(mountConfig.settings)}',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user