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

This commit is contained in:
2025-09-17 14:09:02 -05:00
parent 10d030de48
commit 73595a17b7

View File

@@ -1386,13 +1386,13 @@ static void remove_item_meta(i_provider &provider) {
app_config::get_provider_name(provider.get_provider_type()),
__FUNCTION__);
std::string api_path{"/rim_custom_ok.txt"};
if (provider.get_provider_type() == provider_type::encrypt) {
EXPECT_EQ(api_error::success,
provider.remove_item_meta(api_path, "user.custom"));
return;
}
std::string api_path{"/rim_custom_ok.txt"};
create_file(provider, api_path);
EXPECT_EQ(api_error::success,
@@ -1433,14 +1433,10 @@ static void remove_item_meta_restricted_names_fail(i_provider &provider) {
app_config::get_provider_name(provider.get_provider_type()),
__FUNCTION__);
if (provider.get_provider_type() == provider_type::encrypt) {
EXPECT_EQ(api_error::success,
provider.remove_item_meta(api_path, "user.custom"));
return;
}
std::string api_path{"/rim_restricted.txt"};
if (provider.get_provider_type() != provider_type::encrypt) {
create_file(provider, api_path);
}
for (const auto &key : META_PERMANENT_NAMES) {
auto res = provider.remove_item_meta(api_path, std::string{key});