Ver Fonte

added smoke tests for module.

Dan Bode há 13 anos atrás
pai
commit
377d58a
9 ficheiros alterados com 34 adições e 0 exclusões
  1. 2 0
      tests/debian/testing.pp
  2. 2 0
      tests/debian/unstable.pp
  3. 7 0
      tests/force.pp
  4. 1 0
      tests/init.pp
  5. 1 0
      tests/params.pp
  6. 5 0
      tests/pin.pp
  7. 1 0
      tests/ppa.pp
  8. 4 0
      tests/release.pp
  9. 11 0
      tests/source.pp

+ 2 - 0
tests/debian/testing.pp

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

+ 2 - 0
tests/debian/unstable.pp

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

+ 7 - 0
tests/force.pp

@@ -0,0 +1,7 @@
+# force.pp
+# force a package from a specific release
+
+apt::force { 'package':
+  release => 'testing',
+  version => false
+}

+ 1 - 0
tests/init.pp

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

+ 1 - 0
tests/params.pp

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

+ 5 - 0
tests/pin.pp

@@ -0,0 +1,5 @@
+# pin a release in apt, useful for unstable repositories
+apt::pin { 'foo':
+  packages => '*',
+  priority => 0,
+}

+ 1 - 0
tests/ppa.pp

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

+ 4 - 0
tests/release.pp

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

+ 11 - 0
tests/source.pp

@@ -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'
+}