[unit test] Complete all providers unit tests #12
Some checks failed
BlockStorage/repertory/pipeline/head There was a failure building this commit
Blockstorage/repertory/pipeline/head There was a failure building this commit

This commit is contained in:
2025-09-17 13:46:00 -05:00
parent f3e6a401cf
commit acfe692528
3 changed files with 4 additions and 2 deletions

View File

@@ -346,7 +346,7 @@ auto rdb_meta_db::remove_item_meta(const std::string &api_path,
const std::string &key) -> api_error { const std::string &key) -> api_error {
REPERTORY_USES_FUNCTION_NAME(); REPERTORY_USES_FUNCTION_NAME();
if (META_PERMANENT_NAMES.contains(key)) { if (std::ranges::contains(META_PERMANENT_NAMES, key)) {
utils::error::raise_api_path_error( utils::error::raise_api_path_error(
function_name, api_path, function_name, api_path,
fmt::format("failed to remove item meta-key is restricted|key|{}", fmt::format("failed to remove item meta-key is restricted|key|{}",

View File

@@ -307,7 +307,7 @@ auto sqlite_meta_db::remove_item_meta(const std::string &api_path,
const std::string &key) -> api_error { const std::string &key) -> api_error {
REPERTORY_USES_FUNCTION_NAME(); REPERTORY_USES_FUNCTION_NAME();
if (META_PERMANENT_NAMES.contains(key)) { if (std::ranges::contains(META_PERMANENT_NAMES, key)) {
utils::error::raise_api_path_error( utils::error::raise_api_path_error(
function_name, api_path, function_name, api_path,
fmt::format("failed to remove item meta-key is restricted|key|{}", fmt::format("failed to remove item meta-key is restricted|key|{}",

View File

@@ -1458,7 +1458,9 @@ static void run_tests(const app_config &cfg, i_provider &provider) {
// MOVED // MOVED
get_file_list(cfg, provider); get_file_list(cfg, provider);
// MOVED
get_and_set_item_meta_with_upload_file(cfg, provider); get_and_set_item_meta_with_upload_file(cfg, provider);
// MOVED
get_and_set_item_meta2_with_upload_file(cfg, provider); get_and_set_item_meta2_with_upload_file(cfg, provider);
get_item_meta_fails_if_path_not_found(provider); get_item_meta_fails_if_path_not_found(provider);
get_item_meta2_fails_if_path_not_found(provider); get_item_meta2_fails_if_path_not_found(provider);