summaryrefslogtreecommitdiffstats
path: root/anta/tests/configuration.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--anta/tests/configuration.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/anta/tests/configuration.py b/anta/tests/configuration.py
index 4a1bd31..cff7ec6 100644
--- a/anta/tests/configuration.py
+++ b/anta/tests/configuration.py
@@ -33,8 +33,6 @@ class VerifyZeroTouch(AntaTest):
```
"""
- name = "VerifyZeroTouch"
- description = "Verifies ZeroTouch is disabled"
categories: ClassVar[list[str]] = ["configuration"]
commands: ClassVar[list[AntaCommand | AntaTemplate]] = [AntaCommand(command="show zerotouch", revision=1)]
@@ -64,8 +62,6 @@ class VerifyRunningConfigDiffs(AntaTest):
```
"""
- name = "VerifyRunningConfigDiffs"
- description = "Verifies there is no difference between the running-config and the startup-config"
categories: ClassVar[list[str]] = ["configuration"]
commands: ClassVar[list[AntaCommand | AntaTemplate]] = [AntaCommand(command="show running-config diffs", ofmt="text")]
@@ -98,13 +94,12 @@ class VerifyRunningConfigLines(AntaTest):
```yaml
anta.tests.configuration:
- VerifyRunningConfigLines:
- regex_patterns:
- - "^enable password.*$"
- - "bla bla"
+ regex_patterns:
+ - "^enable password.*$"
+ - "bla bla"
```
"""
- name = "VerifyRunningConfigLines"
description = "Search the Running-Config for the given RegEx patterns."
categories: ClassVar[list[str]] = ["configuration"]
commands: ClassVar[list[AntaCommand | AntaTemplate]] = [AntaCommand(command="show running-config", ofmt="text")]