kratix-test pipeline
A command for testing Kratix Promise Pipelines
Description
A command for testing Kratix Promise Pipelines This command will run your Pipeline Stages in order and validate that the output generated by the Pipeline containers matches the contents of the --expected-output-dir.
Usage
test pipeline LIFECYCLE/ACTION/PIPELINE-NAME [flags]
Examples
# LIFECYCLE is one of: promise, resource
# ACTION is one of: configure, delete
# test pipeline 'configure-step-one' of the Resource Configure workflow
kratix test pipeline resource/configure/configure-step-one --input-dir input-directory/ --expected-output-dir expected-outputs/
Flags
--build Build the images for the pipeline containers before running the test
--build-args string Extra build arguments to pass to the container run command
--buildx Run the test containers using Buildx
-d, --dir string Directory to read the Promise from (default ".")
-e, --engine string The container engine to use when running the test containers (default "docker")
--env strings The environment variables to provide to the test container e.g. DRY_RUN=true,ENVIRONMENT=dev
-o, --expected-output-dir string The directory containing the expected output files to compare to the generated output
-h, --help help for pipeline
See Also
- kratix test: The kratix test CLI command
