From acfe6925286eb14ef3623827baf8c929f11c9e2e Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Wed, 17 Sep 2025 13:46:00 -0500 Subject: [PATCH] [unit test] Complete all providers unit tests #12 --- repertory/librepertory/src/db/impl/rdb_meta_db.cpp | 2 +- repertory/librepertory/src/db/impl/sqlite_meta_db.cpp | 2 +- repertory/repertory_test/src/providers_test.cpp | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/repertory/librepertory/src/db/impl/rdb_meta_db.cpp b/repertory/librepertory/src/db/impl/rdb_meta_db.cpp index 00b724d7..30df837c 100644 --- a/repertory/librepertory/src/db/impl/rdb_meta_db.cpp +++ b/repertory/librepertory/src/db/impl/rdb_meta_db.cpp @@ -346,7 +346,7 @@ auto rdb_meta_db::remove_item_meta(const std::string &api_path, const std::string &key) -> api_error { REPERTORY_USES_FUNCTION_NAME(); - if (META_PERMANENT_NAMES.contains(key)) { + if (std::ranges::contains(META_PERMANENT_NAMES, key)) { utils::error::raise_api_path_error( function_name, api_path, fmt::format("failed to remove item meta-key is restricted|key|{}", diff --git a/repertory/librepertory/src/db/impl/sqlite_meta_db.cpp b/repertory/librepertory/src/db/impl/sqlite_meta_db.cpp index 2d4e137a..7aff0823 100644 --- a/repertory/librepertory/src/db/impl/sqlite_meta_db.cpp +++ b/repertory/librepertory/src/db/impl/sqlite_meta_db.cpp @@ -307,7 +307,7 @@ auto sqlite_meta_db::remove_item_meta(const std::string &api_path, const std::string &key) -> api_error { REPERTORY_USES_FUNCTION_NAME(); - if (META_PERMANENT_NAMES.contains(key)) { + if (std::ranges::contains(META_PERMANENT_NAMES, key)) { utils::error::raise_api_path_error( function_name, api_path, fmt::format("failed to remove item meta-key is restricted|key|{}", diff --git a/repertory/repertory_test/src/providers_test.cpp b/repertory/repertory_test/src/providers_test.cpp index 65a32050..e02b1a38 100644 --- a/repertory/repertory_test/src/providers_test.cpp +++ b/repertory/repertory_test/src/providers_test.cpp @@ -1458,7 +1458,9 @@ static void run_tests(const app_config &cfg, i_provider &provider) { // MOVED get_file_list(cfg, provider); + // MOVED get_and_set_item_meta_with_upload_file(cfg, provider); + // MOVED get_and_set_item_meta2_with_upload_file(cfg, provider); get_item_meta_fails_if_path_not_found(provider); get_item_meta2_fails_if_path_not_found(provider);