From d5ab7bd35f04641a70e536636d77534ca367d2e3 Mon Sep 17 00:00:00 2001 From: foroogh shahab Date: Sun, 15 Sep 2024 18:07:10 +0200 Subject: [PATCH] cli test, all ls entities that do not need input are added. --- .../libs/csle-cli/tests/test_cli.py | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/simulation-system/libs/csle-cli/tests/test_cli.py b/simulation-system/libs/csle-cli/tests/test_cli.py index 9a8c7c1f1..a9acba541 100644 --- a/simulation-system/libs/csle-cli/tests/test_cli.py +++ b/simulation-system/libs/csle-cli/tests/test_cli.py @@ -188,3 +188,23 @@ def test_ls_emulation_executions(self) -> None: runner = CliRunner() result = runner.invoke(ls, ["emulation_executions"]) assert result.exit_code == 0 + + def test_ls_cluster(self) -> None: + """ + Tests the ls command for clsuter + + :return: None + """ + runner = CliRunner() + result = runner.invoke(ls, ["cluster"]) + assert result.exit_code == 0 + + def test_ls_images(self) -> None: + """ + Tests the ls command for images + + :return: None + """ + runner = CliRunner() + result = runner.invoke(ls, ["images"]) + assert result.exit_code == 0