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
7e95da29
Commit
7e95da29
authored
Jan 07, 2015
by
Henry Finucane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for using .deb files
parent
5354df86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
test/integration/roles/test_apt/tasks/apt.yml
+37
-0
No files found.
test/integration/roles/test_apt/tasks/apt.yml
View file @
7e95da29
# UNINSTALL 'python-apt'
# The `apt` module has the smarts to auto-install `python-apt`. To test, we
# will first uninstall `python-apt`.
...
...
@@ -101,3 +103,38 @@
-
"
apt_result.changed"
-
"
dpkg_result.rc
==
0"
-
name
:
check hello version
shell
:
dpkg -s hello | grep Version | sed -r 's/Version:\s+([a-zA-Z0-9.-]+)\s*$/\1/'
register
:
hello_version
-
name
:
check hello architecture
shell
:
dpkg -s hello | grep Architecture | sed -r 's/Architecture:\s+([a-zA-Z0-9.-]+)\s*$/\1/'
register
:
hello_architecture
-
name
:
uninstall hello with apt
apt
:
pkg=hello state=absent purge=yes
-
name
:
install deb file
apt
:
deb="/var/cache/apt/archives/hello_{{ hello_version.stdout }}_{{ hello_architecture.stdout }}.deb"
register
:
apt_initial
-
name
:
install deb file again
apt
:
deb="/var/cache/apt/archives/hello_{{ hello_version.stdout }}_{{ hello_architecture.stdout }}.deb"
register
:
apt_secondary
-
name
:
verify installation of hello
assert
:
that
:
-
"
apt_initial.changed"
-
"
not
apt_secondary.changed"
-
name
:
uninstall hello with apt
apt
:
pkg=hello state=absent purge=yes
-
name
:
force install of deb
apt
:
deb="/var/cache/apt/archives/hello_{{ hello_version.stdout }}_{{ hello_architecture.stdout }}.deb" force=true
register
:
dpkg_force
-
name
:
verify installation of hello
assert
:
that
:
-
"
dpkg_force.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