Add support for bucket name in Sia provider #16
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
2024-09-28 09:52:57 -05:00
parent 692c92b0df
commit aa92f3d401
5 changed files with 44 additions and 23 deletions

View File

@@ -98,6 +98,9 @@ const auto DEFAULT_SIA_CONFIG = "{\n"
" },\n"
" \"RetryReadCount\": 6,\n"
" \"RingBufferFileSize\": 512,\n"
" \"SiaConfig\": {\n"
" \"Bucket\": \"default\"\n"
" },\n"
" \"Version\": " +
std::to_string(REPERTORY_CONFIG_VERSION) +
"\n"
@@ -815,13 +818,4 @@ TEST_F(config_test, retry_read_count_minimum_value) {
EXPECT_EQ(2, config.get_retry_read_count());
}
}
TEST_F(config_test, cache_timeout_seconds_minimum_value) {
{
app_config config(provider_type::s3, s3_directory);
EXPECT_FALSE(
config.set_value_by_name("S3Config.CacheTimeoutSeconds", "1").empty());
EXPECT_EQ(std::uint16_t(5U), config.get_s3_config().cache_timeout_secs);
}
}
} // namespace repertory