Whenever a key is defined in the tmt hierarchy and some child also
defines that key, the child's will overwrite the previous one. The "+"
changes the operation to "append", so the content of key+ in the child
is added to the existing key.
Meaning that any "adjust" statement in a test plan using a test that
defines it's own "adjust:" is ignored.
Since we are expecting other statements to be appended to the "adjust"
sections, the content of each section needs to be a single list item as
opposed to a set of key-value pairs (first line needs to start with a
hyphen).
- Replace all "adjust:" sections with "adjust+:" in order to honor any
adjustments further up the tree (parent tests, or test plans).
- Fix malformed "adjust" sections (sets of key-value pairs)
Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
all tests with CI-Tier-1 tag should have "tier: 1" in their metadata,
also removing tags Tier1 and Tier1se and lastly tests with "tier: 2"
and "tier: 3" should not have CI-Tier-1 tag.
Signed-off-by: Jan Janasek <jjanasek@redhat.com>
Rather than enumerating RHEL versions, use comparison against
"known-good" version to make the expressions easier to read and
understand.
Also convert users of '~<' to '<', as '~<' compares only minor versions
within the same major.
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Relevancy changes are made based on recommendations from:
tmt test lint --fix
Some packages are available for Fedoras only and are not available
for RHELs at all.
Some packages are available for latest RHEL major versions only.
Commit 769880f7 added path meta data into .fmf files. As path's didn't have /
at the beginning test were not created correctly.
Fixes:
fatal: [fedora29]: FAILED! => {
"msg": [
"Tests failed: True",
"Tests msg: FAIL selinuxselinux-policy/policy-rpm-macros",
"FAIL selinuxcheckpolicy/checkpolicy",
"FAIL selinuxlibsepol/sepol_check_context",
"FAIL selinuxlibsemanage/verify-options-in-semanage-conf",
...
$ cat artifacts/FAIL_selinuxcheckpolicy-checkpolicy.log
FAIL test selinuxcheckpolicy/checkpolicy does not appear to be a file or directory
Commit 769880f7 added path meta data into .fmf files. As path's didn't have /
at the beginning test were not created correctly.
Fixes:
fatal: [fedora29]: FAILED! => {
"msg": [
"Tests failed: True",
"Tests msg: FAIL selinuxselinux-policy/policy-rpm-macros",
"FAIL selinuxcheckpolicy/checkpolicy",
"FAIL selinuxlibsepol/sepol_check_context",
"FAIL selinuxlibsemanage/verify-options-in-semanage-conf",
...
$ cat artifacts/FAIL_selinuxcheckpolicy-checkpolicy.log
FAIL test selinuxcheckpolicy/checkpolicy does not appear to be a file or directory
The test compiles a TE module, loads it via semodule, and checks that
the rules are enforced. The same is done with a CIL module. Module
overriding using priorities and module disabling is also tested.
This test requires policycoreutils and selinux-policy-devel packages.