Skip to content

Commit

Permalink
tests/fmf-plans: Match end of string in test selection
Browse files Browse the repository at this point in the history
To avoid e.g. /hardening/host-os/ansible/cis resulting in 4 tests - cis,
cis_server_l1, cis_workstation_l1, and cis_workstation_l2
  • Loading branch information
mildas committed Jan 11, 2024
1 parent c062412 commit 89c559a
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tests/fmf-plans/ansible-anssi.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ summary:
Destructive ANSSI BP-028 (high) profile test (Ansible)
discover+:
test:
- /hardening/host-os/ansible/cis
- /hardening/host-os/ansible/cis$
adjust+:
- enabled: false
when: distro == fedora
Expand Down
2 changes: 1 addition & 1 deletion tests/fmf-plans/ansible-cis.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ summary:
Destructive CIS Server Level 2 profile test (Ansible)
discover+:
test:
- /hardening/host-os/ansible/cis
- /hardening/host-os/ansible/cis$
adjust+:
- enabled: false
when: distro == fedora
2 changes: 1 addition & 1 deletion tests/fmf-plans/ansible-ospp.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ summary:
Destructive OSPP profile test (Ansible)
discover+:
test:
- /hardening/host-os/ansible/ospp
- /hardening/host-os/ansible/ospp$
adjust+:
- enabled: false
when: distro == fedora
2 changes: 1 addition & 1 deletion tests/fmf-plans/ansible-pcidss.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ summary:
Destructive PCI-DSS profile test (Ansible)
discover+:
test:
- /hardening/host-os/ansible/pci-dss
- /hardening/host-os/ansible/pci-dss$
adjust+:
- enabled: false
when: distro == fedora
2 changes: 1 addition & 1 deletion tests/fmf-plans/ansible-stig.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ summary:
Destructive STIG profile test (Ansible)
discover+:
test:
- /hardening/host-os/ansible/stig
- /hardening/host-os/ansible/stig$
adjust+:
- enabled: false
when: distro == fedora
Expand Down
2 changes: 1 addition & 1 deletion tests/fmf-plans/bash-anssi.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ summary:
Destructive ANSSI-BP-028 (high) profile test (Bash)
discover+:
test:
- /hardening/host-os/oscap/anssi_bp28_high
- /hardening/host-os/oscap/anssi_bp28_high$
adjust+:
- enabled: false
when: distro == fedora
Expand Down
2 changes: 1 addition & 1 deletion tests/fmf-plans/bash-cis.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ summary:
Destructive CIS Server Level 2 profile test (Bash)
discover+:
test:
- /hardening/host-os/oscap/cis
- /hardening/host-os/oscap/cis$
adjust+:
- enabled: false
when: distro == fedora
2 changes: 1 addition & 1 deletion tests/fmf-plans/bash-ospp.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ summary:
Destructive OSPP profile test (Bash)
discover+:
test:
- /hardening/host-os/oscap/ospp
- /hardening/host-os/oscap/ospp$
adjust+:
- enabled: false
when: distro == fedora
2 changes: 1 addition & 1 deletion tests/fmf-plans/bash-pcidss.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ summary:
Destructive PCI-DSS profile test (Bash)
discover+:
test:
- /hardening/host-os/oscap/pci-dss
- /hardening/host-os/oscap/pci-dss$
adjust+:
- enabled: false
when: distro == fedora
2 changes: 1 addition & 1 deletion tests/fmf-plans/bash-stig.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ summary:
Destructive STIG profile test (Bash)
discover+:
test:
- /hardening/host-os/oscap/stig
- /hardening/host-os/oscap/stig$
adjust+:
- enabled: false
when: distro == fedora

0 comments on commit 89c559a

Please sign in to comment.