1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/integration/targets/vyos_config/tests/cli
Deepak Agrawal 0bbea9a579
vyos_config IndexError in sanitize_config (#36375)
* Bug in del(list) logic. Say you have a list of 4 elements a[0-3]
and you have to remove index 1 and 3, if you remove index 1 first
then list is cut short a[0-2] and does not have index 3

Fix: Remove indexes in reverse sorted order e.g. 3 and 1 in above
example so that order of indexes remain preserved even after deleting

fix is to remove indexes in reverse sorted order

* Add test cases for failed case
2018-02-20 18:29:34 +05:30
..
check_config.yaml vyos_config IndexError in sanitize_config (#36375) 2018-02-20 18:29:34 +05:30
comment.yaml Actually move vyos tests to network_cli (#33710) 2017-12-13 14:30:24 -05:00
save.yaml Actually move vyos tests to network_cli (#33710) 2017-12-13 14:30:24 -05:00
simple.yaml Actually move vyos tests to network_cli (#33710) 2017-12-13 14:30:24 -05:00