pub async fn execute_and_update<F, P>(&self, make_provider: impl Fn(ProviderConfig) -> F)
    where
        F: Future<Output = P>,
        P: ProvideCredentials,
    {
        let (connector, config) = self.provider_config().await;
        let provider = make_provider(config).await;
        let result = provider.provide_credentials().await;
        std::fs::write(
            self.base_dir.join("http-traffic-recorded.json"),
            serde_json::to_string(&connector.network_traffic()).unwrap(),
        )
        .unwrap();
        self.check_results(&result);
    }
/// Execute the test suite & record a new traffic log
///
/// A connector will be created with the factory, then request traffic will be recorded.
/// Response are generated from the existing http-traffic.json.
Execute the test suite & record a new traffic log
A connector will be created with the factory, then request traffic will be recorded.
Response are generated from the existing http-traffic.json.
Execute the test suite & record a new traffic log A connector will be created with the factory then request traffic will be recorded . Response are generated from the existing http - traffic . json .
pub async fn execute_and_update<F, P>(&self, make_provider: impl Fn(ProviderConfig) -> F)
    where
        F: Future<Output = P>,
        P: ProvideCredentials,
    {
        let (connector, config) = self.provider_config().await;
        let provider = make_provider(config).await;
        let result = provider.provide_credentials().await;
        std::fs::write(
            self.base_dir.join("http-traffic-recorded.json"),
            serde_json::to_string(&connector.network_traffic()).unwrap(),
        )
        .unwrap();
        self.check_results(&result);
    }
pub async fn execute_and_update < F , P > ( & self , make_provider : impl Fn ( ProviderConfig ) -> F ) where F : Future < Output = P > , P : ProvideCredentials , { let ( connector , config ) = self . provider_config ( ) . await ; let provider = make_provider ( config ) . await ; let result = provider . provide_credentials ( ) . await ; std :: fs :: write ( self . base_dir . join ( " " ) , serde_json :: to_string ( & connector . network_traffic ( ) ) . unwrap ( ) , ) . unwrap ( ) ; self . check_results ( & result ) ; }
Execute the test suite & record a new traffic log
A connector will be created with the factory, then request traffic will be recorded.
Execute the test suite & record a new traffic log A connector will be created with the factory then request traffic will be recorded .
&self
make_provider
impl Fn(ProviderConfig) -> F
&self
make_provider
impl Fn(ProviderConfig) -> F