Package-level declarations

Types

Link copied to clipboard
data class KeyValuePair<out K, out V>(val key: K, val value: V)

Immutable key-value pair.

Link copied to clipboard
data class SecurityValues(val queryParams: Map<String, Any> = emptyMap(), val headers: List<KeyValuePair<String, Any>> = emptyList(), val cookie: List<KeyValuePair<String, Any>> = emptyList(), val other: Map<String, Any> = emptyMap())

Represents security-related values used in a request.

Link copied to clipboard
data class TestCase(val name: String, val method: String, val path: String, val queryParams: Map<String, Any> = emptyMap(), val pathParams: Map<String, Any> = emptyMap(), val headers: List<KeyValuePair<String, Any>> = emptyList(), val cookie: List<KeyValuePair<String, Any>> = emptyList(), val securityValues: SecurityValues = SecurityValues(), val body: Any? = null, val expectedBody: Any? = null, val needToComplete: Boolean = false, val expectedStatusCode: Int = 0, val rule: String? = null)

Test case model describing request details, expectations, and provenance.

Link copied to clipboard
data class TestSuite(val path: String, val method: String, val operationName: String? = null, val testCases: List<TestCase> = emptyList())

Collection of test cases for a single API operation.

Functions

Link copied to clipboard
infix fun <K, V> K.with(value: V): KeyValuePair<K, V>

Infix helper to create a KeyValuePair from the receiver and the given value.