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:
Daniel Mellado Area 2019-05-29 02:25:46 +02:00 committed by Paul Belanger
parent 486370a744
commit 0ada6b8d8d
2 changed files with 3 additions and 2 deletions

View file

@ -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)

View file

@ -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: