feat: publish emulator image directly from testing library (#196)
Create emulator image from the python testing library. The image tag will be the aws-durable-sdk-python-testing version with v prefixing it, e.g. v1.1.1.
Co-authored-by: hsilan hsilan@amazon.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
AWS Durable Execution Testing SDK for Python
Table of Contents
Installation
Overview
Use the AWS Durable Execution Testing SDK for Python to test your Python durable functions locally.
The test framework contains a local runner, so you can run and test your durable function locally before you deploy it.
Quick Start
A durable function under test
Your test code
Architecture
Event Flow
DurableFunctionTestResult.Major Components
Core Execution Flow
Service Client Integration
DurableExecutionInvocationInputWithClientCheckpoint Processing Pipeline
Execution status changes (Observer Pattern)
ExecutionObserverto handle completion eventsComponent Relationships
1. DurableTestRunner → Executor → Execution
2. Service Client Injection
DurableExecutionInvocationInputWithClient3. CheckpointProcessor → Individual Validators → Individual Processors
OperationUpdateintoOperation4. Observer Pattern Flow
The observer pattern enables loose coupling between checkpoint processing and execution management:
Documentation
Error Handling
The testing framework implements AWS-compliant error responses that match the exact format expected by boto3 and AWS services. For detailed information about error response formats, exception types, and troubleshooting, see:
Key features:
Developers
Please see CONTRIBUTING.md. It contains the testing guide, sample commands and instructions for how to contribute to this package.
tldr; use
hatchand it will manage virtual envs and dependencies for you, so you don’t have to do it manually.License
This project is licensed under the Apache-2.0 License.