2025-02-05 11:32:35 +01:00
|
|
|
# Copyright (c) 2023-2024 Arista Networks, Inc.
|
|
|
|
# Use of this source code is governed by the Apache License 2.0
|
|
|
|
# that can be found in the LICENSE file.
|
2025-02-05 11:39:09 +01:00
|
|
|
"""Data for testing anta.tests.lanz."""
|
|
|
|
|
2025-02-05 11:32:35 +01:00
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
from typing import Any
|
|
|
|
|
|
|
|
from anta.tests.lanz import VerifyLANZ
|
2025-02-05 11:54:55 +01:00
|
|
|
from tests.units.anta_tests import test
|
2025-02-05 11:32:35 +01:00
|
|
|
|
|
|
|
DATA: list[dict[str, Any]] = [
|
|
|
|
{
|
|
|
|
"name": "success",
|
|
|
|
"test": VerifyLANZ,
|
|
|
|
"eos_data": [{"lanzEnabled": True}],
|
|
|
|
"inputs": None,
|
2025-02-05 11:39:09 +01:00
|
|
|
"expected": {"result": "success"},
|
2025-02-05 11:32:35 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "failure",
|
|
|
|
"test": VerifyLANZ,
|
|
|
|
"eos_data": [{"lanzEnabled": False}],
|
|
|
|
"inputs": None,
|
|
|
|
"expected": {"result": "failure", "messages": ["LANZ is not enabled"]},
|
|
|
|
},
|
|
|
|
]
|