Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vlan] Add pytest cases to verify data in app db and state db. #895

Merged
merged 2 commits into from
Aug 1, 2019

Conversation

linemma
Copy link
Contributor

@linemma linemma commented May 16, 2019

Signed-off-by: Emma Lin [email protected]

What I did
[vlan] Add pytest cases to verify data in app db and state db.

Why I did it

How I verified it
Add test case:

  1. Check app db and state db after create vlan. => succeed
  2. Check app db and state db after add vlan member. => 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 15 items

test_vlan.py::TestVlan::test_VlanAddRemove PASSED [ 6%]
test_vlan.py::TestVlan::test_MultipleVlan PASSED [ 13%]
test_vlan.py::TestVlan::test_AddVlanWithIncorrectKeyPrefix[test_input0-0] PASSED [ 20%]
test_vlan.py::TestVlan::test_AddVlanWithIncorrectKeyPrefix[test_input1-0] PASSED [ 26%]
test_vlan.py::TestVlan::test_AddVlanWithIncorrectKeyPrefix[test_input2-0] PASSED [ 33%]
test_vlan.py::TestVlan::test_AddVlanWithIncorrectKeyPrefix[test_input3-1] PASSED [ 40%]
test_vlan.py::TestVlan::test_AddVlanWithIncorrectValueType[test_input0-0] PASSED [ 46%]
test_vlan.py::TestVlan::test_AddVlanWithIncorrectValueType[test_input1-0] PASSED [ 53%]
test_vlan.py::TestVlan::test_AddVlanWithIncorrectValueType[test_input2-0] PASSED [ 60%]
test_vlan.py::TestVlan::test_AddVlanWithIncorrectValueType[test_input3-1] PASSED [ 66%]
test_vlan.py::TestVlan::test_AddMaxVlan PASSED [ 73%]
test_vlan.py::TestVlan::test_VlanDbData PASSED [ 80%]
test_vlan.py::TestVlan::test_VlanMemberDbData[test_input0-expected0] PASSED [ 86%]
test_vlan.py::TestVlan::test_VlanMemberDbData[test_input1-expected1] PASSED [ 93%]
test_vlan.py::TestVlan::test_VlanMemberDbData[test_input2-expected2] PASSED [100%]

@linemma
Copy link
Contributor Author

linemma commented May 29, 2019

retest this please

1 similar comment
@lguohan
Copy link
Contributor

lguohan commented Jun 19, 2019

retest this please

@lguohan
Copy link
Contributor

lguohan commented Jul 31, 2019

@linemma, I am not able to resolve the conflict. Can you resolve the conflict so that we can merge?

@linemma
Copy link
Contributor Author

linemma commented Aug 1, 2019

@lguohan, resolved, please review. Thanks.

@lguohan lguohan merged commit 0da2f4c into sonic-net:master Aug 1, 2019
@lguohan
Copy link
Contributor

lguohan commented Aug 1, 2019

thank you!

EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
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