use agent_common::secrets::SecretData; use resource_agent::clients::{ClientResult, InfoClient}; use resource_agent::BootstrapData; use testsys_model::{Configuration, SecretName}; /// Create an [`InfoClient`] that does nothing so that we can test without Kubernetes. pub(crate) struct MockInfoClient {} #[async_trait::async_trait] impl InfoClient for MockInfoClient { async fn new(_data: BootstrapData) -> ClientResult { Ok(Self {}) } async fn get_info(&self) -> ClientResult where Info: Configuration, { Ok(Info::default()) } async fn send_info(&self, _info: Info) -> ClientResult<()> where Info: Configuration, { Ok(()) } async fn get_secret(&self, _secret_name: &SecretName) -> ClientResult { Ok(SecretData::default()) } }