Struct mx_tester::Config[][src]

pub struct Config {
    pub name: String,
    pub modules: Vec<ModuleConfig>,
    pub homeserver: HomeserverConfig,
    pub up: Option<UpScript>,
    pub run: Option<Script>,
    pub down: Option<DownScript>,
    pub docker: DockerConfig,
    pub users: Vec<User>,
    pub synapse: SynapseVersion,
}
Expand description

The contents of a mx-tester.yaml

Fields

name: String

A name for this test.

modules: Vec<ModuleConfig>

Modules to install in Synapse.

homeserver: HomeserverConfig

Values to pass through into the homeserver.yaml for this synapse.

up: Option<UpScript>

A script to run at the end of the setup phase.

run: Option<Script>

The testing script to run.

down: Option<DownScript>

A script to run at the start of the teardown phase.

docker: DockerConfig

Configuration for the docker network.

users: Vec<User>

Any users to register and make available

synapse: SynapseVersion

The version of Synapse to use

Implementations

Create a builder for building Config. On the builder, call .name(...), .modules(...)(optional), .homeserver(...)(optional), .up(...)(optional), .run(...)(optional), .down(...)(optional), .docker(...)(optional), .users(...)(optional), .synapse(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of Config.

Create a map containing the environment variables that are common to all scripts.

Callers may add additional variables that are specific to a given script step.

Patch the homeserver.yaml at the given path (usually one that has been generated by synapse) with the properties in this struct (which will usually have been provided from mx-tester.yaml)

The directory in which we’re putting all data for this test.

Cleaned up upon test start.

The directory in which we’re putting synapse data for this test.

It will contain, among other things, the logs for the test.

A tag for the Docker image we’re creating/using.

The name for the container we’re using to setup Synapse.

The name for the container we’re using to actually run Synapse.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more