-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add error handling for jinja report rendering, remove empty post-report.
Signed-off-by: Caroline Russell <[email protected]>
- Loading branch information
1 parent
d87d575
commit 6957d91
Showing
8 changed files
with
52 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[project] | ||
name = "custom-json-diff" | ||
version = "2.1.1" | ||
version = "2.1.2" | ||
description = "CycloneDx BOM and Oasis CSAF diffing and comparison tool." | ||
authors = [ | ||
{ name = "Caroline Russell", email = "[email protected]" }, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
from custom_json_diff.lib.custom_diff_classes import ( | ||
BomComponent, BomDependency, BomDicts, FlatDicts, Options, BomVdr, BomVdrAffects | ||
) | ||
from custom_json_diff.lib.utils import filter_empty, json_dump | ||
|
||
|
||
@pytest.fixture | ||
|
@@ -347,7 +348,7 @@ def test_bom_diff(results, options_1): | |
'other_components': 0, 'services': 8, 'vulnerabilities': 0} | ||
assert add_short_ref_for_report(result_summary, j1.options).get("diff_summary", {}).get( | ||
j2.filename, {}).get("dependencies") == [ | ||
{'ref': 'pkg:maven/javax.activation/[email protected]?type=jar', | ||
{'dependsOn': [], 'ref': 'pkg:maven/javax.activation/[email protected]?type=jar', | ||
'short_ref': 'javax.activation/[email protected]'}] | ||
|
||
|
||
|
@@ -368,6 +369,8 @@ def test_bom_diff_component_options(results, bom_dicts_1, bom_dicts_2, bom_dicts | |
_, result_summary = perform_bom_diff(bom_dicts_7, bom_dicts_8) | ||
assert result_summary == results["result_5"] | ||
|
||
json_dump("test/test_data.json", results, compact=True) | ||
|
||
|
||
def test_bom_diff_vdr_options(options_1): | ||
# test don't allow --allow-new-data or --allow-new-versions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters