Skip to main content

Module cloud_runner

Module cloud_runner 

Source
Expand description

Cloud test runner for testing deployed Lambda functions.

This module provides the CloudDurableTestRunner for testing durable functions deployed to AWS Lambda, enabling integration testing against real AWS infrastructure.

§Examples

use durable_execution_sdk_testing::{
    CloudDurableTestRunner, CloudTestRunnerConfig, ExecutionStatus,
};

#[tokio::test]
async fn test_deployed_workflow() {
    let runner = CloudDurableTestRunner::<String>::new("my-function-name")
        .await
        .unwrap();

    let result = runner.run("input".to_string()).await.unwrap();
    assert_eq!(result.get_status(), ExecutionStatus::Succeeded);
}

Structs§

CloudDurableTestRunner
Cloud test runner for testing deployed Lambda functions.
CloudTestRunnerConfig
Configuration for the cloud test runner.
LambdaHistoryApiClient
Real implementation of HistoryApiClient that calls the durable execution state API via a LambdaDurableServiceClient.