[unit test] Complete all providers unit tests #12
This commit is contained in:
@@ -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|{}",
|
||||
|
@@ -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|{}",
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user