added smoke tests for module.

This commit is contained in:
Dan Bode 2011-05-30 10:23:18 -07:00
parent 18f614b89b
commit 377d58a7af
9 changed files with 34 additions and 0 deletions

2
tests/debian/testing.pp Normal file
View file

@ -0,0 +1,2 @@
class { 'apt': }
class { 'apt::debian::testing': }

2
tests/debian/unstable.pp Normal file
View file

@ -0,0 +1,2 @@
class { 'apt': }
class { 'apt::debian::unstable': }

7
tests/force.pp Normal file
View 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
View file

@ -0,0 +1 @@
class { 'apt': }

1
tests/params.pp Normal file
View file

@ -0,0 +1 @@
include apt::params

5
tests/pin.pp Normal file
View 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
View file

@ -0,0 +1 @@
apt::ppa{ 'foo': }

4
tests/release.pp Normal file
View file

@ -0,0 +1,4 @@
class { 'apt': }
class { 'apt::release':
release_id => 'foo'
}

11
tests/source.pp Normal file
View 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'
}