1.4 KiB
Contribution guide
How to add new shared tests
Simply add a new tmt plan using plan.import, under a new folder. If the
plan is still under development, consider gating it by the deployment context
plan:
import:
url: ...
name: ...
enable: false
adjust:
when: deployment == stg
Designing the actual plan
The following are a few requirements and guidelines we recommend for the tmt plan implementations.
Specify the provision step
This is REQUIRED. Testing-farm is called without a compose in order to
allow plans that use a custom provision step, e.g. to run under a specific
container.
Control the tests via context and environment variables
The context and environment variables are defined in TMT Integration
page. Consult that page for the expected variables and their meanings. These
variables define the test environment and the package to be tested.
Document any additional variables the plan may use
You are free to define any additional context and environment variables as
long as there is a default behavior if these were not provided.
Use tests as steps for the actual test
In order to make the plan results more navigable, consider splitting the test execution into multiple ordered tests as individual steps.