X-Git-Url: https://gerrit.onap.org/r/gitweb?p=vvp%2Fvalidation-scripts.git;a=blobdiff_plain;f=ice_validator%2Ftests%2Fhelpers.py;h=ec14bc048409838be0ab29649a8f27059a710e42;hp=f4a368ce86f991050a16637ffb99338b41917a00;hb=2f606eaf4e4e02642e663dfee855d26d0bb17e41;hpb=d8ffed96caada0308ac2ee3f4daf90b7aacb5137 diff --git a/ice_validator/tests/helpers.py b/ice_validator/tests/helpers.py index f4a368c..ec14bc0 100644 --- a/ice_validator/tests/helpers.py +++ b/ice_validator/tests/helpers.py @@ -255,6 +255,9 @@ def traverse(data, search_key, func, path=None): traverse(value, search_key, func, curr_path) elif value == search_key: func(curr_path, value) + elif search_key == data: + curr_path = path + [data] + func(curr_path, data) def check_indices(pattern, values, value_type):