Commit bc87f3a
authored
Fix test container_checker monit flaky issue. (#21218)
These changes fix the sonic-mgmt test "container_checker.py" flaky issue by fixing
the following issues in pytest fixture "update_monit_service":
- fixing bug updating monit conf "/etc/monit/conf.d/sonic-host" for
container_checker periodicity.
(Currently the sed commands are updating the last line rule, which does not
correctly update the container_checker alert periodicity rule.)
- Adds wait_until after monit restart, to ensure tests are running when monit
is properly up.
related bug: aristanetworks/sonic-qual.msft#9061 parent 62d0c77 commit bc87f3a
1 file changed
+14
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
81 | 86 | | |
82 | 87 | | |
83 | 88 | | |
| |||
99 | 104 | | |
100 | 105 | | |
101 | 106 | | |
102 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
103 | 113 | | |
104 | | - | |
105 | | - | |
| 114 | + | |
106 | 115 | | |
107 | 116 | | |
108 | 117 | | |
109 | 118 | | |
| 119 | + | |
| 120 | + | |
110 | 121 | | |
111 | 122 | | |
112 | 123 | | |
| |||
0 commit comments