Merging upstream version 1.1.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
50f8dbf7e8
commit
2044ea6182
196 changed files with 10121 additions and 3780 deletions
|
@ -19,12 +19,12 @@ if TYPE_CHECKING:
|
|||
@pytest.mark.parametrize(
|
||||
("command", "ofmt", "version", "revision", "device", "failed"),
|
||||
[
|
||||
pytest.param("show version", "json", None, None, "dummy", False, id="json command"),
|
||||
pytest.param("show version", "text", None, None, "dummy", False, id="text command"),
|
||||
pytest.param("show version", None, "latest", None, "dummy", False, id="version-latest"),
|
||||
pytest.param("show version", None, "1", None, "dummy", False, id="version"),
|
||||
pytest.param("show version", None, None, 3, "dummy", False, id="revision"),
|
||||
pytest.param("undefined", None, None, None, "dummy", True, id="command fails"),
|
||||
pytest.param("show version", "json", None, None, "leaf1", False, id="json command"),
|
||||
pytest.param("show version", "text", None, None, "leaf1", False, id="text command"),
|
||||
pytest.param("show version", None, "latest", None, "leaf1", False, id="version-latest"),
|
||||
pytest.param("show version", None, "1", None, "leaf1", False, id="version"),
|
||||
pytest.param("show version", None, None, 3, "leaf1", False, id="revision"),
|
||||
pytest.param("undefined", None, None, None, "leaf1", True, id="command fails"),
|
||||
pytest.param("undefined", None, None, None, "doesnotexist", True, id="Device does not exist"),
|
||||
],
|
||||
)
|
||||
|
@ -38,7 +38,6 @@ def test_run_cmd(
|
|||
failed: bool,
|
||||
) -> None:
|
||||
"""Test `anta debug run-cmd`."""
|
||||
# pylint: disable=too-many-arguments
|
||||
cli_args = ["-l", "debug", "debug", "run-cmd", "--command", command, "--device", device]
|
||||
|
||||
# ofmt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue