Skip to content

//tempest2-testing-internal/app.cash.tempest2.testing.internal

Package-level declarations

Types

Name Summary
DefaultTestDynamoDbClient [jvm]
class DefaultTestDynamoDbClient(val tables: List<TestTable>, port: Int) : AbstractIdleService, TestDynamoDbClient
Tag [jvm]
typealias Tag = Pair<String, Any?>
TestDynamoDbService [jvm]
class TestDynamoDbService(val client: TestDynamoDbClient, val server: TestDynamoDbServer) : AbstractIdleService
This Guava service spins up a DynamoDB server in tests. It shares the server across tests and keeps the server running until the process exits.

Functions

Name Summary
allocateRandomPort [jvm]
fun allocateRandomPort(): ServerSocket
buildAsyncDynamoDb [jvm]
fun buildAsyncDynamoDb(port: Int): DynamoDbAsyncClient
fun buildAsyncDynamoDb(host: String, port: Int): DynamoDbAsyncClient
buildAsyncDynamoDbStreams [jvm]
fun buildAsyncDynamoDbStreams(port: Int): DynamoDbStreamsAsyncClient
fun buildAsyncDynamoDbStreams(host: String, port: Int): DynamoDbStreamsAsyncClient
buildDynamoDb [jvm]
fun buildDynamoDb(port: Int): DynamoDbClient
fun buildDynamoDb(host: String, port: Int): DynamoDbClient
buildDynamoDbStreams [jvm]
fun buildDynamoDbStreams(port: Int): DynamoDbStreamsClient
fun buildDynamoDbStreams(host: String, port: Int): DynamoDbStreamsClient
createTable [jvm]
fun DynamoDbClient.createTable(table: TestTable)
debug [jvm]
fun KLogger.debug(vararg tags: Tag, message: () -> Any?)
fun KLogger.debug(th: Throwable, vararg tags: Tag, message: () -> Any?)
error [jvm]
fun KLogger.error(vararg tags: Tag, message: () -> Any?)
fun KLogger.error(th: Throwable, vararg tags: Tag, message: () -> Any?)
getLogger [jvm]
inline fun <T> getLogger(): KLogger
hostName [jvm]
fun hostName(port: Int): String
info [jvm]
fun KLogger.info(vararg tags: Tag, message: () -> Any?)
fun KLogger.info(th: Throwable, vararg tags: Tag, message: () -> Any?)
isServerListening [jvm]
fun isServerListening(host: String, port: Int): Boolean
log [jvm]
fun KLogger.log(level: Level, vararg tags: Tag, message: () -> Any?)
fun KLogger.log(level: Level, th: Throwable, vararg tags: Tag, message: () -> Any?)
pickRandomPort [jvm]
fun pickRandomPort(): Int
warn [jvm]
fun KLogger.warn(vararg tags: Tag, message: () -> Any?)
fun KLogger.warn(th: Throwable, vararg tags: Tag, message: () -> Any?)