sttp.tapir.server.tests

Members list

Concise view

Type members

Classlikes

class AllServerTests[F[_], OPTIONS, ROUTE](createServerTest: CreateServerTest[F, Any, OPTIONS, ROUTE], serverInterpreter: TestServerInterpreter[F, Any, OPTIONS, ROUTE], backend: SttpBackend[IO, Fs2Streams[IO] & WebSockets], security: Boolean, basic: Boolean, contentNegotiation: Boolean, file: Boolean, mapping: Boolean, metrics: Boolean, multipart: Boolean, oneOf: Boolean, reject: Boolean, staticContent: Boolean, validation: Boolean, oneOfBody: Boolean, cors: Boolean, options: Boolean)(implicit m: MonadError[F])

All server tests in default configurations, except for streaming (which require a streams object) and web socket ones (which need to be subclassed). If a custom configuration is needed, exclude the tests here, and add separately.

All server tests in default configurations, except for streaming (which require a streams object) and web socket ones (which need to be subclassed). If a custom configuration is needed, exclude the tests here, and add separately.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
trait CreateServerStubTest[F[_], OPTIONS]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
trait CreateServerTest[F[_], +R, OPTIONS, ROUTE]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class DefaultCreateServerTest[F, R, OPTIONS, ROUTE]
class DefaultCreateServerTest[F[_], +R, OPTIONS, ROUTE](backend: SttpBackend[IO, Fs2Streams[IO] & WebSockets], interpreter: TestServerInterpreter[F, R, OPTIONS, ROUTE]) extends CreateServerTest[F, R, OPTIONS, ROUTE] with StrictLogging

Attributes

Graph
Supertypes
trait StrictLogging
trait CreateServerTest[F, R, OPTIONS, ROUTE]
class Object
trait Matchable
class Any
class ServerBasicTests[F[_], OPTIONS, ROUTE](createServerTest: CreateServerTest[F, Any, OPTIONS, ROUTE], serverInterpreter: TestServerInterpreter[F, Any, OPTIONS, ROUTE], multipleValueHeaderSupport: Boolean, inputStreamSupport: Boolean, supportsUrlEncodedPathSegments: Boolean, supportsMultipleSetCookieHeaders: Boolean, invulnerableToUnsanitizedHeaders: Boolean)(implicit m: MonadError[F])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
class ServerCORSTests[F[_], OPTIONS, ROUTE](createServerTest: CreateServerTest[F, Any, OPTIONS, ROUTE])(implicit m: MonadError[F])

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class ServerContentNegotiationTests[F[_], OPTIONS, ROUTE](createServerTest: CreateServerTest[F, Any, OPTIONS, ROUTE])(implicit m: MonadError[F])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
class ServerFileTests[F[_], OPTIONS, ROUTE](createServerTest: CreateServerTest[F, Any, OPTIONS, ROUTE])(implicit m: MonadError[F])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
class ServerMappingTests[F[_], OPTIONS, ROUTE](createServerTest: CreateServerTest[F, Any, OPTIONS, ROUTE])(implicit m: MonadError[F])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
class ServerMetricsTest[F[_], OPTIONS, ROUTE](createServerTest: CreateServerTest[F, Any, OPTIONS, ROUTE])(implicit m: MonadError[F])

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class ServerMultipartTests[F[_], OPTIONS, ROUTE](createServerTest: CreateServerTest[F, Any, OPTIONS, ROUTE], partContentTypeHeaderSupport: Boolean, partOtherHeaderSupport: Boolean)(implicit m: MonadError[F])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
class ServerOneOfBodyTests[F[_], OPTIONS, ROUTE](createServerTest: CreateServerTest[F, Any, OPTIONS, ROUTE])(implicit m: MonadError[F])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
class ServerOneOfTests[F[_], OPTIONS, ROUTE](createServerTest: CreateServerTest[F, Any, OPTIONS, ROUTE])(implicit m: MonadError[F])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
class ServerOptionsTests[F[_], OPTIONS, ROUTE](createServerTest: CreateServerTest[F, Any, OPTIONS, ROUTE], serverInterpreter: TestServerInterpreter[F, Any, OPTIONS, ROUTE])(implicit m: MonadError[F])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
class ServerRejectTests[F[_], OPTIONS, ROUTE](createServerTest: CreateServerTest[F, Any, OPTIONS, ROUTE], serverInterpreter: TestServerInterpreter[F, Any, OPTIONS, ROUTE])(implicit m: MonadError[F])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
class ServerSecurityTests[F[_], S, OPTIONS, ROUTE](createServerTest: CreateServerTest[F, S, OPTIONS, ROUTE])(implicit m: MonadError[F]) extends Matchers

