Skip to content

Commit

Permalink
test: temporarily disable failing tests
Browse files Browse the repository at this point in the history
Temporary measure so CI will stay clean while we work on fixing the
tests mentioned in intel#3653

Signed-off-by: Terri Oda <[email protected]>
  • Loading branch information
terriko committed Dec 20, 2023
1 parent 10654c4 commit c8259e0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
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="Temporarily disabled -- may need data changes")
@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 @@ -8,6 +8,7 @@


class TestExploitScanner:
@pytest.mark.skip(reason="Temporarily disabled -- may need data changes")
@pytest.mark.parametrize(
"check_exploits, exploits_list, product_info, triage_info, expected_result",
(
Expand Down
2 changes: 2 additions & 0 deletions test/test_language_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ def setup_class(cls):
cls.cvedb.get_cvelist_if_stale()
print("Database setup complete.")

@pytest.mark.skip(reason="Temporarily disabled -- may need data changes")
@pytest.mark.parametrize(
"filename, product_list",
(((str(TEST_FILE_PATH / "pom.xml")), ["jmeter", "hamcrest"]),),
Expand Down Expand Up @@ -234,6 +235,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="Temporarily disabled -- may need data changes")
@pytest.mark.parametrize("filename", ((str(TEST_FILE_PATH / "PKG-INFO")),))
def test_python_package(self, filename: str) -> None:
scanner = VersionScanner()
Expand Down
3 changes: 3 additions & 0 deletions test/test_sbom.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def test_invalid_type(self, filename: str, sbom_type: str):
sbom_engine = SBOMManager(filename, sbom_type)
assert sbom_engine.scan_file() == {}

@pytest.mark.skip(reason="Temporarily disabled -- may need data changes")
@pytest.mark.parametrize(
"filename, spdx_parsed_data",
(
Expand All @@ -88,6 +89,7 @@ def test_valid_spdx_file(
for p in spdx_parsed_data:
assert p in scan_result

@pytest.mark.skip(reason="Temporarily disabled -- may need data changes")
@pytest.mark.parametrize(
"filename, cyclonedx_parsed_data",
(
Expand All @@ -105,6 +107,7 @@ def test_valid_cyclonedx_file(
for p in cyclonedx_parsed_data:
assert p in scan_result

@pytest.mark.skip(reason="Temporarily disabled -- may need data changes")
@pytest.mark.parametrize(
"filename, swid_parsed_data",
((str(SBOM_PATH / "swid_test.xml"), PARSED_SBOM_DATA),),
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,13 +6,16 @@
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"
CSV_PATH = TEST_DIR / "csv"
OUTPUT_JSON = str(TEMP_DIR / "test_triage_output.json") # the output is a temp file


@pytest.mark.skip(reason="Temporarily disabled -- may need data changes")
def test_triage():
INPUT_CSV = str(CSV_PATH / "test_triage_input.csv")
TRIAGE_VEX = str(VEX_PATH / "test_triage_triage_input.vex")
Expand Down

0 comments on commit c8259e0

Please sign in to comment.