JourneyConfiguration

uk.gov.hmrc.performance.conf.JourneyConfiguration

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

def checkJourneyName(id: String): Any
def definitions(labels: Set[String]): Seq[JourneyDefinition]

Maps the journeys defined in journeys.conf to a Seq of uk.gov.hmrc.performance.conf.JourneyDefinition and returns the journeys to be executed based on the provided labels. The labels field is defined in application.conf.

Maps the journeys defined in journeys.conf to a Seq of uk.gov.hmrc.performance.conf.JourneyDefinition and returns the journeys to be executed based on the provided labels. The labels field is defined in application.conf.

Value parameters

labels

An optional parameter with a Set of labels for which the journeys should be executed.

Attributes

Returns

Seq of JourneyDefinition to be executed for the provided labels.

def generateDescription(journeyDescription: String, runIf: Set[String], skipIf: Set[String]): String

Generates a new description for a journey based on the description, run-if, and skip-if fields in journeys.conf

Generates a new description for a journey based on the description, run-if, and skip-if fields in journeys.conf

Example:

For the below example journey in journey.conf:

hello-world-4 = {
 description = "Hello world journey 4"
 load = 0.1
 feeder = data/helloworld.csv
 parts = [
   home
 ]
 run-if = ["label-B"]
 skip-if = ["label-A", "label-C"]
}

the generated description would be:

Hello world journey 4 - runIf [label-B] and skipIf [label-A,label-C]

Value parameters

journeyDescription

Value from the description field of a journey in journeys.conf

runIf

Labels included in run-if field of a journey in journeys.conf

skipIf

Labels included in skip-if field of a journey in journeys.conf

Attributes

Returns

A new description based on the description and the labels

Inherited methods

def hasProperty(property: String): Boolean

Attributes

Inherited from:
Configuration
def keys(property: String): List[String]

Attributes

Inherited from:
Configuration
def readProperty(property: String, default: String): String

Attributes

Inherited from:
Configuration
def readProperty(property: String): String

Attributes

Inherited from:
Configuration
def readPropertyBooleanOption(property: String): Option[Boolean]

Attributes

Inherited from:
Configuration
def readPropertyList(property: String): List[String]

Attributes

Inherited from:
Configuration
def readPropertyOption(property: String): Option[String]

Attributes

Inherited from:
Configuration
def readPropertySet(property: String): Set[String]

Attributes

Inherited from:
Configuration
def readPropertySetOrEmpty(property: String): Set[String]

Attributes

Inherited from:
Configuration

Concrete fields

val allJourneys: List[String]
val journeysAvailable: List[String]

Inherited fields

lazy val applicationConfig: Config

Attributes

Inherited from:
Configuration
lazy val runLocal: Boolean

Attributes

Inherited from:
Configuration