This directory contains a set of integration test frameworks for vector which are executed by the
vdev tool.
Each directory contains two files:
- A
compose.yamlfile containing the instructions todocker composeorpodman composefor how to set up the containers in which to run the integrations, and - A
test.yamlfile that describes how to run the integration tests, including a matrix of software versions or other parameters over which the tests will be run.
You can list these tests with cargo vdev integration show[1], which provides a list of all the
integration test names followed by the extrapolated matrix of environments.
Each test can be run using one of the following:
- Run a single test environment from the above list with
cargo vdev integration test NAME ENV - Run all the environments for one test with
cargo vdev integration test NAME - Run all the steps individually using the
start,test, and thenstopsubcommands with the same parameters as above (see below). This allows developers to start the environment once and then repeat the testing step while working on a component.
cargo vdev integration start NAME ENVIRONMENT
cargo vdev integration test NAME [ENVIRONMENT]
cargo vdev integration stop NAME [ENVIRONMENT]If no environment is named for the test and stop subcommands, all active environments are used.
[1] Note that the vdev tool accepts abbreviated subcommand names, so this can also be run as
cargo vdev int show for brevity.