Commit 88a4e4d
Enhance AgentVoqSwitchWithMultipleDsfNodesTest tests to work in multi-switch mode
Summary:
Hw_agent_tests use fb303 counters to do the tests. In mono mode, this is simply a call to wedge-agent binary. However, tests don't work in multi mode, since these counters are not available in the sw-agent.
For multi-switch mode, get the the client to hwAgent cached in SwSwitch for
the hwAgent, and call getRegexCounters on it.
Reviewed By: msomasundaran
Differential Revision:
D74614472
Privacy Context Container: L1125642
fbshipit-source-id: 39b199cbde1fc2153213562fbc5a41234836d33d1 parent d3a7b04 commit 88a4e4d
File tree
3 files changed
+47
-6
lines changed- fboss/agent/test
- agent_hw_tests
3 files changed
+47
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
731 | 731 | | |
732 | 732 | | |
733 | 733 | | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
734 | 758 | | |
735 | 759 | | |
736 | 760 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
326 | | - | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
327 | 340 | | |
328 | 341 | | |
329 | 342 | | |
330 | 343 | | |
331 | 344 | | |
332 | 345 | | |
333 | 346 | | |
334 | | - | |
335 | | - | |
| 347 | + | |
| 348 | + | |
336 | 349 | | |
337 | 350 | | |
338 | 351 | | |
| |||
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
| 92 | + | |
92 | 93 | | |
93 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
| |||
0 commit comments