diff --git a/repertory/librepertory/include/app_config.hpp b/repertory/librepertory/include/app_config.hpp index 66ca576c..59c8aebc 100644 --- a/repertory/librepertory/include/app_config.hpp +++ b/repertory/librepertory/include/app_config.hpp @@ -30,26 +30,26 @@ namespace repertory { class app_config final { public: - [[nodiscard]] static auto default_agent_name(const provider_type &prov) - -> std::string; + [[nodiscard]] static auto + default_agent_name(const provider_type &prov) -> std::string; - [[nodiscard]] static auto default_api_port(const provider_type &prov) - -> std::uint16_t; + [[nodiscard]] static auto + default_api_port(const provider_type &prov) -> std::uint16_t; - [[nodiscard]] static auto default_data_directory(const provider_type &prov) - -> std::string; + [[nodiscard]] static auto + default_data_directory(const provider_type &prov) -> std::string; - [[nodiscard]] static auto default_remote_port(const provider_type &prov) - -> std::uint16_t; + [[nodiscard]] static auto + default_remote_port(const provider_type &prov) -> std::uint16_t; - [[nodiscard]] static auto default_rpc_port(const provider_type &prov) - -> std::uint16_t; + [[nodiscard]] static auto + default_rpc_port(const provider_type &prov) -> std::uint16_t; - [[nodiscard]] static auto get_provider_display_name(const provider_type &prov) - -> std::string; + [[nodiscard]] static auto + get_provider_display_name(const provider_type &prov) -> std::string; - [[nodiscard]] static auto get_provider_name(const provider_type &prov) - -> std::string; + [[nodiscard]] static auto + get_provider_name(const provider_type &prov) -> std::string; public: app_config(const provider_type &prov, std::string_view data_directory = ""); @@ -378,7 +378,13 @@ public: s3_config_ = std::move(s3); save(); } -#endif + + void set_sia_config(sia_config sia) { + config_changed_ = true; + sia_config_ = std::move(sia); + save(); + } +#endif // defined(PROJECT_TESTING) void set_is_remote_mount(bool is_remote_mount); diff --git a/repertory/repertory_test/include/fixtures/fuse_fixture.hpp b/repertory/repertory_test/include/fixtures/fuse_fixture.hpp index b407b9bd..6dd54e90 100644 --- a/repertory/repertory_test/include/fixtures/fuse_fixture.hpp +++ b/repertory/repertory_test/include/fixtures/fuse_fixture.hpp @@ -109,6 +109,7 @@ protected: config->set_enable_drive_events(true); config->set_event_level(event_level::trace); config->set_host_config(src_cfg.get_host_config()); + config->set_sia_config(src_cfg.get_sia_config()); } drive_args = std::vector({