Debian Codegraph @

tests/units/anta_tests/test_lanz.py

raw symbols SCIP
1 # Copyright (c) 2023-2026 Arista Networks, Inc.
2 # Use of this source code is governed by the Apache License 2.0
3 # that can be found in the LICENSE file.
4 """Data for testing anta.tests.lanz."""
5
6 from __future__ import annotations
7
8 import sys
9 from typing import TYPE_CHECKING, Any
10
11 from anta.models import AntaTest
12 from anta.result_manager.models import AntaTestStatus
13 from anta.tests.lanz import VerifyLANZ
14 from tests.units.anta_tests import test
15
16 if TYPE_CHECKING:
17 from tests.units.anta_tests import AntaUnitTestData
18
19 DATA: AntaUnitTestData = {
20 (VerifyLANZ, "success"): {"eos_data": [{"lanzEnabled": True}], "expected": {"result": AntaTestStatus.SUCCESS}},
21 (VerifyLANZ, "failure"): {
22 "eos_data": [{"lanzEnabled": False}],
23 "expected": {"result": AntaTestStatus.FAILURE, "messages": ["LANZ is not enabled"]},
24 },
25 }