fix test data location
This commit is contained in:
parent
ccc6afdfa4
commit
1dda98e337
@ -346,7 +346,7 @@ static void get_api_path_from_source(const app_config &cfg,
|
||||
i_provider &provider) {
|
||||
if (provider.get_provider_type() == provider_type::encrypt) {
|
||||
const auto source_path =
|
||||
utils::path::combine(cfg.get_encrypt_config().path, {"test.txt"});
|
||||
utils::path::combine("./test_date/encrypt", {"test.txt"});
|
||||
|
||||
std::string api_path{};
|
||||
EXPECT_EQ(api_error::success,
|
||||
@ -397,7 +397,7 @@ static void get_directory_item_count(const app_config &cfg,
|
||||
EXPECT_EQ(std::size_t(0U), provider.get_directory_item_count("/not_found"));
|
||||
|
||||
const auto source_path =
|
||||
utils::path::combine(cfg.get_encrypt_config().path, {"sub10"});
|
||||
utils::path::combine("./test_data/encrypt", {"sub10"});
|
||||
|
||||
std::string api_path{};
|
||||
EXPECT_EQ(api_error::success,
|
||||
@ -636,7 +636,8 @@ TEST(providers, encrypt_provider) {
|
||||
{
|
||||
app_config cfg(provider_type::encrypt, config_path);
|
||||
|
||||
const auto encrypt_path = utils::path::combine(".", {"encrypt"});
|
||||
const auto encrypt_path =
|
||||
utils::path::combine("./test_data/encrypt", {"encrypt"});
|
||||
|
||||
EXPECT_STREQ(
|
||||
encrypt_path.c_str(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user