aboutsummaryrefslogtreecommitdiffstats
path: root/ice_validator/tests/helpers.py
diff options
context:
space:
mode:
authorLovett, Trevor <trevor.lovett@att.com>2020-01-21 11:37:47 -0600
committerLovett, Trevor <trevor.lovett@att.com>2020-01-21 11:37:47 -0600
commit2f606eaf4e4e02642e663dfee855d26d0bb17e41 (patch)
tree5dcd2b29f27792e51815ddfbd7e79365353b008f /ice_validator/tests/helpers.py
parentd8ffed96caada0308ac2ee3f4daf90b7aacb5137 (diff)
[VVP] Disallow vf_module_index look ups per R-55307
Change-Id: I2aa9502cbb38f4b1be943d6d100164de1e1b1628 Issue-ID: VVP-354 Signed-off-by: Lovett, Trevor <trevor.lovett@att.com>
Diffstat (limited to 'ice_validator/tests/helpers.py')
-rw-r--r--ice_validator/tests/helpers.py3
1 files changed, 3 insertions, 0 deletions
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):