-
Notifications
You must be signed in to change notification settings - Fork 543
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
[acl] Add regression test for config acl
CLI command
#1694
Conversation
Add a new test case to catch the bug where calling "config acl add table" multiple times causes the "ports" field to be deleted from config DB. Signed-off-by: Danny Allen <daall@microsoft.com>
since 1519 is not merge, isn't this new test supposed to be fail? |
I am trying to figure out if the underlying issue has been resolved in the master branch or if there is some weird discrepancy between the physical device and the virtual switch. Will update shortly. |
The underlying issue seems to have been fixed in the master branch, so let me track down the change and see if this is a bugfix we can also grab for 201911. |
This is the reason for the difference: sonic-net/sonic-utilities#1392 It seems like the bug exists in swsssdk but not swss-common. I think we should still merge this test case just to prevent any similar regressions in the future. @lguohan do you agree? |
This is interesting. How confident are you that sonic-net/sonic-utilities#1392 fixed the bug? It is expected as refactoring. If you know the detail, could you explain your API call sequence into swss-common or swsssdk? I can help check the sequence to make sure it is fixed. |
They're both calling In reply to: 820805641 |
test looks good to me, please proceed to merge. |
I analyze this flow, and everything you observed is expected. In old swsssdk, In reply to: 820805641 |
Add a new test case to catch the bug where calling "config acl add table" multiple times causes the "ports" field to be deleted from config DB. Signed-off-by: Danny Allen <daall@microsoft.com>
Add a new test case to catch the bug where calling "config acl add table" multiple
times causes the "ports" field to be deleted from config DB.
Signed-off-by: Danny Allen daall@microsoft.com
What I did/why I did it
I added a test case to guard against regressions like the one described in sonic-net/sonic-utilities#1519.
How I verified it
Ran the test case w/ and w/o the change from 1519.