Skip to content

[vlan] Add pytest cases to validate the behavior about add LAG member to vlan.#875

Merged
lguohan merged 5 commits intosonic-net:masterfrom
EmmaLin11:add_tests_lag_member
Aug 8, 2019
Merged

[vlan] Add pytest cases to validate the behavior about add LAG member to vlan.#875
lguohan merged 5 commits intosonic-net:masterfrom
EmmaLin11:add_tests_lag_member

Conversation

@EmmaLin11
Copy link
Contributor

@EmmaLin11 EmmaLin11 commented May 3, 2019

What I did
[vlan] Add pytest cases to validate the behavior about add LAG member to vlan.

Why I did it

How I verified it
Add test case:

  1. Add LAG member to vlan and remove it. => succeed

Details if related
==================================================================== test session starts =====================================================================
platform linux2 -- Python 2.7.15rc1, pytest-3.3.0, py-1.8.0, pluggy-0.6.0 -- /usr/bin/python
cachedir: .cache
rootdir: /home/ubuntu/sonic-buildimage/src/sonic-swss/tests, inifile:
collected 11 items

test_vlan.py::TestVlan::test_VlanAddRemove PASSED [ 9%]
test_vlan.py::TestVlan::test_MultipleVlan PASSED [ 18%]
test_vlan.py::TestVlan::test_AddVlanWithIncorrectKeyPrefix[test_input0-0] PASSED [ 27%]
test_vlan.py::TestVlan::test_AddVlanWithIncorrectKeyPrefix[test_input1-0] PASSED [ 36%]
test_vlan.py::TestVlan::test_AddVlanWithIncorrectKeyPrefix[test_input2-0] PASSED [ 45%]
test_vlan.py::TestVlan::test_AddVlanWithIncorrectKeyPrefix[test_input3-1] PASSED [ 54%]
test_vlan.py::TestVlan::test_AddVlanWithIncorrectValueType[test_input0-0] PASSED [ 63%]
test_vlan.py::TestVlan::test_AddVlanWithIncorrectValueType[test_input1-0] PASSED [ 72%]
test_vlan.py::TestVlan::test_AddVlanWithIncorrectValueType[test_input2-0] PASSED [ 81%]
test_vlan.py::TestVlan::test_AddVlanWithIncorrectValueType[test_input3-1] PASSED [ 90%]
test_vlan.py::TestVlan::test_AddPortChannelToVlan PASSED [100%]

================================================================= 11 passed in 62.15 seconds =================================================================

Signed-off-by: Emma Lin emma_lin@edge-core.com

vlan.

Signed-off-by: Emma Lin <emma_lin@edge-core.com>
@EmmaLin11
Copy link
Contributor Author

retest this please

Signed-off-by: Emma Lin <emma_lin@edge-core.com>
@lguohan
Copy link
Contributor

lguohan commented Jun 19, 2019

@linemma , can you resolve the conflict?

@EmmaLin11
Copy link
Contributor Author

EmmaLin11 commented Jun 20, 2019

@lguohan, resolved, please review again. Thanks.

@EmmaLin11
Copy link
Contributor Author

retest this please

@lguohan
Copy link
Contributor

lguohan commented Aug 1, 2019

need to resolve the conflict again due to previous vlan test contribution from you.

@EmmaLin11
Copy link
Contributor Author

@lguohan, resolved, please review again. Thanks!

@lguohan
Copy link
Contributor

lguohan commented Aug 2, 2019

retest this please

3 similar comments
@lguohan
Copy link
Contributor

lguohan commented Aug 3, 2019

retest this please

@lguohan
Copy link
Contributor

lguohan commented Aug 3, 2019

retest this please

@EmmaLin11
Copy link
Contributor Author

retest this please

@stcheng
Copy link
Contributor

stcheng commented Aug 5, 2019

retest this please

1 similar comment
@EmmaLin11
Copy link
Contributor Author

retest this please

@lguohan lguohan merged commit bb0bcf8 into sonic-net:master Aug 8, 2019
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
Signed-off-by: Guohan Lu <lguohan@gmail.com>
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this pull request Mar 1, 2023
…the MACsec port was disabled in runtime (sonic-net#875)

* Add MACsec filter state guard

Signed-off-by: Ze Gan <ganze718@gmail.com>

* Add volatile qualifer for state

Signed-off-by: Ze Gan <ganze718@gmail.com>

* Polish code format

Signed-off-by: Ze Gan <ganze718@gmail.com>

* Fix the macsec device was shutdown by ouutside

Signed-off-by: Ze Gan <ganze718@gmail.com>

* fix typo

Signed-off-by: Ze Gan <ganze718@gmail.com>

* Remove overkill qualifier

Signed-off-by: Ze Gan <ganze718@gmail.com>

* fix typo

Signed-off-by: Ze Gan <ganze718@gmail.com>

* Fix spell warning

Signed-off-by: Ze Gan <ganze718@gmail.com>

* Fix bug

Signed-off-by: Ze Gan <ganze718@gmail.com>

* Format code

Signed-off-by: Ze Gan <ganze718@gmail.com>

* Fix unittest

Signed-off-by: Ze Gan <ganze718@gmail.com>

* Add unittest for State guard

Signed-off-by: Ze Gan <ganze718@gmail.com>

* Update Makefile.am for testing MACsec Filter State Guard

Signed-off-by: Ze Gan <ganze718@gmail.com>
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
… to vlan. (sonic-net#875)

* [vlan] Add pytest cases to validate the behavior about add LAG member to
vlan.

Signed-off-by: Emma Lin <emma_lin@edge-core.com>
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.

3 participants