@@ -34,19 +34,13 @@ func TestMergeConfigFiles(t *testing.T) {
3434 IgnoreDirs : []string {"dir1" , "dir2" },
3535 IgnorePaths : []string {"path1" , "path2" },
3636 Code : models.Code {
37- AutoFix : & models.AutoFix {
38- Enabled : true ,
39- },
4037 Ignore : []models.CodeIgnore {
4138 {
4239 CWEs : []int {123 },
4340 },
4441 },
4542 },
4643 Dependencies : models.Dependencies {
47- AutoFix : & models.AutoFix {
48- Enabled : true ,
49- },
5044 Ignore : []models.DependenciesIgnore {
5145 {
5246 CVEs : []string {"CVE-2021-1234" },
@@ -60,20 +54,6 @@ func TestMergeConfigFiles(t *testing.T) {
6054 },
6155 },
6256 },
63- Notifications : map [string ]models.Notification {
64- "slack" : {
65- Events : models.NotificationEvents {
66- All : & models.NotificationEventAll {
67- MinimumSeverity : models .SeverityHigh ,
68- },
69- },
70- },
71- },
72- ScheduledNotifications : map [string ]models.ScheduledNotification {
73- "slack" : {
74- Schedule : "0 0 * * *" ,
75- },
76- },
7757 Integrations : models.Integrations {
7858 Jira : & models.Jira {
7959 ProjectKey : "JIRINT" ,
@@ -92,19 +72,13 @@ func TestMergeConfigFiles(t *testing.T) {
9272 IgnoreDirs : []string {"dir1" , "dir2" },
9373 IgnorePaths : []string {"path1" , "path2" },
9474 Code : models.Code {
95- AutoFix : & models.AutoFix {
96- Enabled : true ,
97- },
9875 Ignore : []models.CodeIgnore {
9976 {
10077 CWEs : []int {123 },
10178 },
10279 },
10380 },
10481 Dependencies : models.Dependencies {
105- AutoFix : & models.AutoFix {
106- Enabled : true ,
107- },
10882 Ignore : []models.DependenciesIgnore {
10983 {
11084 CVEs : []string {"CVE-2021-1234" },
@@ -118,20 +92,6 @@ func TestMergeConfigFiles(t *testing.T) {
11892 },
11993 },
12094 },
121- Notifications : map [string ]models.Notification {
122- "slack" : {
123- Events : models.NotificationEvents {
124- All : & models.NotificationEventAll {
125- MinimumSeverity : models .SeverityHigh ,
126- },
127- },
128- },
129- },
130- ScheduledNotifications : map [string ]models.ScheduledNotification {
131- "slack" : {
132- Schedule : "0 0 * * *" ,
133- },
134- },
13595 Integrations : models.Integrations {
13696 Jira : & models.Jira {
13797 ProjectKey : "JIRINT" ,
@@ -150,19 +110,13 @@ func TestMergeConfigFiles(t *testing.T) {
150110 IgnoreDirs : []string {"dir1" , "dir2" },
151111 IgnorePaths : []string {"path1" , "path2" },
152112 Code : models.Code {
153- AutoFix : & models.AutoFix {
154- Enabled : true ,
155- },
156113 Ignore : []models.CodeIgnore {
157114 {
158115 CWEs : []int {123 },
159116 },
160117 },
161118 },
162119 Dependencies : models.Dependencies {
163- AutoFix : & models.AutoFix {
164- Enabled : true ,
165- },
166120 Ignore : []models.DependenciesIgnore {
167121 {
168122 CVEs : []string {"CVE-2021-1234" },
@@ -176,20 +130,6 @@ func TestMergeConfigFiles(t *testing.T) {
176130 },
177131 },
178132 },
179- Notifications : map [string ]models.Notification {
180- "slack" : {
181- Events : models.NotificationEvents {
182- All : & models.NotificationEventAll {
183- MinimumSeverity : models .SeverityHigh ,
184- },
185- },
186- },
187- },
188- ScheduledNotifications : map [string ]models.ScheduledNotification {
189- "slack" : {
190- Schedule : "0 0 * * *" ,
191- },
192- },
193133 Integrations : models.Integrations {
194134 Jira : & models.Jira {
195135 ProjectKey : "JIRINT" ,
@@ -215,19 +155,13 @@ func TestMergeConfigFiles(t *testing.T) {
215155 IgnoreDirs : []string {"dir1" , "dir2" },
216156 IgnorePaths : []string {"path1" , "path2" },
217157 Code : models.Code {
218- AutoFix : & models.AutoFix {
219- Enabled : true ,
220- },
221158 Ignore : []models.CodeIgnore {
222159 {
223160 CWEs : []int {123 },
224161 },
225162 },
226163 },
227164 Dependencies : models.Dependencies {
228- AutoFix : & models.AutoFix {
229- Enabled : true ,
230- },
231165 Ignore : []models.DependenciesIgnore {
232166 {
233167 CVEs : []string {"CVE-2021-1234" },
@@ -241,20 +175,6 @@ func TestMergeConfigFiles(t *testing.T) {
241175 },
242176 },
243177 },
244- Notifications : map [string ]models.Notification {
245- "slack" : {
246- Events : models.NotificationEvents {
247- All : & models.NotificationEventAll {
248- MinimumSeverity : models .SeverityHigh ,
249- },
250- },
251- },
252- },
253- ScheduledNotifications : map [string ]models.ScheduledNotification {
254- "slack" : {
255- Schedule : "0 0 * * *" ,
256- },
257- },
258178 Integrations : models.Integrations {
259179 Jira : & models.Jira {
260180 ProjectKey : "JIRINT" ,
0 commit comments