Skip to content

[multi-dut] Make test_posttest and test_pretest multi-dut ready#2475

Merged
vaibhavhd merged 2 commits intosonic-net:masterfrom
vaibhavhd:pre_post_test_multi-dut
Nov 6, 2020
Merged

[multi-dut] Make test_posttest and test_pretest multi-dut ready#2475
vaibhavhd merged 2 commits intosonic-net:masterfrom
vaibhavhd:pre_post_test_multi-dut

Conversation

@vaibhavhd
Copy link
Contributor

Description of PR

Summary: Make test_posttest and test_pretest multi-dut ready
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Approach

Make test_posttest and test_pretest multi-dut ready

What is the motivation for this PR?

MULTI-DUT test conversion.

How did you do it?

Incorporated the new duthosts fixture to test both DUTs in multi-dut setup.
In case of test_update_testbed_metadata -- new changes are added to handle two DUTs' information in one testbed dict.

How did you verify/test it?

Executed pre and post tests locally successfully.

test_pretest

PASSED                                                                                                                                                                                                                                               [ 12%]
test_pretest.py::test_cleanup_testbed[str2-7050cx3-acs-09]
------- live log setup -----
PASSED                                                                                                                                                                                                                                               [ 25%]
test_pretest.py::test_disable_container_autorestart[str2-7050cx3-acs-08]
------- live log setup -----
------- live log call -----
22:32:27 INFO test_pretest.py:test_disable_container_autorestart:46: Disable container autorestart
PASSED                                                                                                                                                                                                                                               [ 37%]
test_pretest.py::test_disable_container_autorestart[str2-7050cx3-acs-09]
------- live log setup -----
------- live log call -----
22:33:07 INFO test_pretest.py:test_disable_container_autorestart:46: Disable container autorestart
PASSED                                                                                                                                                                                                                                               [ 50%]
test_pretest.py::test_update_testbed_metadata[str2-7050cx3-acs-08]
------- live log setup -----
PASSED                                                                                                                                                                                                                                               [ 62%]
test_pretest.py::test_update_testbed_metadata[str2-7050cx3-acs-09]
------- live log setup -----
PASSED                                                                                                                                                                                                                                               [ 75%]
test_pretest.py::test_disable_rsyslog_rate_limit[str2-7050cx3-acs-08]
------- live log setup -----
PASSED                                                                                                                                                                                                                                               [ 87%]
test_pretest.py::test_disable_rsyslog_rate_limit[str2-7050cx3-acs-09]
------- live log setup -----
PASSED                                                                                                                                                                                                                                               [100%]
------- live log teardown -----
22:34:41 INFO __init__.py:sanity_check:127: Start post-test sanity check
22:34:41 INFO __init__.py:sanity_check:130: No post-test check is required. Done post-test sanity check

test_posttest:

------- live log call -----
22:45:12 INFO test_posttest.py:test_collect_techsupport:26: Collecting techsupport since yesterday
PASSED                                                                                                                                                                                                                                               [ 16%]
test_posttest.py::test_collect_techsupport[str2-7050cx3-acs-09]
------- live log setup -----
22:46:08 INFO __init__.py:loganalyzer:16: Log analyzer is disabled
------- live log call -----
22:46:08 INFO test_posttest.py:test_collect_techsupport:26: Collecting techsupport since yesterday
PASSED                                                                                                                                                                                                                                               [ 33%]
test_posttest.py::test_restore_container_autorestart[str2-7050cx3-acs-08]
------- live log setup -----
22:47:03 INFO __init__.py:loganalyzer:16: Log analyzer is disabled
------- live log call -----
22:47:04 INFO test_posttest.py:test_restore_container_autorestart:48: Recover container autorestart
PASSED                                                                                                                                                                                                                                               [ 50%]
test_posttest.py::test_restore_container_autorestart[str2-7050cx3-acs-09]
------- live log setup -----
22:47:41 INFO __init__.py:loganalyzer:16: Log analyzer is disabled
------- live log call -----
22:47:42 INFO test_posttest.py:test_restore_container_autorestart:48: Recover container autorestart
PASSED                                                                                                                                                                                                                                               [ 66%]
test_posttest.py::test_recover_rsyslog_rate_limit[str2-7050cx3-acs-08]
------- live log setup -----
22:48:19 INFO __init__.py:loganalyzer:16: Log analyzer is disabled
PASSED                                                                                                                                                                                                                                               [ 83%]
test_posttest.py::test_recover_rsyslog_rate_limit[str2-7050cx3-acs-09]
------- live log setup -----
22:48:46 INFO __init__.py:loganalyzer:16: Log analyzer is disabled
PASSED                                                                                                                                                                                                                                               [100%]

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@yxieca yxieca self-requested a review November 5, 2020 23:44
@vaibhavhd vaibhavhd merged commit 0ca783a into sonic-net:master Nov 6, 2020
@vaibhavhd vaibhavhd deleted the pre_post_test_multi-dut branch November 6, 2020 07:38
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…bmodule head (sonic-net#12264)

linkmgrd:
* 44f182b 2022-10-03 | [Active-Standby] fix syslog flood caused by `unkown -> standby` switchovers  (sonic-net#137) (HEAD -> 202205) [Jing Zhang]
* 9284ce1 2022-09-26 | [Active-Active] avoid being stuck in `unknown` after process init (sonic-net#136) [Jing Zhang]
* 55711d7 2022-09-16 | Install libyang to azure pipeline (sonic-net#132) [Hua Liu]

swss:
* 2f7da1e 2022-09-30 | [build] add missing package libyang-dev in lgtm.yml (sonic-net#2475) (HEAD -> 202205, github/202205) [Qi Luo]

platform-daemon:
* 5b96170 2022-09-23 | add support to execute new ycable API's, add datetime field to mux_info (sonic-net#297) (HEAD -> 202205) [vdahiya12]

platform-common:
* de1bd8e 2022-09-28 | Remove shell=True (sonic-net#313) (HEAD -> 202205) [Mai Bui]
* 77760bf 2022-09-23 | [credo][ycable] remove mux-toggle inprogress flags for some API's (sonic-net#311) [vdahiya12]

Signed-off-by: Ying Xie <[email protected]>

Signed-off-by: Ying Xie <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants