Struct testdrive::Config[][src]

pub struct Config {
Show 18 fields pub kafka_addr: String, pub kafka_opts: Vec<(String, String)>, pub schema_registry_url: Url, pub cert_path: Option<String>, pub cert_pass: Option<String>, pub ccsr_username: Option<String>, pub ccsr_password: Option<String>, pub aws_account: String, pub aws_config: AwsConfig, pub materialized_pgconfig: Config, pub materialized_catalog_path: Option<PathBuf>, pub reset: bool, pub default_timeout: Duration, pub initial_backoff: Duration, pub backoff_factor: f64, pub arg_vars: BTreeMap<String, String>, pub seed: Option<u32>, pub temp_dir: Option<String>,
}
Expand description

User-settable configuration parameters.

Fields

kafka_addr: String

The address of the Kafka broker that testdrive will interact with.

kafka_opts: Vec<(String, String)>

Arbitrary rdkafka options for testdrive to use when connecting to the Kafka broker.

schema_registry_url: Url

The URL of the schema registry that testdrive will connect to.

cert_path: Option<String>

An optional path to a TLS certificate that testdrive will present when performing client authentication.

cert_pass: Option<String>

An optional password for the TLS certificate.

ccsr_username: Option<String>

An optional username for the basic auth for the Confluent Schema Registry

ccsr_password: Option<String>

An optional password for the basic auth for the Confluent Schema Registry

aws_account: String

The account for testdrive to use when connecting to AWS.

aws_config: AwsConfig

The configuration for testdrive to use when connecting to AWS.

materialized_pgconfig: Config

The connection parameters for the materialized instance that testdrive will connect to.

materialized_catalog_path: Option<PathBuf>

An optional path to the catalog file for the materialized instance.

If present, testdrive will periodically verify that the on-disk catalog matches its expectations.

reset: bool

Whether to reset Materialized and AWS’s state at the start of each script.

default_timeout: Duration

The default timeout to use for any operation that is retried.

initial_backoff: Duration

Starting backoff value to use when retrying

backoff_factor: f64

Backoff factor to use when retrying

arg_vars: BTreeMap<String, String>

Arguments for the testdrive script to expose as variables.

Entries will be provided to testrive scripts as the variable named arg.KEY

seed: Option<u32>

A random number to distinguish each run of a testdrive script.

temp_dir: Option<String>

Force the use of a specific temporary directory

Trait Implementations

Formats the value using the given formatter. 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

Converts self into T using Into<T>. Read more

Extract a subset of the possible types in a coproduct (or get the remaining possibilities) Read more

Causes self to use its Binary implementation when Debug-formatted. Read more

Causes self to use its Display implementation when Debug-formatted. Read more

Causes self to use its LowerExp implementation when Debug-formatted. Read more

Causes self to use its LowerHex implementation when Debug-formatted. Read more

Causes self to use its Octal implementation when Debug-formatted. Read more

Causes self to use its Pointer implementation when Debug-formatted. Read more

Causes self to use its UpperExp implementation when Debug-formatted. Read more

Causes self to use its UpperHex implementation when Debug-formatted. Read more

Formats each item in a sequence. 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.

Performs the indexed conversion.

Pipes by value. This is generally the method you want to use. Read more

Borrows self and passes that borrow into the pipe function. Read more

Mutably borrows self and passes that borrow into the pipe function. Read more

Borrows self, then passes self.borrow() into the pipe function. Read more

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more

Borrows self, then passes self.as_ref() into the pipe function.

Mutably borrows self, then passes self.as_mut() into the pipe function. Read more

Borrows self, then passes self.deref() into the pipe function.

Mutably borrows self, then passes self.deref_mut() into the pipe function. Read more

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

Consumes the current HList and returns an HList with the requested shape. Read more

Immutable access to a value. Read more

Mutable access to a value. Read more

Immutable access to the Borrow<B> of a value. Read more

Mutable access to the BorrowMut<B> of a value. Read more

Immutable access to the AsRef<R> view of a value. Read more

Mutable access to the AsMut<R> view of a value. Read more

Immutable access to the Deref::Target of a value. Read more

Mutable access to the Deref::Target of a value. Read more

Calls .tap() only in debug builds, and is erased in release builds.

Calls .tap_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref_mut() only in debug builds, and is erased in release builds. Read more

Attempts to convert self into T using TryInto<T>. Read more

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