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
12861ebc
Commit
12861ebc
authored
Jul 23, 2014
by
Michael DeHaan
Committed by
James Cammarata
Jul 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing role test file.
parent
5a8ce71a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
test/integration/roles/test_bad_parsing/tasks/main.yml
+45
-0
No files found.
test/integration/roles/test_bad_parsing/tasks/main.yml
0 → 100644
View file @
12861ebc
# test code for the ping module
# (c) 2014, Michael DeHaan <michael@ansible.com>
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
# the following tests all raise errors, to use them in a Makefile, we run them with different flags, as
# otherwise ansible stops at the first one and we want to ensure STOP conditions for each
-
set_fact
:
test_file
:
"
./ansible_test_file"
# FIXME, use set tempdir
test_input
:
"
owner=test"
chdir
:
"
mom
chdir=/tmp"
tags
:
common
-
file
:
name={{test_file}} state=touch
tags
:
common
-
name
:
test that we cannot insert arguments
file
:
path={{ test_file }} {{ test_input }}
failed_when
:
False
# ignore the module, just test the parser
tags
:
scenario1
-
name
:
test that we cannot duplicate arguments
file
:
path={{ test_file }} owner=test2 {{ test_input }}
failed_when
:
False
# ignore the module, just test the parser
tags
:
scenario2
-
name
:
test that we can't do this for the shell module
shell
:
echo hi {{ chdir }}
failed_when
:
False
tags
:
scenario3
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