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
6935d467
Commit
6935d467
authored
Apr 21, 2015
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for yum module taking lists of packages in various formats
parent
7669a0b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
104 additions
and
2 deletions
+104
-2
test/integration/roles/test_yum/tasks/yum.yml
+104
-2
No files found.
test/integration/roles/test_yum/tasks/yum.yml
View file @
6935d467
...
...
@@ -28,7 +28,7 @@
-
debug
:
var=yum_result
-
debug
:
var=rpm_result
-
name
:
verify uninstalltion of sos
-
name
:
verify uninstall
a
tion of sos
assert
:
that
:
-
"
yum_result.rc
==
0"
...
...
@@ -73,7 +73,7 @@
-
"
'rc'
in
yum_result"
-
"
'results'
in
yum_result"
# INSTALL AGAIN
# INSTALL AGAIN
-
name
:
install sos again
yum
:
name=sos state=present
register
:
yum_result
...
...
@@ -83,4 +83,106 @@
that
:
-
"
not
yum_result.changed"
# Multiple packages
-
name
:
uninstall sos and python-q
yum
:
name=sos,python-q state=removed
register
:
yum_result
-
name
:
check sos with rpm
shell
:
rpm -q sos
failed_when
:
False
register
:
rpm_sos_result
-
name
:
check python-q with rpm
shell
:
rpm -q python-q
failed_when
:
False
register
:
rpm_python_q_result
-
name
:
verify packages installed
assert
:
that
:
-
"
rpm_sos_result.rc
!=
0"
-
"
rpm_python_q_result.rc
!=
0"
-
name
:
install sos and python-q as comma separated
yum
:
name=sos,python-q state=present
register
:
yum_result
-
name
:
check sos with rpm
shell
:
rpm -q sos
failed_when
:
False
register
:
rpm_sos_result
-
name
:
check python-q with rpm
shell
:
rpm -q python-q
failed_when
:
False
register
:
rpm_python_q_result
-
name
:
verify packages installed
assert
:
that
:
-
"
yum_result.rc
==
0"
-
"
yum_result.changed"
-
"
rpm_sos_result.rc
==
0"
-
"
rpm_python_q_result.rc
==
0"
-
name
:
uninstall sos and python-q
yum
:
name=sos,python-q state=removed
register
:
yum_result
-
name
:
install sos and python-q as list
yum
:
name
:
-
sos
-
python-q
state
:
present
register
:
yum_result
-
name
:
check sos with rpm
shell
:
rpm -q sos
failed_when
:
False
register
:
rpm_sos_result
-
name
:
check python-q with rpm
shell
:
rpm -q python-q
failed_when
:
False
register
:
rpm_python_q_result
-
name
:
verify packages installed
assert
:
that
:
-
"
yum_result.rc
==
0"
-
"
yum_result.changed"
-
"
rpm_sos_result.rc
==
0"
-
"
rpm_python_q_result.rc
==
0"
-
name
:
uninstall sos and python-q
yum
:
name=sos,python-q state=removed
register
:
yum_result
-
name
:
install sos and python-q as comma separated with spaces
yum
:
name
:
"
sos,
python-q"
state
:
present
register
:
yum_result
-
name
:
check sos with rpm
shell
:
rpm -q sos
failed_when
:
False
register
:
rpm_sos_result
-
name
:
check sos with rpm
shell
:
rpm -q python-q
failed_when
:
False
register
:
rpm_python_q_result
-
name
:
verify packages installed
assert
:
that
:
-
"
yum_result.rc
==
0"
-
"
yum_result.changed"
-
"
rpm_sos_result.rc
==
0"
-
"
rpm_python_q_result.rc
==
0"
-
name
:
uninstall sos and python-q
yum
:
name=sos,python-q state=removed
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