forked from ComplianceAsCode/content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.launch.json
93 lines (93 loc) · 2.68 KB
/
.gitpod.launch.json
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"inputs": [
{
"id": "pickContainerName",
"description": "Select Container Name",
"type": "pickString",
"options": ["ssg_test_suite"],
"default": "ssg_test_suite"
},
{
"id": "pickProductName",
"description": "Select Product Name",
"type": "pickString",
"options": [
"chromium",
"debian8", "debian9", "debian10",
"eap6",
"fedora",
"firefox",
"fuse6",
"jre",
"macos1015",
"ocp4",
"ol7", "ol8",
"opensuse","rhel7", "rhel8", "rhel9",
"rhosp10", "rhosp13",
"rhv4",
"sle12", "sle15",
"ubuntu1604", "ubuntu1804", "ubuntu2004",
"wrlinux8", "wrlinux1019"
],
"default": "&&DEFAULT_PRODUCT&&"
},
{
"id": "pickRemediationType",
"description": "Select Remediation Type",
"type": "pickString",
"options": ["oscap", "bash", "ansible"],
"default": "bash"
}
],
"configurations": [
{
"name": "Run SSGTS using Docker backend",
"type": "python",
"request": "launch",
"console": "integratedTerminal",
"program": "${workspaceFolder}/tests/test_suite.py",
"args": [
"rule",
"--dontclean",
"--debug",
"--docker",
"${input:pickContainerName}",
"--datastream",
"${workspaceFolder}/build/ssg-${input:pickProductName}-ds.xml",
"--remediate-using",
"${input:pickRemediationType}",
"--remove-machine-only",
"--remove-ocp4-only",
"--add-product-to-fips-certified",
"fedora",
"--add-platform",
"&&CPE&&",
"${command:content-navigator.getRuleId}"
]
},
{
"name": "Run SSGTS using Docker backend (test_rule_in_container.sh)",
"type": "bashdb",
"request": "launch",
"program": "${workspaceFolder}/tests/test_rule_in_container.sh",
"args": [
"--dontclean",
"--docker",
"--name",
"${input:pickContainerName}",
"--datastream",
"${workspaceFolder}/build/ssg-${input:pickProductName}-ds.xml",
"--remediate-using",
"${input:pickRemediationType}",
"${command:content-navigator.getRuleId}"
],
"env": {
"ADDITIONAL_SSGTS_OPTIONS": "--debug --duplicate-templates --add-product-to-fips-certified fedora"
}
}
]
}