Skip to content

Commit

Permalink
cli test, all ls entities that do not need input are added.
Browse files Browse the repository at this point in the history
  • Loading branch information
foroughsh committed Aug 25, 2024
1 parent f710b6f commit 99c9d84
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions simulation-system/libs/csle-cli/tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,83 @@ def test_ls_nginx(self) -> None:
runner = CliRunner()
result = runner.invoke(ls, ["nginx"])
assert result.exit_code == 0

def test_ls_postgresql(self) -> None:
"""
Tests the ls command for postgresql
:return: None
"""
runner = CliRunner()
result = runner.invoke(ls, ["postgresql"])
assert result.exit_code == 0

def test_ls_docker(self) -> None:
"""
Tests the ls command for docker
:return: None
"""
runner = CliRunner()
result = runner.invoke(ls, ["docker"])
assert result.exit_code == 0

def test_ls_pgadmin(self) -> None:
"""
Tests the ls command for pgadmin
:return: None
"""
runner = CliRunner()
result = runner.invoke(ls, ["pgadmin"])
assert result.exit_code == 0

def test_ls_grafana(self) -> None:
"""
Tests the ls command for grafana
:return: None
"""
runner = CliRunner()
result = runner.invoke(ls, ["grafana"])
assert result.exit_code == 0

def test_ls_flask(self) -> None:
"""
Tests the ls command for flask
:return: None
"""
runner = CliRunner()
result = runner.invoke(ls, ["flask"])
assert result.exit_code == 0

def test_ls_statsmanager(self) -> None:
"""
Tests the ls command for statsmanager
:return: None
"""
runner = CliRunner()
result = runner.invoke(ls, ["statsmanager"])
assert result.exit_code == 0

def test_ls_simulations(self) -> None:
"""
Tests the ls command for simulations
:return: None
"""
runner = CliRunner()
result = runner.invoke(ls, ["simulations"])
assert result.exit_code == 0

def test_ls_emulation_executions(self) -> None:
"""
Tests the ls command for emulation_executions
:return: None
"""
runner = CliRunner()
result = runner.invoke(ls, ["emulation_executions"])
assert result.exit_code == 0

0 comments on commit 99c9d84

Please sign in to comment.