acl-plugin: make test: shuffle applied ACLs as part of the tests 22/11322/1
authorAndrew Yourtchenko <ayourtch@gmail.com>
Fri, 23 Mar 2018 08:34:29 +0000 (09:34 +0100)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Fri, 23 Mar 2018 08:34:29 +0000 (09:34 +0100)
commit0e89dfc9167257b4e357222ea8fd176408577203
tree191b0b125c9602d600e764d98a051dfb91f458cc
parent5237c77cdd8041f173ceefe4919cd7e9e1130805
acl-plugin: make test: shuffle applied ACLs as part of the tests

During the testing of 94f9a6de3f706243d138e05b63fef1d5c8174f6c
I realized there was no test coverage for the cases where
the ACLs are added then modified while having beein applied.

This change adds some simple shuffling to l2l3 ACL test set,
whereby after each of the ACLs being applied, a few extra ACLs
are applied at the front and the back of the list, and are changed
several times, the base for the changes being the set of all the
ACEs that are being applied previously.

After these few shuffles, the routine restores the applied ACLs
and proceeds to the test as usual.

Change-Id: Ieda2aa5b7963746d62484e54719309de9c1ee752
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
test/test_acl_plugin_l2l3.py
test/vpp_papi_provider.py