Conversation
There was a problem hiding this comment.
can you add line breakup and have the table header aligned with the data? this applies to all the below table
There was a problem hiding this comment.
Line breakup makes assertion to fail, as it compares strings.
There was a problem hiding this comment.
can you explain how the tool sort the table? it does not seems to be according to the rule name and not sure if the current behavior is the expected one.
There was a problem hiding this comment.
It sorts by table name, then by counters.
There was a problem hiding this comment.
please add a description of the command used and the parameters to invoke this output. it will help so see the big picture
There was a problem hiding this comment.
Added description to the expected outputs, ant to each test case.
There was a problem hiding this comment.
please remove unused code
There was a problem hiding this comment.
if mirroring was configured, were we suppose to see the data? if so, i think we should have dedicated case for it as well. i see below the table configured but are we missing additional configuration to see the info?
There was a problem hiding this comment.
Added two rules to be in Everflow.
c0ee404 to
46b17fd
Compare
Signed-off-by: Roman Kachur <romankac@mellanox.com>
46b17fd to
dfe19d8
Compare
|
Added PRIO column to the command output. vstest will fail until aclshow is merged |
Include below commits sonic-swss-common ``` 83d3351 2021-04-22 | [swig] fix ConfigDBConnector.db_name (sonic-net#483) [Qi Luo] fdf296f 2021-04-09 | Fix: ConfigDBConnector call super init with proper parameter name (sonic-net#470) [Qi Luo] 4f580e3 2021-03-26 | [swig] translate SonicV2Connector::keys return type from C++ vector<string> to Python list (sonic-net#468) [Qi Luo] ``` sonic-snmpagent ``` c160c2b 2021-08-04 | CPU Spike because of redundant and flooded keyspace notifis handled (sonic-net#230) [Vivek Reddy] a4dd3bf 2021-08-03 | Non-block reading counters to tolerate corrupted/delayed counters in COUNTERS_DB (sonic-net#231) [Qi Luo] ```
Signed-off-by: Roman Kachur romankac@mellanox.com
- What I did
I created a unittest for the aclshow utility
- How I did it
Exploiting mock_tables, I added mock Rules, Databases, and occasional Counters.
Unittest calls aclshow with different arguments, and compares its output with the predefined outputs.
In total 10 cases were covered:
- How to verify it
python2 -m py.test aclshow_test.py -v
- Previous command output (if the output of a command-line utility has changed)
N/A
- New command output (if the output of a command-line utility has changed)
-->