Add `user_profile_store` function to `Node`
Add a `user_profile_store` function to `Node` in the testing framework,
this function calls `user_profile_store` on the node's `biome_subsystem`
and returns the `UserProfileStore`
@@ -27,6 +27,7 @@ use splinter::admin::client::event::{
};
use splinter::admin::client::{AdminServiceClient, ReqwestAdminServiceClient};
use splinter::biome::client::{BiomeClient, ReqwestBiomeClient};
+use splinter::biome::UserProfileStore;
use splinter::error::InternalError;
use splinter::peer::PeerManagerConnector;
use splinter::registry::{
@@ -161,6 +162,10 @@ impl Node {
))
}
+ pub fn user_profile_store(&self) -> &dyn UserProfileStore {
+ self.biome_subsystem.user_profile_store()
+ }
+
pub fn stop(mut self) -> Result<RunnableNode, InternalError> {
self.signal_shutdown();
