added smoke tests for module.
This commit is contained in:
parent
18f614b89b
commit
377d58a7af
9 changed files with 34 additions and 0 deletions
2
tests/debian/testing.pp
Normal file
2
tests/debian/testing.pp
Normal file
|
@ -0,0 +1,2 @@
|
|||
class { 'apt': }
|
||||
class { 'apt::debian::testing': }
|
2
tests/debian/unstable.pp
Normal file
2
tests/debian/unstable.pp
Normal file
|
@ -0,0 +1,2 @@
|
|||
class { 'apt': }
|
||||
class { 'apt::debian::unstable': }
|
7
tests/force.pp
Normal file
7
tests/force.pp
Normal file
|
@ -0,0 +1,7 @@
|
|||
# force.pp
|
||||
# force a package from a specific release
|
||||
|
||||
apt::force { 'package':
|
||||
release => 'testing',
|
||||
version => false
|
||||
}
|
1
tests/init.pp
Normal file
1
tests/init.pp
Normal file
|
@ -0,0 +1 @@
|
|||
class { 'apt': }
|
1
tests/params.pp
Normal file
1
tests/params.pp
Normal file
|
@ -0,0 +1 @@
|
|||
include apt::params
|
5
tests/pin.pp
Normal file
5
tests/pin.pp
Normal file
|
@ -0,0 +1,5 @@
|
|||
# pin a release in apt, useful for unstable repositories
|
||||
apt::pin { 'foo':
|
||||
packages => '*',
|
||||
priority => 0,
|
||||
}
|
1
tests/ppa.pp
Normal file
1
tests/ppa.pp
Normal file
|
@ -0,0 +1 @@
|
|||
apt::ppa{ 'foo': }
|
4
tests/release.pp
Normal file
4
tests/release.pp
Normal file
|
@ -0,0 +1,4 @@
|
|||
class { 'apt': }
|
||||
class { 'apt::release':
|
||||
release_id => 'foo'
|
||||
}
|
11
tests/source.pp
Normal file
11
tests/source.pp
Normal file
|
@ -0,0 +1,11 @@
|
|||
class { 'apt': }
|
||||
apt::source { 'foo':
|
||||
location => '',
|
||||
release => 'karmic',
|
||||
repos => 'main',
|
||||
include_src => true,
|
||||
required_packages => false,
|
||||
key => false,
|
||||
key_server => 'keyserver.ubuntu.com',
|
||||
pin => '600'
|
||||
}
|
Loading…
Reference in a new issue