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
c7ae1ee9
Commit
c7ae1ee9
authored
Feb 23, 2014
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6130 from Azulinho/devel
replace test 'wget' package with 'hello' package
parents
d7dd04c2
89cee747
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
test/integration/roles/test_apt/tasks/apt.yml
+21
-21
No files found.
test/integration/roles/test_apt/tasks/apt.yml
View file @
c7ae1ee9
# UNINSTALL
# UNINSTALL
-
name
:
uninstall
wget
with apt
-
name
:
uninstall
hello
with apt
apt
:
pkg=
wget state=absent purge=yes
apt
:
pkg=
hello state=absent purge=yes
register
:
apt_result
register
:
apt_result
-
name
:
check
wget
with dpkg
-
name
:
check
hello
with dpkg
shell
:
dpkg --get-selections | fgrep
wget
shell
:
dpkg --get-selections | fgrep
hello
failed_when
:
False
failed_when
:
False
register
:
dpkg_result
register
:
dpkg_result
-
debug
:
var=apt_result
-
debug
:
var=apt_result
-
debug
:
var=dpkg_result
-
debug
:
var=dpkg_result
-
name
:
verify uninstallation of
wget
-
name
:
verify uninstallation of
hello
assert
:
assert
:
that
:
that
:
-
"
'changed'
in
apt_result"
-
"
'changed'
in
apt_result"
-
"
dpkg_result.rc
==
1"
-
"
dpkg_result.rc
==
1"
# UNINSTALL AGAIN
# UNINSTALL AGAIN
-
name
:
uninstall
wget
with apt
-
name
:
uninstall
hello
with apt
apt
:
pkg=
wget state=absent purge=yes
apt
:
pkg=
hello state=absent purge=yes
register
:
apt_result
register
:
apt_result
-
name
:
verify no change on re-uninstall
-
name
:
verify no change on re-uninstall
assert
:
assert
:
that
:
that
:
-
"
not
apt_result.changed"
-
"
not
apt_result.changed"
# INSTALL
# INSTALL
-
name
:
install
wget
with apt
-
name
:
install
hello
with apt
apt
:
name=
wget
state=present
apt
:
name=
hello
state=present
register
:
apt_result
register
:
apt_result
-
name
:
check
wget
with dpkg
-
name
:
check
hello
with dpkg
shell
:
dpkg --get-selections | fgrep
wget
shell
:
dpkg --get-selections | fgrep
hello
failed_when
:
False
failed_when
:
False
register
:
dpkg_result
register
:
dpkg_result
-
debug
:
var=apt_result
-
debug
:
var=apt_result
-
debug
:
var=dpkg_result
-
debug
:
var=dpkg_result
-
name
:
verify installation of
wget
-
name
:
verify installation of
hello
assert
:
assert
:
that
:
that
:
-
"
apt_result.changed"
-
"
apt_result.changed"
-
"
dpkg_result.rc
==
0"
-
"
dpkg_result.rc
==
0"
...
@@ -53,17 +53,17 @@
...
@@ -53,17 +53,17 @@
-
"
'changed'
in
apt_result"
-
"
'changed'
in
apt_result"
-
"
'item'
in
apt_result"
-
"
'item'
in
apt_result"
-
"
'stderr'
in
apt_result"
-
"
'stderr'
in
apt_result"
-
"
'stdout'
in
apt_result"
-
"
'stdout'
in
apt_result"
-
"
'stdout_lines'
in
apt_result"
-
"
'stdout_lines'
in
apt_result"
# INSTALL AGAIN
# INSTALL AGAIN
-
name
:
install
wget
with apt
-
name
:
install
hello
with apt
apt
:
name=
wget
state=present
apt
:
name=
hello
state=present
register
:
apt_result
register
:
apt_result
-
name
:
verify no change on re-install
-
name
:
verify no change on re-install
assert
:
assert
:
that
:
that
:
-
"
not
apt_result.changed"
-
"
not
apt_result.changed"
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