Attributes

Graph
Supertypes
trait Matchers
trait Explicitly
trait MatcherWords
trait ShouldVerb
trait Tolerance
trait Assertions
trait TripleEquals
trait TripleEqualsSupport
class Object
trait Matchable
class Any
class ServerStaticContentTests[F[_], OPTIONS, ROUTE](serverInterpreter: TestServerInterpreter[F, Any, OPTIONS, ROUTE], backend: SttpBackend[IO, Fs2Streams[IO] & WebSockets], supportSettingContentLength: Boolean)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
class ServerStreamingTests[F[_], S, OPTIONS, ROUTE](createServerTest: CreateServerTest[F, S, OPTIONS, ROUTE], streams: Streams[S])(implicit m: MonadError[F])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
abstract class ServerStubStreamingTest[F[_], S, OPTIONS](createStubServerTest: CreateServerStubTest[F, OPTIONS], streams: Streams[S]) extends AsyncFlatSpec with Matchers with BeforeAndAfterAll

Attributes

Graph
Supertypes
trait BeforeAndAfterAll
trait SuiteMixin
trait Matchers
trait Explicitly
trait MatcherWords
trait Tolerance
class AsyncFlatSpec
trait AsyncFlatSpecLike
trait Documenting
trait Alerting
trait Notifying
trait Informing
trait CanVerb
trait MustVerb
trait ShouldVerb
trait AsyncTestRegistration
trait AsyncTestSuite
trait CompleteLastly
trait RecoverMethods
trait Suite
trait Serializable
trait Assertions
trait TripleEquals
trait TripleEqualsSupport
class Object
trait Matchable
class Any
class ServerStubTest[F[_], R, OPTIONS](createStubServerTest: CreateServerStubTest[F, OPTIONS]) extends AsyncFlatSpec with Matchers with BeforeAndAfterAll

Attributes

Graph
Supertypes
trait BeforeAndAfterAll
trait SuiteMixin
trait Matchers
trait Explicitly
trait MatcherWords
trait Tolerance
class AsyncFlatSpec
trait AsyncFlatSpecLike
trait Documenting
trait Alerting
trait Notifying
trait Informing
trait CanVerb
trait MustVerb
trait ShouldVerb
trait AsyncTestRegistration
trait AsyncTestSuite
trait CompleteLastly
trait RecoverMethods
trait Suite
trait Serializable
trait Assertions
trait TripleEquals
trait TripleEqualsSupport
class Object
trait Matchable
class Any
class ServerValidationTests[F[_], OPTIONS, ROUTE](createServerTest: CreateServerTest[F, Any, OPTIONS, ROUTE])(implicit m: MonadError[F])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
abstract class ServerWebSocketTests[F[_], S <: Streams[S], OPTIONS, ROUTE](createServerTest: CreateServerTest[F, S & WebSockets, OPTIONS, ROUTE], val streams: S)(implicit m: MonadError[F])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
trait TestServerInterpreter[F[_], +R, OPTIONS, ROUTE]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def pureResult[F[_] : MonadError, T](t: T): F[T]
def suspendResult[F[_] : MonadError, T](t: => T): F[T]

Concrete fields

val backendResource: Resource[IO, SttpBackend[IO, Fs2Streams[IO] & WebSockets]]
val basicStringRequest: PartialRequest[String, Any]