RestateRunner

open class RestateRunner : AutoCloseable, ExtensionContext.Store.CloseableResource

Manual runner for the Restate test infra, starting the Restate server container together with the provided services and automatically registering them. To start the infra use start and to stop it use stop.

If you use JUnit 5, we suggest using RestateTest instead.

Types

Link copied to clipboard
open class Builder
Builder for RestateRunner.

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun close()
Like stop.
Link copied to clipboard
open fun from(endpoint: Endpoint): RestateRunner.Builder
Create from Endpoint.
Link copied to clipboard
open fun getAdminUrl(): URL
Get restate admin url to send HTTP requests to the admin API.
Link copied to clipboard
open fun getRestateContainer(): GenericContainer<out Any>
Get the restate container.
Link copied to clipboard
open fun getRestateUrl(): URL
Get restate ingress url to send HTTP/gRPC requests to services.
Link copied to clipboard
open fun start()
Run restate, run the embedded service endpoint server, and register the services.
Link copied to clipboard
open fun stop()
Stop restate and the embedded service endpoint server.