Library Modulesoto-core 7.4.0SotoTestUtils
SotoTestUtils
import SotoTestUtils
Module information
- Declarations
- 87
- Symbols
- 93
import SotoTestUtils
func createAWSClient(credentialProvider: CredentialProviderFactory = .default, retryPolicy: RetryPolicyFactory = .noRetry, middlewares: AWSMiddlewareProtocol = TestEnvironment.middlewares, options: AWSClient.Options = .init(), httpClient: AWSHTTPClient = HTTPClient.shared, logger: Logger = TestEnvironment.logger) -> AWSClient
func createRandomBuffer(_ w: UInt, _ z: UInt, size: Int) -> [UInt8]
func createServiceConfig(region: Region? = nil, partition: AWSPartition = .aws, amzTarget: String? = nil, service: String = "test", signingName: String? = nil, serviceProtocol: ServiceProtocol = .restjson, apiVersion: String = "01-01-2001", endpoint: String? = nil, serviceEndpoints: [String : String] = [:], partitionEndpoints: [AWSPartition : (endpoint: String, region: Region)] = [:], variantEndpoints: [EndpointVariantType : AWSServiceConfig.EndpointVariant] = [:], errorType: AWSErrorType.Type? = nil, xmlNamespace: String? = nil, middlewares: AWSMiddlewareProtocol? = nil, timeout: TimeAmount? = nil, options: AWSServiceConfig.Options = []) -> AWSServiceConfig
func withTeardown<Value>(_ process: () async throws -> Value, teardown: () async -> Void) async throws -> Value
Run closure and then run teardown closure once closure has either returned or throw an error
final class AWSTestServer
Test server for AWSClient. Input and Output shapes are defined by process function
@propertyWrapper struct EnvironmentVariable<Value> where Value : LosslessStringConvertible
enum TestEnvironment
Provide various test environment variables
import CSotoExpat
import INIParser
import SotoCore
import SotoSignerV4
import SotoXML