sttp.tapir.server.tests

Members list

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, maxContentLength: Option[Int])(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

Supertypes
class Object
trait Matchable
class Any
sealed trait Animal extends EnumEntry, Lowercase

Attributes

Companion
object
Supertypes
trait Lowercase
trait EnumEntry
class Object
trait Matchable
class Any
Known subtypes
object Cat.type
object Dog.type
object Animal extends Enum[Animal], TapirCodecEnumeratum

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
trait TapirCodecEnumeratum
trait Enum[Animal]
class Object
trait Matchable
class Any
Show all
Self type
Animal.type
trait CreateServerStubTest[F[_], OPTIONS]

Attributes

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

Attributes

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], StrictLogging

Attributes

Supertypes
trait StrictLogging
trait CreateServerTest[F, R, OPTIONS, ROUTE]
class Object
trait Matchable
class Any
sealed trait ErrorInfo

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class NotFound
case class NoContentData(msg: String) extends ErrorInfo

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ErrorInfo
class Object
trait Matchable
class Any
Show all
case class NotFound(what: String) extends ErrorInfo

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ErrorInfo
class Object
trait Matchable
class Any
Show all
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, maxContentLength: Option[Int])(implicit m: MonadError[F])

Attributes

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
Supertypes
class Object
trait Matchable
class Any

Attributes

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

Attributes

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

Attributes

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

Attributes

Supertypes
class Object
trait Matchable
class Any
class ServerFilesTests[F[_], OPTIONS, ROUTE](serverInterpreter: TestServerInterpreter[F, Any, OPTIONS, ROUTE], backend: SttpBackend[IO, Fs2Streams[IO] & WebSockets], supportSettingContentLength: Boolean)

Attributes

Supertypes
class Object
trait Matchable
class Any
class ServerGracefulShutdownTests[F[_], OPTIONS, ROUTE](createServerTest: CreateServerTest[F, Any, OPTIONS, ROUTE], sleeper: Sleeper[F])(implicit m: MonadError[F]) extends EitherValues

Attributes

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

Attributes

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
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
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

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

Attributes

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

Attributes

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

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

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

Supertypes
trait Matchers
trait Explicitly
trait MatcherWords
trait ShouldVerb
trait Tolerance
trait Assertions
trait TripleEquals
trait TripleEqualsSupport
class Object
trait Matchable
class Any
Show all
class ServerStreamingTests[F[_], S, OPTIONS, ROUTE](createServerTest: CreateServerTest[F, S, OPTIONS, ROUTE], maxLengthSupported: Boolean)(implicit m: MonadError[F])

Attributes

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

Attributes

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
Show all
class ServerStubTest[F[_], R, OPTIONS](createStubServerTest: CreateServerStubTest[F, OPTIONS]) extends AsyncFlatSpec, Matchers, BeforeAndAfterAll

Attributes

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
Show all
class ServerValidationTests[F[_], OPTIONS, ROUTE](createServerTest: CreateServerTest[F, Any, OPTIONS, ROUTE])(implicit m: MonadError[F])

Attributes

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

Supertypes
class Object
trait Matchable
class Any
trait Sleeper[F[_]]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Sleeper

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Sleeper.type
trait TestServerInterpreter[F[_], +R, OPTIONS, ROUTE]

Attributes

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]