[pytest] Add test_gen_spytestbed.py to generate Spytest testbed file#2015
Merged
lolyu merged 2 commits intosonic-net:masterfrom Aug 11, 2020
Merged
[pytest] Add test_gen_spytestbed.py to generate Spytest testbed file#2015lolyu merged 2 commits intosonic-net:masterfrom
lolyu merged 2 commits intosonic-net:masterfrom
Conversation
For graph files that includes links between DUTs(`fullmesh` topo for Spytest), `conn_graph_facts` should skip those links when parsing vlan configs for links(connected to Fanout switch). Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
8563ee5 to
b0fde62
Compare
test_gen_spytestbed.py to generate Spytest testbed fileb0fde62 to
b5db019
Compare
de4469d to
25163ac
Compare
3a8e7e3 to
2c59916
Compare
* Add template file `tests/template/spytest_testbed.yaml.j2` as the testbed template. * Add a testcase: `tests/testbed_setup/test_gen_spy_testbed.py::test_gen_spy_testbed` to generate the testbed file for Spytest and save as `spytest/testbeds/spytest_testbed.yaml`. Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
2c59916 to
d8f4ad1
Compare
Collaborator
Author
|
retest this please. |
daall
reviewed
Aug 5, 2020
Contributor
daall
left a comment
There was a problem hiding this comment.
Is there an example spytest testbed file somewhere? This looks OK to me but I am also not 100% sure what the end result is supposed to look like. :)
daall
reviewed
Aug 6, 2020
daall
approved these changes
Aug 11, 2020
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
c31a362 - 2021-11-18 : [202012][Mux orch] set default as standby, change mux orch priority (sonic-net#2015) [Prince Sunny] 9a9e8e6 - 2021-11-18 : [202012] Check VS test failure (sonic-net#2033) [Prince Sunny] 7eaabca - 2021-11-11 : [202012] Fix random failure in PR/CI build. (sonic-net#2016) [Shilong Liu] 85230fe - 2021-11-04 : [orchagent] Fix group name of port-buffer-drop in flexcounterorch.cpp (sonic-net#1967) [Junchao-Mellanox] a55c2ca - 2021-11-03 : [teammgrd]: Handle LAGs cleanup gracefully on Warm/Fast reboot. (sonic-net#1934) [Nazarii Hnydyn]
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
51712aa [build-failure-fix][GCU] Sort referrer paths alphabetically (sonic-net#2015)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
Summary:
Fixes # (issue)
Type of change
tests/template/spytest_testbed.yaml.j2as thetestbed template.
tests/testbed_setup/test_gen_spy_testbed.py::test_gen_spy_testbedtogenerate the testbed file for Spytest and save as
spytest/testbeds/spytest_testbed.yaml.Approach
What is the motivation for this PR?
To automate the process to generate testbed file from the connection graph files.
How did you do it?
How did you verify/test it?
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation