Skip to content

Commit

Permalink
test cases updated
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Thakur <rohitthakur2590@outlook.com>
  • Loading branch information
rohitthakur2590 committed Jul 23, 2020
1 parent 2c015c4 commit 73d65f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/remove_ignores_for_sanity.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- Makes sure that docstring and argspec are in sync and removes sanity ignores (https://github.com/ansible-collections/cisco.iosxr/pull/62).
4 changes: 2 additions & 2 deletions plugins/module_utils/network/iosxr/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ def filter_dict_having_none_value(want, have):
for k, v in iteritems(want):
if isinstance(v, dict):
for key, value in iteritems(v):
if value is None:
if value is None and k in have and key in have.get(k):
dict_val = have.get(k).get(key)
test_key_dict.update({key: dict_val})
test_dict.update({k: test_key_dict})
if isinstance(v, list) and isinstance(v[0], dict):
for key, value in iteritems(v[0]):
if value is None:
if value is None and k in have and key in have.get(k):
dict_val = have.get(k).get(key)
test_key_dict.update({key: dict_val})
test_dict.update({k: test_key_dict})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
- '"notice" in result.xml[2]'
- '"alert" in result.xml[3]'
- '"4700000" in result.xml[4]'
- '"info" in result.xml[5]'
- '"debug" in result.xml[5]'
- '"local3" in result.xml[6]'
- '"host3" in result.xml[7]'

Expand Down

0 comments on commit 73d65f2

Please sign in to comment.