Skip to content

Commit 8e618de

Browse files
committed
Update test expectations #447
Signed-off-by: Jono Yang <[email protected]>
1 parent d647390 commit 8e618de

10 files changed

+898
-219
lines changed

scanpipe/tests/data/alpine_3_15_4_scan_codebase.json

+167-83
Large diffs are not rendered by default.

scanpipe/tests/data/asgiref-3.3.0_load_inventory_expected.json

+433-18
Large diffs are not rendered by default.

scanpipe/tests/data/basic-rootfs_root_filesystems.json

+91-76
Original file line numberDiff line numberDiff line change
@@ -48,38 +48,6 @@
4848
}
4949
],
5050
"packages": [
51-
{
52-
"purl": "pkg:deb/libncurses5",
53-
"type": "deb",
54-
"namespace": "",
55-
"name": "libncurses5",
56-
"version": "",
57-
"qualifiers": "",
58-
"subpath": "",
59-
"primary_language": "",
60-
"description": "",
61-
"release_date": null,
62-
"homepage_url": "",
63-
"download_url": "",
64-
"sha1": "",
65-
"md5": "",
66-
"bug_tracking_url": "",
67-
"code_view_url": "",
68-
"vcs_url": "",
69-
"copyright": "Copyright (c) 1998-2016 Free Software Foundation, Inc.\nCopyright (c) 2001 by Pradeep Padala\nCopyright (c) 1994 X Consortium\nCopyright (c) 1980, 1991, 1992, 1993 The Regents of the University of California\nCopyright 1996-2007 by Thomas E. Dickey",
70-
"license_expression": "x11-fsf AND x11-xconsortium AND bsd-new AND x11-fsf",
71-
"declared_license": "",
72-
"notice_text": "",
73-
"manifest_path": "",
74-
"contains_source_code": null,
75-
"extra_data": {},
76-
"missing_resources": [],
77-
"modified_resources": [],
78-
"dependencies": [],
79-
"package_uid": "",
80-
"keywords": [],
81-
"source_packages": []
82-
},
8351
{
8452
"purl": "pkg:deb/[email protected]?architecture=amd64",
8553
"type": "deb",
@@ -120,38 +88,6 @@
12088
"pkg:deb/ncurses"
12189
]
12290
},
123-
{
124-
"purl": "pkg:deb/libndp0",
125-
"type": "deb",
126-
"namespace": "",
127-
"name": "libndp0",
128-
"version": "",
129-
"qualifiers": "",
130-
"subpath": "",
131-
"primary_language": "",
132-
"description": "",
133-
"release_date": null,
134-
"homepage_url": "",
135-
"download_url": "",
136-
"sha1": "",
137-
"md5": "",
138-
"bug_tracking_url": "",
139-
"code_view_url": "",
140-
"vcs_url": "",
141-
"copyright": "Copyright 2013 Jiri Pirko <[email protected]>\nCopyright 2014 Andrew Ayer <[email protected]>",
142-
"license_expression": "(lgpl-2.1-plus AND lgpl-2.1-plus AND lgpl-2.1) AND (lgpl-2.1-plus AND lgpl-2.1-plus AND lgpl-2.1)",
143-
"declared_license": "['LGPL-2.1+', 'LGPL-2.1+', 'LGPL-2.1+']",
144-
"notice_text": "",
145-
"manifest_path": "",
146-
"contains_source_code": null,
147-
"extra_data": {},
148-
"missing_resources": [],
149-
"modified_resources": [],
150-
"dependencies": [],
151-
"package_uid": "",
152-
"keywords": [],
153-
"source_packages": []
154-
},
15591
{
15692
"purl": "pkg:deb/[email protected]?architecture=amd64",
15793
"type": "deb",
@@ -193,6 +129,7 @@
193129
]
194130
}
195131
],
132+
"dependencies": [],
196133
"files": [
197134
{
198135
"for_packages": [],
@@ -218,12 +155,11 @@
218155
"is_text": true,
219156
"is_archive": false,
220157
"is_key_file": false,
221-
"is_media": false
158+
"is_media": false,
159+
"package_data": {}
222160
},
223161
{
224-
"for_packages": [
225-
"pkg:deb/libncurses5?uuid=fixed-uid-done-for-testing-5642512d1758"
226-
],
162+
"for_packages": [],
227163
"path": "basic-rootfs.tar.gz-extract/usr/share/doc/libncurses5/copyright",
228164
"sha1": "3ffa530d4b2e0ef318cf12f68cb7106a255ea27b",
229165
"md5": "bd73d1dbbd2e6374358baa205d6d9e66",
@@ -246,12 +182,47 @@
246182
"is_text": true,
247183
"is_archive": false,
248184
"is_key_file": false,
249-
"is_media": false
185+
"is_media": false,
186+
"package_data": [
187+
{
188+
"md5": null,
189+
"name": "libncurses5",
190+
"purl": "pkg:deb/libncurses5",
191+
"sha1": null,
192+
"type": "deb",
193+
"sha256": null,
194+
"sha512": null,
195+
"parties": [],
196+
"subpath": null,
197+
"vcs_url": null,
198+
"version": null,
199+
"keywords": [],
200+
"copyright": "Copyright (c) 1998-2016 Free Software Foundation, Inc.\nCopyright (c) 2001 by Pradeep Padala\nCopyright (c) 1994 X Consortium\nCopyright (c) 1980, 1991, 1992, 1993 The Regents of the University of California\nCopyright 1996-2007 by Thomas E. Dickey",
201+
"namespace": null,
202+
"extra_data": {},
203+
"qualifiers": {},
204+
"description": null,
205+
"notice_text": null,
206+
"api_data_url": null,
207+
"dependencies": [],
208+
"download_url": null,
209+
"homepage_url": null,
210+
"release_date": null,
211+
"code_view_url": null,
212+
"datasource_id": "debian_copyright_in_package",
213+
"file_references": [],
214+
"source_packages": [],
215+
"bug_tracking_url": null,
216+
"declared_license": null,
217+
"primary_language": null,
218+
"license_expression": "x11-fsf AND x11-xconsortium AND bsd-new AND x11-fsf",
219+
"repository_download_url": null,
220+
"repository_homepage_url": null
221+
}
222+
]
250223
},
251224
{
252-
"for_packages": [
253-
"pkg:deb/libndp0?uuid=fixed-uid-done-for-testing-5642512d1758"
254-
],
225+
"for_packages": [],
255226
"path": "basic-rootfs.tar.gz-extract/usr/share/doc/libndp0/copyright",
256227
"sha1": "0d667249e3a0f605589e7607ae6cb29024ae59b5",
257228
"md5": "3f4ecdd67d5b9427cdc66847bdd11cf4",
@@ -274,7 +245,48 @@
274245
"is_text": true,
275246
"is_archive": false,
276247
"is_key_file": false,
277-
"is_media": false
248+
"is_media": false,
249+
"package_data": [
250+
{
251+
"md5": null,
252+
"name": "libndp0",
253+
"purl": "pkg:deb/libndp0",
254+
"sha1": null,
255+
"type": "deb",
256+
"sha256": null,
257+
"sha512": null,
258+
"parties": [],
259+
"subpath": null,
260+
"vcs_url": null,
261+
"version": null,
262+
"keywords": [],
263+
"copyright": "Copyright 2013 Jiri Pirko <[email protected]>\nCopyright 2014 Andrew Ayer <[email protected]>",
264+
"namespace": null,
265+
"extra_data": {},
266+
"qualifiers": {},
267+
"description": null,
268+
"notice_text": null,
269+
"api_data_url": null,
270+
"dependencies": [],
271+
"download_url": null,
272+
"homepage_url": null,
273+
"release_date": null,
274+
"code_view_url": null,
275+
"datasource_id": "debian_copyright_in_package",
276+
"file_references": [],
277+
"source_packages": [],
278+
"bug_tracking_url": null,
279+
"declared_license": [
280+
"LGPL-2.1+",
281+
"LGPL-2.1+",
282+
"LGPL-2.1+"
283+
],
284+
"primary_language": null,
285+
"license_expression": "(lgpl-2.1-plus AND lgpl-2.1-plus AND lgpl-2.1) AND (lgpl-2.1-plus AND lgpl-2.1-plus AND lgpl-2.1)",
286+
"repository_download_url": null,
287+
"repository_homepage_url": null
288+
}
289+
]
278290
},
279291
{
280292
"for_packages": [],
@@ -300,7 +312,8 @@
300312
"is_text": true,
301313
"is_archive": false,
302314
"is_key_file": false,
303-
"is_media": false
315+
"is_media": false,
316+
"package_data": {}
304317
},
305318
{
306319
"for_packages": [],
@@ -326,7 +339,8 @@
326339
"is_text": true,
327340
"is_archive": false,
328341
"is_key_file": false,
329-
"is_media": false
342+
"is_media": false,
343+
"package_data": {}
330344
},
331345
{
332346
"for_packages": [],
@@ -379,7 +393,8 @@
379393
"is_text": true,
380394
"is_archive": false,
381395
"is_key_file": false,
382-
"is_media": false
396+
"is_media": false,
397+
"package_data": {}
383398
}
384399
]
385400
}

0 commit comments

Comments
 (0)