SimulationHelper

camundala.simulation.custom.SimulationHelper

Attributes

Graph
Supertypes
trait Logging
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

protected def handleNon2xxResponse(httpStatus: StatusCode, body: Object, curl: String)(using data: ScenarioData): ScenarioData
protected def runRequest(request: Request[Either[String, String], Any], debugMsg: String)(handleBody: (Json, ScenarioData) => ResultType)(using data: ScenarioData): ResultType

Inherited methods

def checkOForCollection(overrides: Seq[TestOverride], result: Seq[CamundaVariable | Map[String, CamundaVariable]]): Boolean

Attributes

Inherited from:
ResultChecker
def checkProps(withOverrides: WithTestOverrides[_], result: Seq[CamundaProperty]): Boolean

Attributes

Inherited from:
ResultChecker
def debug(msg: String): LogEntry

Attributes

Inherited from:
Logging
def error(msg: String): LogEntry

Attributes

Inherited from:
Logging
def info(msg: String): LogEntry

Attributes

Inherited from:
Logging
def warn(msg: String): LogEntry

Attributes

Inherited from:
Logging

Concrete fields

lazy val backend: SttpBackend[Identity, Any]
lazy val cockpitUrl: String

Extensions

Extensions

extension (request: RequestT[Empty, Either[String, String], Any])(request: RequestT[Empty, Either[String, String], Any])
def auth(): RequestT[Empty, Either[String, String], Any]
extension (request: Request[Either[String, String], Any])(request: Request[Either[String, String], Any])
def extractBody()(using ScenarioData): Either[ScenarioData, Json]
extension (step: ScenarioOrStep)(step: ScenarioOrStep)
protected def extractIncidentMsg(body: Json)(data: ScenarioData): Either[ScenarioData, (Option[String], String, String)]
protected def handleIncident(rootIncidentId: Option[String])(data: ScenarioData)(handleBody: (Json, ScenarioData) => ResultType): ResultType
protected def tryOrFail(funct: ScenarioData => ResultType)(using data: ScenarioData): ResultType
protected def waitFor(seconds: Int)(using data: ScenarioData): Either[ScenarioData, ScenarioData]

Inherited extensions

extension (logs: Seq[LogEntry])(logs: Seq[LogEntry])
def filter(logLevel: LogLevel): Seq[LogEntry]

Attributes

Inherited from:
Logging

Attributes

Inherited from:
Logging

Implicits

Implicits

implicit def config: SimulationConfig[RequestT[Empty, Either[String, String], Any]]

Inherited implicits

implicit def toLogSeq(logEntry: LogEntry): Seq[LogEntry]

Attributes

Inherited from:
Logging