[ui] Implement provider test button #49
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
Scott E. Graves 2025-04-23 17:42:07 -05:00
parent 3e8284b851
commit eaa95cf9d1
2 changed files with 2 additions and 1 deletions

View File

@ -342,6 +342,7 @@ void handlers::generate_config(provider_type prov, std::string_view name,
}
if (data_dir.has_value()) {
utils::file::directory{data_dir.value()}.create_directory();
launch_process(prov, name, {"-dd", data_dir.value(), "-gc"});
} else {
launch_process(prov, name, {"-gc"});

View File

@ -286,7 +286,7 @@ class Mount with ChangeNotifier {
Future<bool> test() async {
try {
final auth = await _auth.createAuth();
final response = await http.put(
final response = await http.get(
Uri.parse(
Uri.encodeFull(
'${getBaseUri()}/api/v1/test?auth=$auth&name=$name&type=$type&config=${jsonEncode(mountConfig.settings)}',