-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(anta): Update VerifySnmpContact , VerifySnmpLocation tests t…
…o have a more human readable format for the test result failures messages (#806)
- Loading branch information
1 parent
522ae9d
commit abdaea1
Showing
2 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,6 +99,20 @@ | |
"messages": ["Expected `New York` as the location, but found `Europe` instead."], | ||
}, | ||
}, | ||
{ | ||
"name": "failure-details-not-configured", | ||
"test": VerifySnmpLocation, | ||
"eos_data": [ | ||
{ | ||
"location": {"location": ""}, | ||
} | ||
], | ||
"inputs": {"location": "New York"}, | ||
"expected": { | ||
"result": "failure", | ||
"messages": ["SNMP location is not configured."], | ||
}, | ||
}, | ||
{ | ||
"name": "success", | ||
"test": VerifySnmpContact, | ||
|
@@ -124,4 +138,18 @@ | |
"messages": ["Expected `[email protected]` as the contact, but found `[email protected]` instead."], | ||
}, | ||
}, | ||
{ | ||
"name": "failure-details-not-configured", | ||
"test": VerifySnmpContact, | ||
"eos_data": [ | ||
{ | ||
"contact": {"contact": ""}, | ||
} | ||
], | ||
"inputs": {"contact": "[email protected]"}, | ||
"expected": { | ||
"result": "failure", | ||
"messages": ["SNMP contact is not configured."], | ||
}, | ||
}, | ||
] |