Fix junos_facts test (#57065)
This commit fixes a non-passing junos_facts integration test, as it was using a non-ordered frozenset to assert its result.
This commit is contained in:
parent
486370a744
commit
0ada6b8d8d
2 changed files with 3 additions and 2 deletions
|
@ -354,7 +354,8 @@ def main():
|
|||
|
||||
if subset not in VALID_SUBSETS:
|
||||
module.fail_json(msg='Subset must be one of [%s], got %s' %
|
||||
(', '.join(VALID_SUBSETS), subset))
|
||||
(', '.join(sorted([subset for subset in
|
||||
VALID_SUBSETS])), subset))
|
||||
|
||||
if exclude:
|
||||
exclude_subsets.add(subset)
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
- assert:
|
||||
that:
|
||||
- "result.failed == true"
|
||||
- "result.msg == 'Subset must be one of [hardware, default, ofacts, config, interfaces], got test'"
|
||||
- "result.msg == 'Subset must be one of [config, default, hardware, interfaces, ofacts], got test'"
|
||||
|
||||
- name: Collect config facts from device in set format
|
||||
junos_facts:
|
||||
|
|
Loading…
Reference in a new issue