diff options
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/__init__.py | 1 | ||||
-rw-r--r-- | tests/data/json_data.py | 15 | ||||
-rw-r--r-- | tests/data/test_catalog_with_tags.yml | 4 |
3 files changed, 13 insertions, 7 deletions
diff --git a/tests/data/__init__.py b/tests/data/__init__.py index e772bee..864da68 100644 --- a/tests/data/__init__.py +++ b/tests/data/__init__.py @@ -1,3 +1,4 @@ # 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. +"""Data for unit tests.""" diff --git a/tests/data/json_data.py b/tests/data/json_data.py index ad2c9ed..5630840 100644 --- a/tests/data/json_data.py +++ b/tests/data/json_data.py @@ -2,6 +2,7 @@ # Use of this source code is governed by the Apache License 2.0 # that can be found in the LICENSE file. # pylint: skip-file +"""JSON Data for unit tests.""" INVENTORY_MODEL_HOST_VALID = [ {"name": "validIPv4", "input": "1.1.1.1", "expected_result": "valid"}, @@ -92,7 +93,7 @@ INVENTORY_MODEL_VALID = [ "ranges": [ {"start": "10.1.0.1", "end": "10.1.0.10"}, {"start": "10.2.0.1", "end": "10.2.1.10"}, - ] + ], }, "expected_result": "valid", }, @@ -150,8 +151,8 @@ ANTA_INVENTORY_TESTS_VALID = [ "ranges": [ {"start": "10.0.0.1", "end": "10.0.0.11"}, {"start": "10.0.0.101", "end": "10.0.0.111"}, - ] - } + ], + }, }, "expected_result": "valid", "parameters": { @@ -197,8 +198,8 @@ ANTA_INVENTORY_TESTS_VALID = [ "ranges": [ {"start": "10.0.0.1", "end": "10.0.0.11", "tags": ["leaf"]}, {"start": "10.0.0.101", "end": "10.0.0.111", "tags": ["spine"]}, - ] - } + ], + }, }, "expected_result": "valid", "parameters": { @@ -242,8 +243,8 @@ ANTA_INVENTORY_TESTS_INVALID = [ "ranges": [ {"start": "10.0.0.1", "end": "10.0.0.11"}, {"start": "10.0.0.100", "end": "10.0.0.111"}, - ] - } + ], + }, }, "expected_result": "invalid", }, diff --git a/tests/data/test_catalog_with_tags.yml b/tests/data/test_catalog_with_tags.yml index 0c8f5f6..109781e 100644 --- a/tests/data/test_catalog_with_tags.yml +++ b/tests/data/test_catalog_with_tags.yml @@ -4,6 +4,10 @@ anta.tests.system: minimum: 10 filters: tags: ['fabric'] + - VerifyUptime: + minimum: 9 + filters: + tags: ['leaf'] - VerifyReloadCause: filters: tags: ['leaf', 'spine'] |