Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
b7154cf2
Commit
b7154cf2
authored
Jul 28, 2013
by
Matt Spaulding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for indexed_items lookup plugin
parent
5d15515b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
test/lookup_plugins.yml
+25
-0
No files found.
test/lookup_plugins.yml
View file @
b7154cf2
...
...
@@ -77,3 +77,28 @@
-
name
:
cleanup test file, again
action
:
file path=/tmp/ansible-test-with_password state=absent
# indexed_items lookup plugin
-
name
:
create directory for indexed_items
file
:
path=/tmp/ansible-test-with_indexed_items-data state=directory
-
name
:
test indexed_items
shell
:
echo "{{ item.0 }}" > /tmp/ansible-test-with_indexed_items-data/{{ item.1 }}
with_indexed_items
:
-
a
-
b
-
c
-
name
:
check indexed_items content
shell
:
test -f /tmp/ansible-test-with_indexed_items-data/{{ item.1 }} &&
test "{{ item.0 }}" = "$(cat /tmp/ansible-test-with_indexed_items-data/{{ item.1 }})"
with_indexed_items
:
-
a
-
b
-
c
-
name
:
cleanup indexed_items test
file
:
path=/tmp/ansible-test-with_indexed_items-data/{{ item.1 }} state=absent
with_indexed_items
:
-
a
-
b
-
c
-
name
:
remove with_indexed_items directory
file
:
path=/tmp/ansible-test-with_indexed_items-data state=absent
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment