@@ -707,21 +707,24 @@ def test_CrmSnatEntry(self, dvs, testlog):
707
707
# get counters
708
708
used_counter = getCrmCounterValue (dvs , 'STATS' , 'crm_stats_snat_entry_used' )
709
709
avail_counter = getCrmCounterValue (dvs , 'STATS' , 'crm_stats_snat_entry_available' )
710
- assert avail_counter != 0
710
+ assert used_counter == 0
711
+ assert avail_counter != 0
711
712
712
713
def test_CrmDnatEntry (self , dvs , testlog ):
713
714
714
715
# get counters
715
716
used_counter = getCrmCounterValue (dvs , 'STATS' , 'crm_stats_dnat_entry_used' )
716
717
avail_counter = getCrmCounterValue (dvs , 'STATS' , 'crm_stats_dnat_entry_available' )
717
- assert avail_counter != 0
718
+ assert used_counter == 0
719
+ assert avail_counter != 0
718
720
719
721
def test_CrmIpmcEntry (self , dvs , testlog ):
720
722
721
723
# get counters
722
724
used_counter = getCrmCounterValue (dvs , 'STATS' , 'crm_stats_ipmc_entry_used' )
723
725
avail_counter = getCrmCounterValue (dvs , 'STATS' , 'crm_stats_ipmc_entry_available' )
724
- assert avail_counter != 0
726
+ assert used_counter == 0
727
+ assert avail_counter != 0
725
728
726
729
def test_Configure (self , dvs , testlog ):
727
730
@@ -965,11 +968,11 @@ def test_Configure_ipmc(self, dvs, testlog):
965
968
dvs.runcmd("crm config thresholds ipmc type percentage")
966
969
967
970
time.sleep(2)
968
- threshold_low = getCrmConfigValue(dvs, 'Config', 'snat_entry_low_threshold ')
971
+ threshold_low = getCrmConfigValue(dvs, 'Config', 'ipmc_entry_low_threshold ')
969
972
assert threshold_low == 50
970
- threshold_high = getCrmConfigValue(dvs, 'Config', 'snat_entry_high_threshold ')
973
+ threshold_high = getCrmConfigValue(dvs, 'Config', 'ipmc_entry_high_threshold ')
971
974
assert threshold_high == 90
972
- threshold_type = getCrmConfigStr(dvs, 'Config', 'snat_entry_threshold_type ')
975
+ threshold_type = getCrmConfigStr(dvs, 'Config', 'ipmc_entry_threshold_type ')
973
976
assert threshold_type == 'percentage'
974
977
'''
975
978
0 commit comments