-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Refactor BaseService to take a dataspace in place of user #94 This change is required to call integration in the context of a scheduler where only Dataspace instances are available, not a user. Signed-off-by: tdruez <[email protected]> * Fix an issue with inject_scan_data on Component instances Signed-off-by: tdruez <[email protected]> --------- Signed-off-by: tdruez <[email protected]>
- Loading branch information
Showing
16 changed files
with
97 additions
and
79 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
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 |
---|---|---|
|
@@ -3131,7 +3131,7 @@ def test_vulnerablecode_get_plain_purls(self): | |
self.assertEqual(["pkg:pypi/[email protected]"], purls) | ||
|
||
def test_vulnerablecode_get_vulnerable_purls(self): | ||
vulnerablecode = VulnerableCode(self.basic_user) | ||
vulnerablecode = VulnerableCode(self.dataspace) | ||
vulnerable_purls = vulnerablecode.get_vulnerable_purls(packages=[]) | ||
self.assertEqual([], vulnerable_purls) | ||
|
||
|
@@ -3155,7 +3155,7 @@ def test_vulnerablecode_get_vulnerable_purls(self): | |
self.assertEqual(["pkg:pypi/[email protected]"], vulnerable_purls) | ||
|
||
def test_vulnerablecode_get_vulnerable_cpes(self): | ||
vulnerablecode = VulnerableCode(self.basic_user) | ||
vulnerablecode = VulnerableCode(self.dataspace) | ||
vulnerable_cpes = vulnerablecode.get_vulnerable_cpes(components=[]) | ||
self.assertEqual([], vulnerable_cpes) | ||
|
||
|
@@ -3187,7 +3187,7 @@ def test_vulnerablecode_get_vulnerable_cpes(self): | |
|
||
@mock.patch("dejacode_toolkit.vulnerablecode.VulnerableCode.request_get") | ||
def test_vulnerablecode_get_vulnerabilities_cache(self, mock_request_get): | ||
vulnerablecode = VulnerableCode(self.basic_user) | ||
vulnerablecode = VulnerableCode(self.dataspace) | ||
|
||
self.package1.set_package_url("pkg:pypi/[email protected]") | ||
self.package1.save() | ||
|
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
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
Oops, something went wrong.