Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: skip SCA tests #134

Merged
merged 1 commit into from
Jan 27, 2025
Merged
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
6 changes: 6 additions & 0 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1179,13 +1179,15 @@ def make_tar_bytes(files: List[Tuple[str, str]]) -> bytes:
]


@pytest.mark.xfail
@my_vcr.use_cassette("test_sca_scan_compute_files.yaml", ignore_localhost=False)
def test_compute_sca_files(client: GGClient):
result = client.compute_sca_files(files=["Pipfile", "something_else"])
assert isinstance(result, ComputeSCAFilesResult)
assert result.sca_files == ["Pipfile"]


@pytest.mark.xfail
@my_vcr.use_cassette("test_sca_scan_directory_valid.yaml", ignore_localhost=False)
def test_sca_scan_directory(client: GGClient):
"""
Expand Down Expand Up @@ -1225,6 +1227,7 @@ def test_sca_scan_directory(client: GGClient):
)


@pytest.mark.xfail
@my_vcr.use_cassette("test_sca_scan_all_with_params.yaml", ignore_localhost=False)
def test_sca_scan_all_with_params(client: GGClient):
"""
Expand Down Expand Up @@ -1254,6 +1257,7 @@ def test_sca_scan_all_with_params(client: GGClient):
assert "GHSA-22wc-c9wj-6q2v" not in (vuln.identifier for vuln in vuln_pkg.vulns)


@pytest.mark.xfail
@my_vcr.use_cassette("test_sca_scan_directory_invalid_tar.yaml", ignore_localhost=False)
def test_sca_scan_directory_invalid_tar(client: GGClient):
"""
Expand All @@ -1269,6 +1273,7 @@ def test_sca_scan_directory_invalid_tar(client: GGClient):
assert response.status_code == 400


@pytest.mark.xfail
@my_vcr.use_cassette("test_sca_client_scan_diff.yaml", ignore_localhost=False)
def test_sca_client_scan_diff(client: GGClient):
"""
Expand All @@ -1287,6 +1292,7 @@ def test_sca_client_scan_diff(client: GGClient):
assert result.scanned_files == ["Pipfile", "Pipfile.lock"]


@pytest.mark.xfail
@my_vcr.use_cassette(
"test_sca_client_scan_diff_with_params.yaml", ignore_localhost=False
)
Expand Down
Loading