summaryrefslogtreecommitdiff
path: root/tests/topotests/ospf_basic_functionality/test_ospf_authentication.py
diff options
context:
space:
mode:
authorGalaxyGorilla <sascha@netdef.org>2020-05-22 21:18:46 +0000
committerGalaxyGorilla <sascha@netdef.org>2020-05-22 22:29:35 +0000
commitb3100f6ce7b17302c03c7c8e411ab5b6c970a875 (patch)
tree873a7e6adc627fd0ce261fd1c96351f35834b70b /tests/topotests/ospf_basic_functionality/test_ospf_authentication.py
parentcb47b207f520ce9450f7b15fc4818b867cbc0c54 (diff)
tests: Fix JSON diff for nested lists
The involved piece of code is supposed to find a 'closest' match for two JSON structures using another JSON diff. However, it can happen that during that new diff the JSON structures are altered (elements from a list are deleted when 'found'). This is in general ok when the deleted element is part of the JSON structure which 'matches', but when it later turns out that some other element of the structure doesn't fit, then the whole structure should be recovered. This is now realized by using a deepcopy for the besaid new JSON diff such that the original is only altered (e.g. deleted) when the diff is clean. Signed-off-by: GalaxyGorilla <sascha@netdef.org>
Diffstat (limited to 'tests/topotests/ospf_basic_functionality/test_ospf_authentication.py')
0 files changed, 0 insertions, 0 deletions