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