Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pytest] Skip testing the format of alerting message from Monit on 20…
…2012 image (#3559) What is the motivation for this PR? Since Supervisord will replace Monit to do the monitoring of critical processes, this test needs skip the testbeds which were installed with 202012 or newer image version. At the same time, this test needs handle the error if the command sudo monit status 'lldp|lldpmgrd' returns the non-zero exit code. I met the following error message when this PR (sonic-net/sonic-buildimage#7676) was tested on virtual testbed. monit/test_monit_status.py::test_monit_status[vlab-03] PASSED [ 50%] monit/test_monit_status.py::test_monit_reporting_message[vlab-03] -------------------------------- live log call --------------------------------- 02:11:26 utilities.wait_until L0068 ERROR | Exception caught while checking check_monit_last_output: IndexError('list index out of range',) 02:12:26 utilities.wait_until L0068 ERROR | Exception caught while checking check_monit_last_output: IndexError('list index out of range',) 02:13:27 utilities.wait_until L0068 ERROR | Exception caught while checking check_monit_last_output: IndexError('list index out of range',) FAILED How did you do it? I used the pytest_require(...) to skip the testbed which were installed 202012 or newer image version. How did you verify/test it? I verified this change on the testbed str-msn2700-03. Any platform specific information? N/A Supported testbed topology if it's a new test case? N/A
- Loading branch information