Skip to content

Commit bf330b1

Browse files
committed
test: update golden files
Signed-off-by: Nikita Pivkin <nikita.pivkin@smartforce.io>
1 parent 636fd3c commit bf330b1

File tree

3 files changed

+9
-63
lines changed

3 files changed

+9
-63
lines changed

test/data/config-scan/report.json

Lines changed: 8 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,6 @@
22
"SchemaVersion": 2,
33
"ArtifactName": "test/data/config-scan",
44
"ArtifactType": "filesystem",
5-
"Metadata": {
6-
"ImageConfig": {
7-
"architecture": "",
8-
"created": "0001-01-01T00:00:00Z",
9-
"os": "",
10-
"rootfs": {
11-
"type": "",
12-
"diff_ids": null
13-
},
14-
"config": {}
15-
}
16-
},
175
"Results": [
186
{
197
"Target": ".",
@@ -50,7 +38,6 @@
5038
"https://avd.aquasec.com/misconfig/avd-aws-0086"
5139
],
5240
"Status": "FAIL",
53-
"Layer": {},
5441
"CauseMetadata": {
5542
"Resource": "aws_s3_bucket.bucket",
5643
"Provider": "AWS",
@@ -90,8 +77,7 @@
9077
"LastCause": true
9178
}
9279
]
93-
},
94-
"RenderedCause": {}
80+
}
9581
}
9682
},
9783
{
@@ -111,7 +97,6 @@
11197
"https://avd.aquasec.com/misconfig/avd-aws-0087"
11298
],
11399
"Status": "FAIL",
114-
"Layer": {},
115100
"CauseMetadata": {
116101
"Resource": "aws_s3_bucket.bucket",
117102
"Provider": "AWS",
@@ -151,8 +136,7 @@
151136
"LastCause": true
152137
}
153138
]
154-
},
155-
"RenderedCause": {}
139+
}
156140
}
157141
},
158142
{
@@ -172,7 +156,6 @@
172156
"https://avd.aquasec.com/misconfig/avd-aws-0088"
173157
],
174158
"Status": "FAIL",
175-
"Layer": {},
176159
"CauseMetadata": {
177160
"Resource": "aws_s3_bucket.bucket",
178161
"Provider": "AWS",
@@ -212,8 +195,7 @@
212195
"LastCause": true
213196
}
214197
]
215-
},
216-
"RenderedCause": {}
198+
}
217199
}
218200
},
219201
{
@@ -234,7 +216,6 @@
234216
"https://avd.aquasec.com/misconfig/s3-bucket-logging"
235217
],
236218
"Status": "FAIL",
237-
"Layer": {},
238219
"CauseMetadata": {
239220
"Resource": "aws_s3_bucket.bucket",
240221
"Provider": "AWS",
@@ -274,8 +255,7 @@
274255
"LastCause": true
275256
}
276257
]
277-
},
278-
"RenderedCause": {}
258+
}
279259
}
280260
},
281261
{
@@ -295,7 +275,6 @@
295275
"https://avd.aquasec.com/misconfig/avd-aws-0090"
296276
],
297277
"Status": "FAIL",
298-
"Layer": {},
299278
"CauseMetadata": {
300279
"Resource": "aws_s3_bucket_versioning.bucket_versioning",
301280
"Provider": "AWS",
@@ -416,7 +395,6 @@
416395
"https://avd.aquasec.com/misconfig/avd-aws-0091"
417396
],
418397
"Status": "FAIL",
419-
"Layer": {},
420398
"CauseMetadata": {
421399
"Resource": "aws_s3_bucket.bucket",
422400
"Provider": "AWS",
@@ -456,8 +434,7 @@
456434
"LastCause": true
457435
}
458436
]
459-
},
460-
"RenderedCause": {}
437+
}
461438
}
462439
},
463440
{
@@ -477,7 +454,6 @@
477454
"https://avd.aquasec.com/misconfig/avd-aws-0093"
478455
],
479456
"Status": "FAIL",
480-
"Layer": {},
481457
"CauseMetadata": {
482458
"Resource": "aws_s3_bucket.bucket",
483459
"Provider": "AWS",
@@ -517,8 +493,7 @@
517493
"LastCause": true
518494
}
519495
]
520-
},
521-
"RenderedCause": {}
496+
}
522497
}
523498
},
524499
{
@@ -538,7 +513,6 @@
538513
"https://avd.aquasec.com/misconfig/avd-aws-0094"
539514
],
540515
"Status": "FAIL",
541-
"Layer": {},
542516
"CauseMetadata": {
543517
"Resource": "aws_s3_bucket.bucket",
544518
"Provider": "AWS",
@@ -578,8 +552,7 @@
578552
"LastCause": true
579553
}
580554
]
581-
},
582-
"RenderedCause": {}
555+
}
583556
}
584557
},
585558
{
@@ -599,7 +572,6 @@
599572
"https://avd.aquasec.com/misconfig/avd-aws-0132"
600573
],
601574
"Status": "FAIL",
602-
"Layer": {},
603575
"CauseMetadata": {
604576
"Resource": "aws_s3_bucket.bucket",
605577
"Provider": "AWS",
@@ -639,8 +611,7 @@
639611
"LastCause": true
640612
}
641613
]
642-
},
643-
"RenderedCause": {}
614+
}
644615
}
645616
}
646617
]

test/data/secret-scan/report.json

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,6 @@
22
"SchemaVersion": 2,
33
"ArtifactName": "https://github.com/krol3/demo-trivy/",
44
"ArtifactType": "repository",
5-
"Metadata": {
6-
"ImageConfig": {
7-
"architecture": "",
8-
"created": "0001-01-01T00:00:00Z",
9-
"os": "",
10-
"rootfs": {
11-
"type": "",
12-
"diff_ids": null
13-
},
14-
"config": {}
15-
}
16-
},
175
"Results": [
186
{
197
"Target": "env",
@@ -68,8 +56,7 @@
6856
}
6957
]
7058
},
71-
"Match": "export GITHUB_PAT=****************************************",
72-
"Layer": {}
59+
"Match": "export GITHUB_PAT=****************************************"
7360
}
7461
]
7562
}

test/data/with-tf-vars/report.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,6 @@
22
"SchemaVersion": 2,
33
"ArtifactName": "test/data/with-tf-vars/main.tf",
44
"ArtifactType": "filesystem",
5-
"Metadata": {
6-
"ImageConfig": {
7-
"architecture": "",
8-
"created": "0001-01-01T00:00:00Z",
9-
"os": "",
10-
"rootfs": {
11-
"type": "",
12-
"diff_ids": null
13-
},
14-
"config": {}
15-
}
16-
},
175
"Results": [
186
{
197
"Target": ".",

0 commit comments

Comments
 (0)