Skip to content

Commit

Permalink
fix test cisco asa
Browse files Browse the repository at this point in the history
  • Loading branch information
jedupau committed Nov 18, 2024
1 parent a1eb619 commit c763414
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions snmp/tests/test_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -2142,6 +2142,7 @@ def assert_cisco_asa(aggregator, profile):
rtt_types = [22, 21, 17, 6, 20, 8, 16]
rtt_states = [3, 1, 6, 4, 6, 1, 6]
rtt_senses = [13, 30, 2, 21, 19, 20, 27]
rtt_timeouts = [1, 1, 2, 2, 1, 2, 1]
rtt_gauges = ['rttMonLatestRttOperCompletionTime', 'rttMonLatestRttOperSense']
for i in range(len(rtt_indexes)):
tags = [
Expand All @@ -2158,10 +2159,9 @@ def assert_cisco_asa(aggregator, profile):
"rtt_index:{}".format(rtt_indexes[i]),
"rtt_type:{}".format(rtt_types[i]),
"rtt_state:{}".format(rtt_states[i]),
"rtt_timeout:{}".format(rtt_timeouts[i]),
] + common_tags
aggregator.assert_metric(
'snmp.rttMonCtrlOperTimeoutOccurred', metric_type=aggregator.GAUGE, tags=tags
)
aggregator.assert_metric('snmp.rttMonCtrlOperTimeoutOccurred', metric_type=aggregator.GAUGE, tags=tags)

aggregator.assert_all_metrics_covered()
aggregator.assert_metrics_using_metadata(get_metadata_metrics(), check_submission_type=True)
Expand Down

0 comments on commit c763414

Please sign in to comment.