Skip to content

Commit

Permalink
test(reporters): Add analyzer issues to package references
Browse files Browse the repository at this point in the history
Make the tests cover this case as well.

Signed-off-by: Frank Viernau <frank_viernau@epam.com>
  • Loading branch information
fviernau committed Apr 30, 2024
1 parent b1de267 commit 002d238
Show file tree
Hide file tree
Showing 7 changed files with 244 additions and 74 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,25 @@ issues:
- 1
pkg: 2
how_to_fix: "Some how to fix text."
- _id: 17
timestamp: "2024-04-25T07:44:20.725613974Z"
type: "ANALYZER"
source: "Gradle"
message: "Example analyzer warning in included package."
severity: "WARNING"
pkg: 2
path: 0
how_to_fix: "Some how to fix text."
- _id: 18
timestamp: "2024-04-25T07:44:20.725613974Z"
type: "ANALYZER"
source: "Gradle"
message: "Example analyzer warning in excluded package."
severity: "WARNING"
is_excluded: true
pkg: 3
path: 1
how_to_fix: "Some how to fix text."
scan_results:
- _id: 0
provenance:
Expand Down Expand Up @@ -555,8 +574,8 @@ packages:
revision: ""
path: ""
paths:
- 5
- 6
- 7
- 8
levels:
- 0
- 1
Expand Down Expand Up @@ -602,7 +621,7 @@ packages:
revision: ""
path: ""
paths:
- 0
- 2
levels:
- 0
scopes:
Expand Down Expand Up @@ -654,7 +673,7 @@ packages:
comment: "Foobar is an imaginary dependency and offers a license choice"
concluded_license: "GPL-2.0-only OR MIT"
paths:
- 1
- 3
levels:
- 1
scopes:
Expand Down Expand Up @@ -706,7 +725,7 @@ packages:
comment: "H2 database offers a license choice"
concluded_license: "MPL-2.0 OR EPL-1.0"
paths:
- 2
- 4
levels:
- 1
scopes:
Expand Down Expand Up @@ -753,8 +772,8 @@ packages:
revision: ""
path: ""
paths:
- 3
- 4
- 5
- 6
levels:
- 1
- 2
Expand Down Expand Up @@ -837,7 +856,7 @@ packages:
revision: ""
path: ""
paths:
- 7
- 9
levels:
- 1
scopes:
Expand Down Expand Up @@ -873,8 +892,8 @@ packages:
revision: ""
path: ""
paths:
- 8
- 9
- 10
- 11
levels:
- 0
scopes:
Expand All @@ -883,58 +902,68 @@ packages:
is_excluded: false
paths:
- _id: 0
pkg: 2
project: 1
scope: 0
path: []
- _id: 1
pkg: 3
project: 1
scope: 1
path: []
- _id: 1
- _id: 2
pkg: 3
project: 1
scope: 1
path: []
- _id: 3
pkg: 4
project: 1
scope: 1
path:
- 3
- _id: 2
- _id: 4
pkg: 5
project: 1
scope: 1
path:
- 3
- _id: 3
- _id: 5
pkg: 6
project: 1
scope: 0
path:
- 2
- _id: 4
- _id: 6
pkg: 6
project: 1
scope: 1
path:
- 9
- 2
- _id: 5
- _id: 7
pkg: 2
project: 1
scope: 0
path: []
- _id: 6
- _id: 8
pkg: 2
project: 1
scope: 1
path:
- 9
- _id: 7
- _id: 9
pkg: 8
project: 1
scope: 1
path:
- 3
- _id: 8
- _id: 10
pkg: 9
project: 1
scope: 0
path: []
- _id: 9
- _id: 11
pkg: 9
project: 1
scope: 1
Expand All @@ -953,6 +982,8 @@ dependency_trees:
- key: 3
linkage: "DYNAMIC"
pkg: 2
issues:
- 17
children:
- key: 4
linkage: "DYNAMIC"
Expand All @@ -964,33 +995,39 @@ dependency_trees:
- key: 6
linkage: "DYNAMIC"
pkg: 2
- key: 7
children:
- key: 7
linkage: "DYNAMIC"
pkg: 6
- key: 8
scope: 1
scope_excludes:
- 0
children:
- key: 8
- key: 9
linkage: "DYNAMIC"
pkg: 3
issues:
- 18
children:
- key: 9
- key: 10
linkage: "DYNAMIC"
pkg: 4
- key: 10
- key: 11
linkage: "DYNAMIC"
pkg: 5
- key: 11
- key: 12
linkage: "DYNAMIC"
pkg: 8
- key: 12
- key: 13
linkage: "DYNAMIC"
pkg: 9
children:
- key: 13
- key: 14
linkage: "DYNAMIC"
pkg: 2
children:
- key: 14
- key: 15
linkage: "DYNAMIC"
pkg: 6
rule_violation_resolutions:
Expand Down Expand Up @@ -1052,9 +1089,9 @@ statistics:
vulnerability_resolutions: 0
open_issues:
errors: 4
warnings: 2
warnings: 3
hints: 2
severe: 6
severe: 7
open_rule_violations:
errors: 1
warnings: 1
Expand Down
Loading

0 comments on commit 002d238

Please sign in to comment.