forked from ComplianceAsCode/content-test-filtering
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_labels.yml
33 lines (26 loc) · 962 Bytes
/
test_labels.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{% set project_prefix = "" %}
{% set datastream_build = "build_product " + product %}
{% set datastream_file = "build/ssg-" + product + "-ds.xml" %}
{% set target = "--libvirt qemu:///system test-suite-vm" %}
prepare_product: build_product {{ product }}
ctest_build: (cd build && cmake ../ && ctest -j4)
yaml: /usr/bin/YAMLlint
python: Pylint
bash: ShellCheck
xml: xmllint
jinja: jinjalint
profile: tests/test_suite.py profile {{ target }} --datastream {{ datastream_file }} %profile_name%
rule_ansible: tests/test_suite.py rule {{ target }} --remediate-using ansible --datastream {{ datastream_file }} %rule_name%
rule_bash: tests/test_suite.py rule {{ target }} --remediate-using bash --datastream {{ datastream_file }} %rule_name%
json_rule: |
{
"rules": [ %rule_name% ],
"product": "{{ product }}",
"bash": "False",
"ansible": "False"
}
json_profile: |
{
"profiles": [ %profile_name% ],
"product": "{{ product }}"
}