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.
pull/57102/head
Daniel Mellado Area 6 years ago committed by Paul Belanger
parent 486370a744
commit 0ada6b8d8d

@ -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…
Cancel
Save