coverage for lookup_list (#68683)

* coverage for lookup_list

Signed-off-by: Rick Elrod <rick@elrod.me>
pull/18596/merge
Rick Elrod 5 years ago committed by GitHub
parent 82c60db49b
commit f50df67517
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,3 @@
shippable/posix/group2
skip/aix
skip/python2.6 # lookups are controller only, and we no longer support Python 2.6 on the controller

@ -0,0 +1,19 @@
- name: Set variables to verify lookup_list
set_fact: "{{ item if item is string else item[0] }}={{ item }}"
with_list:
- a
- [b, c]
- d
- name: Verify lookup_list
assert:
that:
- a is defined
- b is defined
- c is not defined
- d is defined
- b is iterable and b is not string
- b|length == 2
- a == a
- b == ['b', 'c']
- d == d
Loading…
Cancel
Save