Skip to content

Commit

Permalink
add TMT plans for all our notable use cases
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Jaburek <[email protected]>
  • Loading branch information
comps committed Apr 16, 2024
1 parent b2fcff5 commit 62a1421
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 4 deletions.
31 changes: 31 additions & 0 deletions docs/TESTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,34 @@ they don't install virtual machines.

These are things like `grep`-ing for specific strings (not) present in the built
content, syntax-checking Ansible playbooks, or verifying HTTP URLs.

# Test tags

These are some of the commonly-used tags amongst tests.

Note that we use tags to indicate properties of tests, not to categorize them
(think: "needs virtualization", not: "runs during release testing").

## `adhoc`

This indicates a test that is used as a "tool", in automation-assisted use
cases. It should not run automatically in regular "all tests" runs, as it may
need configuring via environment variables.

## `broken`

This is a perfectly valid working test, but the functionality it tests is
either completely broken, or under very active development, creating interface
incompatibilities, such as config directive changes, and frequently breaking
the test.

Despite this, we don't want to disable the test outright, as it is useful for
debugging and stabilizing the tested functionality.

## `destructive`

A destructive tests modifies the OS it runs on to the point where it is
unusable for further testing, typically by hardening it.

A test that just installs extra RPMs from the package manager, or enables
extra services, is not considered destructive.
1 change: 1 addition & 0 deletions hardening/image-builder/with-gui.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ duration: 2h
tag:
- NoProductization
- NoStabilization
- broken

/anssi_bp28_high:
environment+:
Expand Down
1 change: 1 addition & 0 deletions per-rule/main.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ tag:
tag:
- NoProductization
- NoStabilization
- adhoc
extra-summary: /CoreOS/scap-security-guide/per-rule/from-env
extra-nitrate: TC#0617199
id: 237c1eaf-bf68-4eba-b097-6cc0222ca282
Expand Down
4 changes: 3 additions & 1 deletion plans/default.fmf
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
summary: Default plan (simple for now)
summary: Default plan discovering all tests for ad-hoc use
discover:
how: fmf
5 changes: 5 additions & 0 deletions plans/errata.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
summary: Testing builds added to errata
discover:
how: fmf
test:
- /scanning/oscap-eval
8 changes: 8 additions & 0 deletions plans/gating-ci.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
summary: Testing during OSCI Gating
discover:
how: fmf
test:
- /scanning/oscap-eval
- /static-checks/ansible/allowed-modules
- /static-checks/fetch-remote-resources
- /static-checks/rpmbuild-ctest
3 changes: 0 additions & 3 deletions plans/main.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
/:
inherit: false

discover:
how: fmf

execute:
how: tmt

Expand Down
12 changes: 12 additions & 0 deletions plans/productization.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
summary: Regular "productization" testing
discover:
how: fmf
filter:
- tag:-adhoc
- tag:-broken
exclude:
# these intentionally fail on any difference, to show up for manual review
# during stabilization
- /static-checks/diff
environment:
CONTEST_CONTENT_BRANCH: master
8 changes: 8 additions & 0 deletions plans/stabilization.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
summary: Pre-release "stabilization" testing
discover:
how: fmf
filter:
- tag:-adhoc
- tag:-broken
environment:
CONTEST_CONTENT_BRANCH: master

0 comments on commit 62a1421

Please sign in to comment.