Vnet vxlan pytest conversion#2113
Merged
theasianpianist merged 28 commits intosonic-net:masterfrom Aug 31, 2020
Merged
Conversation
* Create pytest specific versions of VNET configuration templates * Add VNET VxLAN pytest module Signed-off-by: Lawrence Lee <[email protected]>
* Fix template formatting * Correct config file location for PTF host Signed-off-by: Lawrence Lee <[email protected]>
* Control whitespace in rendered templates to preserve formatting Signed-off-by: Lawrence Lee <[email protected]>
Signed-off-by: Lawrence Lee <[email protected]>
* Allow multiple modules to access this fixture Signed-off-by: Lawrence Lee <[email protected]>
Signed-off-by: Lawrence Lee <[email protected]>
Signed-off-by: Lawrence Lee <[email protected]>
Signed-off-by: Lawrence Lee <[email protected]>
prsunny
reviewed
Aug 20, 2020
tests/vxlan/vnet_utils.py
Outdated
| for vnet in vc.VNET_CONFIG['vnet_id_list']: | ||
| duthost.shell("docker exec -i database redis-cli -n 4 del \"VNET|{}\"".format(vnet)) | ||
|
|
||
| def cleanup_vxlan_tunnels(duthost): |
Contributor
There was a problem hiding this comment.
We would also want to do cleanup of Vlans. This can be ported once ansible fix is available
Contributor
|
@volodymyrsamotiy , please review |
* Move parser addoption method to test specific conftest.py * Bundle parameters for scaled vnet test into dictionary * Bundle general vnet test parameters into dictionary Signed-off-by: Lawrence Lee <[email protected]>
* Change all imports to match * Create vnet_config fixture for value that was previously in constants file Signed-off-by: Lawrence Lee <[email protected]>
wangxin
reviewed
Aug 21, 2020
* Return instead of yield in setup function * Make variable name clearer * Add pytest topology marker Signed-off-by: Lawrence Lee <[email protected]>
Signed-off-by: Lawrence Lee <[email protected]>
Signed-off-by: Lawrence Lee <[email protected]>
|
This pull request introduces 3 alerts when merging 0bf7d59 into dd43ab3 - view on LGTM.com new alerts:
|
c6206cd to
19dc59d
Compare
Signed-off-by: Lawrence Lee <[email protected]>
19dc59d to
e637822
Compare
daall
reviewed
Aug 21, 2020
Co-authored-by: Danny Allen <[email protected]>
Co-authored-by: Danny Allen <[email protected]>
Signed-off-by: Lawrence Lee <[email protected]>
Signed-off-by: Lawrence Lee <[email protected]>
Signed-off-by: Lawrence Lee <[email protected]>
Signed-off-by: Lawrence Lee <[email protected]>
Contributor
Author
|
retest vsimage please |
Signed-off-by: Lawrence Lee <[email protected]>
Signed-off-by: Lawrence Lee <[email protected]>
Signed-off-by: Lawrence Lee <[email protected]>
Signed-off-by: Lawrence Lee <[email protected]>
Signed-off-by: Lawrence Lee <[email protected]>
Signed-off-by: Lawrence Lee <[email protected]>
Contributor
|
@volodymyrsamotiy for viz |
daall
approved these changes
Aug 27, 2020
Contributor
daall
left a comment
There was a problem hiding this comment.
Two really small suggestions, nothing blocking. Be sure to double-check with @prsunny and @volodymyrsamotiy before merging this. :)
* Fix typo * Update `safe_open_template` method docstring Signed-off-by: Lawrence Lee <[email protected]>
prsunny
approved these changes
Aug 27, 2020
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
Approach
What is the motivation for this PR?
Migrate VNET VxLAN test to pytest framework
How did you do it?
How did you verify/test it?
--skip_cleanupand verify that cleanup step is skipped--ipv6_vxlan_testand verify correct values in generated config filesAny platform specific information?
Supported testbed topology if it's a new test case?
Documentation
Run this test with:
Use extra CLI parameters as following:
Scaled VNET test:
Other: