[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-16 14:59:43 -05:00
parent b73cba45d6
commit db3c50538a

View File

@@ -753,7 +753,6 @@ static void get_file_size(i_provider &provider) {
auto &file = test::create_random_file(128U);
auto api_path =
fmt::format("/{}", utils::path::strip_to_file_name(file.get_path()));
create_file(provider, api_path);
stop_type stop_requested{false};
auto res = provider.upload_file(api_path, file.get_path(), stop_requested);
@@ -812,7 +811,6 @@ static void get_filesystem_item(i_provider &provider) {
auto &src = test::create_random_file(128U);
auto api_path =
fmt::format("/{}", utils::path::strip_to_file_name(src.get_path()));
create_file(provider, api_path);
stop_type stop_requested{false};
auto res = provider.upload_file(api_path, src.get_path(), stop_requested);
@@ -885,8 +883,6 @@ static void get_filesystem_item_from_source_path(const app_config &cfg,
fmt::format("/{}", utils::path::strip_to_file_name(file.get_path()));
source_path = file.get_path();
create_file(provider, api_path);
EXPECT_EQ(
api_error::success,
provider.set_item_meta(api_path, {
@@ -911,7 +907,7 @@ static void get_filesystem_item_from_source_path(const app_config &cfg,
}
static void get_filesystem_item_from_source_path_fails_if_file_is_not_found(
app_config &cfg, i_provider &provider) {
i_provider &provider) {
fmt::println("testing|{}|{}",
app_config::get_provider_name(provider.get_provider_type()),
__FUNCTION__);