Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coverage for lookup_list #68683

Merged
merged 2 commits into from Apr 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions test/integration/targets/lookup_list/aliases
@@ -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
19 changes: 19 additions & 0 deletions test/integration/targets/lookup_list/tasks/main.yml
@@ -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