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
42c18498
Commit
42c18498
authored
Feb 19, 2014
by
James Tanner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ruby gem test
parent
822be307
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
0 deletions
+44
-0
tests_new/integration/roles/test_gem/meta/main.yml
+3
-0
tests_new/integration/roles/test_gem/tasks/main.yml
+40
-0
tests_new/integration/test_destructive.sh
+1
-0
No files found.
tests_new/integration/roles/test_gem/meta/main.yml
0 → 100644
View file @
42c18498
dependencies
:
-
prepare_tests
tests_new/integration/roles/test_gem/tasks/main.yml
0 → 100644
View file @
42c18498
# test code for the gem module
# (c) 2014, James Tanner <tanner.jc@gmail.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/>.
-
name
:
remove a gem
gem
:
name=gist state=absent
-
name
:
verify gist is not installed
shell
:
gem list | egrep '^gist '
register
:
uninstall
failed_when
:
"
uninstall.rc
!=
1"
-
name
:
install a gem
gem
:
name=gist state=present
register
:
gem_result
-
name
:
verify module output properties
assert
:
that
:
-
"
'name'
in
gem_result"
-
"
'changed'
in
gem_result"
-
"
'state'
in
gem_result"
-
name
:
verify gist is installed
shell
:
gem list | egrep '^gist '
tests_new/integration/test_destructive.sh
0 → 100644
View file @
42c18498
ansible-playbook destructive.yml
-i
inventory
-e
@integration_config.yml
-v
$*
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