ManualRestateRunner

open class ManualRestateRunner : 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 run and to stop it use stop.

Use buildManualRunner to build an instance of this class.

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

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 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 run()
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.