@@ -107,43 +107,6 @@ func TestIntegration(t *testing.T) {
107107 },
108108 },
109109 },
110- Code : models.Code {
111- Ignore : []models.CodeIgnore {
112- {
113- CWEs : []int {589 },
114- Reason : "HTTP requests with variables in tests don't matter" ,
115- Paths : []string {"**/tests/*" },
116- Repositories : []string {
117- "config-file-parser" ,
118- "dast-action" ,
119- "cli" ,
120- },
121- },
122- {
123- RuleIDs : []string {"python-sql-injection" },
124- Reason : "This code won't be going live until next year but we should fix it before then" ,
125- Expiry : "2021-12-31" ,
126- },
127- },
128- },
129- Dependencies : models.Dependencies {
130- Ignore : []models.DependenciesIgnore {
131- {
132- CVEs : []string {"CVE-2021-1234" },
133- Reason : "This is a false positive" ,
134- Expiry : "2021-12-31" ,
135- },
136- {
137- CVEs : []string {"CVE-2021-5678" },
138- Reason : "This isn't exploitable in client applications" ,
139- Expiry : "2021-12-31" ,
140- Repositories : []string {
141- "dast-action" ,
142- "cli" ,
143- },
144- },
145- },
146- },
147110 Integrations : models.Integrations {
148111 Jira : & models.Jira {
149112 Disabled : false ,
@@ -248,43 +211,6 @@ func TestEmptyFailsBuildField(t *testing.T) {
248211 },
249212 },
250213 },
251- Code : models.Code {
252- Ignore : []models.CodeIgnore {
253- {
254- CWEs : []int {589 },
255- Reason : "HTTP requests with variables in tests don't matter" ,
256- Paths : []string {"**/tests/*" },
257- Repositories : []string {
258- "config-file-parser" ,
259- "dast-action" ,
260- "cli" ,
261- },
262- },
263- {
264- RuleIDs : []string {"python-sql-injection" },
265- Reason : "This code won't be going live until next year but we should fix it before then" ,
266- Expiry : "2021-12-31" ,
267- },
268- },
269- },
270- Dependencies : models.Dependencies {
271- Ignore : []models.DependenciesIgnore {
272- {
273- CVEs : []string {"CVE-2021-1234" },
274- Reason : "This is a false positive" ,
275- Expiry : "2021-12-31" ,
276- },
277- {
278- CVEs : []string {"CVE-2021-5678" },
279- Reason : "This isn't exploitable in client applications" ,
280- Expiry : "2021-12-31" ,
281- Repositories : []string {
282- "dast-action" ,
283- "cli" ,
284- },
285- },
286- },
287- },
288214 }
289215
290216 config , err := parser .LoadFromFile ("empty_fail_build.yaml" )
0 commit comments