GCU adding Multi-ASIC support in existing test code base#14070
GCU adding Multi-ASIC support in existing test code base#14070okaravasi wants to merge 8 commits intosonic-net:masterfrom
Conversation
Signed-off-by: karavasi <olympia.karavasili_arapogianni@nokia.com>
…test_monitor_config for function arguments
…back4096 from changes
|
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
|
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
|
@okaravasi Thanks for the making this change. The PR is too big, it is modifying multiple tests. Can you please breakdown the changes in multiple smaller PR( maybe 1 PR per test). This will help in review and the changes can be merged faster |
@arlakshm Sure, I am on it. I will keep the common changes under this PR and create separate PRs for each test suite. I will link the PRs when done. Thanks. |
|
This PR has been splitted to separate Test PRs. Closing as duplicate. |
Description of PR
Summary:
This PR adds Multi-ASIC support for generic config updater (GCU) existing suites.
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
To add Multi-ASIC test support for GCU suites.
How did you do it?
DUT Host Selection
With T2 topology support added, the fixture used for DUT host selection has been updated. Some test suites are designed to run on any type of DUT host, while others are specific to frontend DUT hosts.
To accommodate this:
The following fixture replacements were made where frontend DUT hosts are required:
Suite autouse fixtures were also updated to work transparently for both frontend-only and general DUT host suites. A new fixture , anmed "selected_dut_hostname", was created for use across setup/teardown fixtures:
Random Selection of ASIC Namespace
For multi-ASIC platform testing, new fixtures were created to select an ASIC randomly from the DUT host’s available namespaces, returning a tuple with the ASIC namespace and ID:
Test Case Updates
In each suite, support was added as follows:
These changes ensure no modifications are needed for existing single-ASIC platform tests.
How did you verify/test it?
Ran the full test scope of the updated suites and verified that they pass.
Ran on vs-kvm-t0. Ran on physical device t2.
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation