-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtasks.json
164 lines (163 loc) · 6.16 KB
/
tasks.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
{
"version": "2.0.0",
"tasks": [
{
"label": "Validate",
"type": "shell",
"command": "./validate.py ${input:directory} ${input:schema} ${input:json}",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Test policy_manager",
"type": "shell",
"command": "./validate.py policy_manager v1/policy_manager/test_schema.json v1/policy_manager/test_settings.json",
"group": {
"kind": "test",
"isDefault": true
}
},
{
"label": "Test dynamic_lists",
"type": "shell",
"command": "./validate.py dynamic_lists v1/dynamic_lists/test_schema.json v1/dynamic_lists/dynamic_lists_test.json",
"group": {
"kind": "test",
"isDefault": true
}
},
{
"label": "Test captiveportal",
"type": "shell",
"command": "./validate.py captiveportal v1/captiveportal/test_schema.json v1/captiveportal/captiveportal_test.json",
"group": {
"kind": "test",
"isDefault": true
}
},
{
"label": "Test System Schema",
"type": "shell",
"command": "./validate.py system_schema v1/system/test_schema.json v1/system/test_system_schema.json",
"group": {
"kind": "test",
"isDefault": true
}
},
{
"label": "Test Quota Manager",
"type": "shell",
"command": "./validate.py quota_manager v1/quota_manager/test_schema.json v1/quota_manager/quota_manager_test.json",
"group": {
"kind": "test",
"isDefault": true
}
},
{
"label": "Test databases",
"type": "shell",
"command": "./validate.py databases_schema v1/databases/test_schema.json v1/databases/databases_test.json",
"group": {
"kind": "test",
"isDefault": true
}
},
{
"label": "Test denialofservice",
"type": "shell",
"command": "./validate.py denialofservice v1/denialofservice/test_schema.json v1/denialofservice/denialofservice_test.json",
"group": {
"kind": "test",
"isDefault": true
}
},
{
"label": "Test bypass",
"type": "shell",
"command": "./validate.py bypass v1/bypass/test_schema.json v1/bypass/bypass_test.json",
"group": {
"kind": "test",
"isDefault": true
}
},
{
"label": "Test DNS Filter",
"type": "shell",
"command": "./validate.py dns_filter v1/dns_filter/test_schema.json v1/dns_filter/dnsfilter_test.json",
"group": {
"kind": "test",
"isDefault": true
}
},
],
"inputs": [
{
"id": "directory",
"type": "promptString",
"description": "Enter directory names whose schemas you want to test, separated by commas. Leave blank to run all tests",
"default": ""
},
{
"id": "schema",
"type": "pickString",
"description": "pick a schema or leave blank for default in directory",
"options": [
"",
"./v1/schema.json",
"./v1/accounts/accounts_schema.json",
"./v1/application_control/application_control_schema.json",
"./v1/dashboard/dashboard_schema.json",
"./v1/dhcp/dhcp_schema.json",
"./v1/discovery/discovery_schema.json",
"./v1/dns/dns_schema.json",
"./v1/dynamic_lists/dynamic_lists_schema.json",
"./v1/files/files_schema.json",
"./v1/firewall/access_table_schema.json",
"./v1/firewall/firewall_schema.json",
"./v1/firewall/filter_table_schema.json",
"./v1/firewall/nat_table_schema.json",
"./v1/firewall/port_forward_schema.json",
"./v1/firewall/shaping_table_schema.json",
"./v1/geoip/geoip_schema.json",
"./v1/ipsec_server/ipsec_server_schema.json",
"./v1/network/network_schema.json",
"./v1/policy_manager/policy_manager_schema.json",
"./v1/policy_manager/test_schema.json",
"./v1/reports/reports_schema.json",
"./v1/routes/routes_schema.json",
"./v1/stats/stats_schema.json",
"./v1/system/system_schema.json",
"./v1/threatprevention/threatprevention_schema.json",
"./v1/uris/uris_schema.json",
"./v1/wan/wan_schema.json",
"./v1/webfilter/webfilter_schema.json",
"./v1/captiveportal/captiveportal_schema.json",
"./v1/quota_manager/quota_manager_schema.json",
"./v1/databases/databases_schema.json",
"./v1/denialofservice/denialofservice_schema.json",
"./v1/bypass/bypass_schema.json",
"./v1/dns_filter/dnsfilter_schema.json"
],
"default": ""
},
{
"id": "json",
"type": "pickString",
"description": "pick a json to validate or leave blank for default in directory",
"options": [
"",
"./v1/dynamic_lists/dynamic_lists_test.json",
"./v1/policy_manager/test_settings.json",
"./v1/captiveportal/captiveportal_test.json",
"./v1/quota_manager/quota_manager_test.json",
"./v1/databases/databases_test.json",
"./v1/denialofservice/denialofservice_test.json",
"./v1/bypass/bypass_test.json",
"./v1/dns_filter/dnsfilter_test.json"
],
"default": ""
}
]
}