Add new test for generic hash feature#10538
Closed
congh-nvidia wants to merge 1 commit intosonic-net:masterfrom
Closed
Add new test for generic hash feature#10538congh-nvidia wants to merge 1 commit intosonic-net:masterfrom
congh-nvidia wants to merge 1 commit intosonic-net:masterfrom
Conversation
roy-sror
reviewed
Nov 6, 2023
tests/common/devices/sonic.py
Outdated
Contributor
There was a problem hiding this comment.
**is_**interface_status_up would be more clear
tests/hash/conftest.py
Outdated
Contributor
There was a problem hiding this comment.
is it possible to list all the available ones?
c397ded to
08c3665
Compare
Add nine test cases according to test plan: https://github.com/sonic-net/sonic-mgmt/blob/master/docs/testplan/Generic-Hash-test-plan.md 6 files added/updated: conftest.py: the conftest for generic hash test generic_hash_test.py: the ptf test file sonic.py: add functions for generic hash cli generic_hash_helper.py: helper file of the test test_generic_hash.py: pytest file of the test test_pretest.py: update the metadata to store the global hash capabilities of the dut
08c3665 to
cb86989
Compare
Contributor
Author
|
Since the Hash Algorithm feature has been merged to master, we need to align the test with it. This part of work is being handled by @echuawu. Close this draft and Chuan will open a new one based on this. |
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:
Add nine test cases according to test plan:
https://github.com/sonic-net/sonic-mgmt/blob/master/docs/testplan/Generic-Hash-test-plan.md
For now, the test contains the validation for hash fields IN_PORT, SRC_MAC, DST_MAC, ETHERTYPE, VLAN_ID, L4_SRC_PORT, L4_DST_PORT, IP_PROTOCOL, INNER_SRC_IP, INNER_DST_IP. Test for other field will be added in future.
The test covers IPv4 and IPv6, vxlan/nvgre/ipinip encapsulations.
By default, the test is executed in random mode, the test parameters(including hash filed, ip version, encapsulation, reboot type) are generated randomly. The parameters can also be specified by pytest options.
Type of change
Back port request
Approach
What is the motivation for this PR?
Add new test for generic hash feature.
How did you do it?
How did you verify/test it?
Run test on Nvidia testbeds.
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation