Expand description
PDK Integration Testing Framework
Framework for writing non-blocking integration tests based on Docker containers. It provides utilities for managing test environments, services and containers in a controlled and isolated way.
This library provides testing functionality with support for:
- Docker container management and orchestration
- Predefined test services (Flex Gateway, HTTP mocks, gRPC services)
- Network port management and visibility control
- Test composite builders for complex scenarios
- Error handling for test failures and configuration issues
§Primary types
TestComposite: main test environment orchestratorTestCompositeBuilder: builder for configuring test environmentsTestError: error type for test failures and configuration issuesservices::flex::FlexConfig: Flex Gateway service configurationservices::flex::ApiConfig: API configuration for Flex Gatewayservices::flex::PolicyConfig: policy configuration for Flex Gatewayservices::httpmock::HttpMockConfig: HTTPMock service configurationservices::httpbin::HttpBinConfig: HTTPBin testing service configurationservices::grpcbin::GrpcBinConfig: GrpcBin gRPC testing service configurationservices::gripmock::GripMockConfig: GripMock gRPC mock service configuration
Re-exports§
pub use error::TestError;
Modules§
- error
- Test error handling
- port
- Docker network port management
- services
- PDK Integration Test Framework predefined services.
Structs§
- Test
Composite - Main test environment orchestrator for integration tests.
- Test
Composite Builder - Builder for configuring and creating test environments.
Attribute Macros§
- pdk_
test - Use this macro to annotate your test functions as PDK tests.