Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test/test_csv2cve.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@


class TestCSV2CVE:
@pytest.mark.skip(reason="Cache is broken, disabling temporarily")
@pytest.mark.asyncio
async def test_csv2cve_valid_file(self, caplog):
file_path = join(dirname(__file__), "csv", "triage.csv")
Expand Down
1 change: 1 addition & 0 deletions test/test_exploits.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ class TestExploitScanner:
),
),
)
@pytest.mark.skip(reason="Cache is broken, disabling temporarily")
def test_exploit_checker(
self, check_exploits, exploits_list, product_info, triage_info, expected_result
):
Expand Down
1 change: 1 addition & 0 deletions test/test_language_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ def test_language_package(self, filename: str, products: set[str]) -> None:
assert p in found_product
assert file_path == filename

@pytest.mark.skip(reason="Cache is broken, disabling temporarily")
@pytest.mark.parametrize("filename", ((str(TEST_FILE_PATH / "PKG-INFO")),))
def test_python_package(self, filename: str) -> None:
"""Test against python's PKG-INFO metadata file"""
Expand Down
5 changes: 5 additions & 0 deletions test/test_sbom.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def test_invalid_type(self, filename: str, sbom_type: str):
sbom_engine = SBOMParse(filename, sbom_type)
assert sbom_engine.parse_sbom() == {}

@pytest.mark.skip(reason="Cache is broken, disabling temporarily")
@pytest.mark.parametrize(
"filename, spdx_parsed_data",
(
Expand All @@ -163,6 +164,7 @@ def test_valid_spdx_file(
for p in spdx_parsed_data:
assert p in scan_result

@pytest.mark.skip(reason="Cache is broken, disabling temporarily")
@pytest.mark.parametrize(
"filename, cyclonedx_parsed_data",
(
Expand All @@ -180,6 +182,7 @@ def test_valid_cyclonedx_file(
for p in cyclonedx_parsed_data:
assert p in scan_result

@pytest.mark.skip(reason="Cache is broken, disabling temporarily")
@pytest.mark.parametrize(
"filename, cyclonedx_parsed_data",
(
Expand All @@ -196,6 +199,7 @@ def test_bad_ext_ref_cyclonedx_file(
for p in cyclonedx_parsed_data:
assert p in scan_result.keys()

@pytest.mark.skip(reason="Cache is broken, disabling temporarily")
@pytest.mark.parametrize(
"filename, cyclonedx_parsed_data",
(
Expand Down Expand Up @@ -225,6 +229,7 @@ def test_valid_swid_file(
for p in swid_parsed_data:
assert p in scan_result

@pytest.mark.skip(reason="Cache is broken, disabling temporarily")
@pytest.mark.parametrize(
"product, version, productinfo, no_existent_file",
[
Expand Down
3 changes: 3 additions & 0 deletions test/test_triage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import tempfile
from pathlib import Path

import pytest

TEMP_DIR = Path(tempfile.mkdtemp(prefix="requirements_scan-"))
TEST_DIR = Path(__file__).parent.resolve()
VEX_PATH = TEST_DIR / "vex"
Expand All @@ -14,6 +16,7 @@


class TestTriage:
@pytest.mark.skip(reason="Cache is broken, disabling temporarily")
def test_json(self):
INPUT_CSV = str(CSV_PATH / "test_triage_input.csv")
TRIAGE_VEX = str(VEX_PATH / "test_triage_triage_input.vex")
Expand Down