fib test failed due to "AttributeError: TestHash instance has no attribute 'thresholds'". Error information:
============================================================ ERRORS =============================================================
___________________________________________ ERROR at setup of TestHash.test_hash_ipv4 ___________________________________________
self = <test_fib.TestHash instance at 0x7f150403ed88>
dut_ssh = <common.plugins.dut_monitor.pytest_dut_monitor.DUTMonitorClient object at 0x7f15044afc90>
localhost = <common.devices.Localhost object at 0x7f1504a0ad10>, duthost = <common.devices.SonicHost object at 0x7f1505cea250>
@pytest.fixture(autouse=True, scope="function")
def dut_monitor(self, dut_ssh, localhost, duthost):
"""
For each test item starts monitoring of hardware resources consumption on the DUT
"""
dut_thresholds = {}
monitor_exceptions = []
# Start monitoring on DUT
dut_ssh.start()
logger.info("print self for debug: {}".format(dir(self)))
# Read file with defined thresholds
> with open(self.thresholds) as stream:
E AttributeError: TestHash instance has no attribute 'thresholds'
Steps to reproduce the issue:
Run fib test.
Describe the results you received:
============================================================ ERRORS =============================================================
___________________________________________ ERROR at setup of TestHash.test_hash_ipv4 ___________________________________________
self = <test_fib.TestHash instance at 0x7f150403ed88>
dut_ssh = <common.plugins.dut_monitor.pytest_dut_monitor.DUTMonitorClient object at 0x7f15044afc90>
localhost = <common.devices.Localhost object at 0x7f1504a0ad10>, duthost = <common.devices.SonicHost object at 0x7f1505cea250>
@pytest.fixture(autouse=True, scope="function")
def dut_monitor(self, dut_ssh, localhost, duthost):
"""
For each test item starts monitoring of hardware resources consumption on the DUT
"""
dut_thresholds = {}
monitor_exceptions = []
# Start monitoring on DUT
dut_ssh.start()
logger.info("print self for debug: {}".format(dir(self)))
# Read file with defined thresholds
> with open(self.thresholds) as stream:
E AttributeError: TestHash instance has no attribute 'thresholds'
Describe the results you expected:
No error.
fib test failed due to "AttributeError: TestHash instance has no attribute 'thresholds'". Error information:
Steps to reproduce the issue:
Run fib test.
Describe the results you received:
Describe the results you expected:
No error.