Skip to content

Commit 6173eb3

Browse files
committed
fix(tests): replace broken repository to a new one
1 parent ca0ee49 commit 6173eb3

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

tests/test_all_sasts.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@ def test_included() -> None:
4343
def test_analyze(monkeypatch: pytest.MonkeyPatch) -> None:
4444
"""Test the 'allsast analyze' command."""
4545
logging.info("Testing All SAST analyze command on Java code") # Support Java only
46-
git.Repo.clone_from("https://github.com/ScaleSec/vulnado.git", "/tmp/vulnado")
47-
monkeypatch.chdir("/tmp/vulnado")
46+
git.Repo.clone_from("https://github.com/appsecco/dvja.git", "/tmp/dvja")
47+
monkeypatch.chdir("/tmp/dvja")
4848

49-
retcode, stdout = run_command(
50-
"./mvnw clean compile".split(" "), cwd=Path("/tmp/vulnado")
51-
)
49+
retcode, stdout = run_command("mvn clean compile".split(" "), cwd=Path("/tmp/dvja"))
5250
assert retcode == 0
5351

5452
result = runner.invoke(
@@ -62,21 +60,21 @@ def test_list() -> None:
6260
logging.info("Testing All SAST list command on Java code")
6361
result = runner.invoke(build_cli(), ["list"])
6462
assert result.exit_code == 0
65-
assert "vulnado" in result.output
63+
assert "dvja" in result.output
6664

6765

6866
def test_plot() -> None:
6967
"""Test the 'allsast plot' command."""
7068
logging.info("Testing All SAST plot command on Java code")
71-
result = runner.invoke(build_cli(), ["plot", "vulnado"])
69+
result = runner.invoke(build_cli(), ["plot", "dvja"])
7270
assert result.exit_code == 0
73-
assert (all_sast.output_dir / "vulnado" / "_figures").is_dir()
71+
assert (all_sast.output_dir / "dvja" / "_figures").is_dir()
7472

7573

7674
def test_report() -> None:
7775
"""Test the 'allsast report' command."""
7876
logging.info("Testing All SAST report command on Java code")
79-
result = runner.invoke(build_cli(), ["report", "vulnado"])
77+
result = runner.invoke(build_cli(), ["report", "dvja"])
8078
assert result.exit_code == 0
81-
assert (all_sast.output_dir / "vulnado" / "report").is_dir()
82-
assert list((all_sast.output_dir / "vulnado" / "report").glob("*.html"))
79+
assert (all_sast.output_dir / "dvja" / "report").is_dir()
80+
assert list((all_sast.output_dir / "dvja" / "report").glob("*.html"))

0 commit comments

Comments
 (0)