Skip to content

Commit

Permalink
updated unit test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
vitthalmagadum committed Jan 9, 2025
1 parent 6997a9e commit 52377f0
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions tests/units/anta_tests/test_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
arp-inspection Enabled 30
"""
],
"inputs": {"reasons": [{"reason": "acl", "timer_interval": 300}, {"reason": "bpduguard", "timer_interval": 300}]},
"inputs": {"reasons": [{"reason": "acl", "interval": 300}, {"reason": "bpduguard", "interval": 300}]},
"expected": {"result": "success"},
},
{
Expand All @@ -144,9 +144,7 @@
arp-inspection Enabled 30
"""
],
"inputs": {
"reasons": [{"reason": "acl", "timer_interval": 300}, {"reason": "arp-inspection", "timer_interval": 30}, {"reason": "tapagg", "timer_interval": 30}]
},
"inputs": {"reasons": [{"reason": "acl", "interval": 300}, {"reason": "arp-inspection", "interval": 30}, {"reason": "tapagg", "interval": 30}]},
"expected": {
"result": "failure",
"messages": ["Reason: tapagg Status: Enabled Interval: 30 - Not found"],
Expand All @@ -164,7 +162,7 @@
arp-inspection Enabled 30
"""
],
"inputs": {"reasons": [{"reason": "acl", "timer_interval": 300}, {"reason": "arp-inspection", "timer_interval": 30}]},
"inputs": {"reasons": [{"reason": "acl", "interval": 300}, {"reason": "arp-inspection", "interval": 30}]},
"expected": {
"result": "failure",
"messages": ["Reason: acl Status: Enabled Interval: 300 - Incorrect configuration - Status: Disabled Interval: 300"],
Expand All @@ -182,7 +180,7 @@
arp-inspection Enabled 30
"""
],
"inputs": {"reasons": [{"reason": "acl", "timer_interval": 30}, {"reason": "arp-inspection", "timer_interval": 30}]},
"inputs": {"reasons": [{"reason": "acl", "interval": 30}, {"reason": "arp-inspection", "interval": 30}]},
"expected": {
"result": "failure",
"messages": [
Expand All @@ -202,9 +200,7 @@
arp-inspection Enabled 30
"""
],
"inputs": {
"reasons": [{"reason": "acl", "timer_interval": 30}, {"reason": "arp-inspection", "timer_interval": 300}, {"reason": "tapagg", "timer_interval": 30}]
},
"inputs": {"reasons": [{"reason": "acl", "interval": 30}, {"reason": "arp-inspection", "interval": 300}, {"reason": "tapagg", "interval": 30}]},
"expected": {
"result": "failure",
"messages": [
Expand Down

0 comments on commit 52377f0

Please sign in to comment.