]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commitdiff
(#13261) Add real examples to smoke tests.
authorRyan Coleman <ryan@puppetlabs.com>
Tue, 20 Mar 2012 22:52:44 +0000 (15:52 -0700)
committerRyan Coleman <ryan@puppetlabs.com>
Mon, 26 Mar 2012 23:31:49 +0000 (16:31 -0700)
This commit modifies some smoke tests with real-world usage examples
instead of providing things like 'foo' that the module user must
replace in order to conduct a smoke test or try out example functionality.

tests/builddep.pp
tests/ppa.pp
tests/release.pp
tests/source.pp

index c5a7a20da1cc14c5b6d0c7e7d54db5a29667eb44..8b4f7964081b2780a6408fc12a0d4113c828a9ed 100644 (file)
@@ -1,2 +1,2 @@
 class { 'apt': }
-apt::builddep{ 'foo': }
+apt::builddep{ 'glusterfs-server': }
index 495866c15bd24fd1033ff28cb68a8efd1e1b6b77..e728f6f10f50e6ea1a9881c14df7096645062f15 100644 (file)
@@ -1,2 +1,4 @@
 class { 'apt': }
-apt::ppa{ 'foo': }
+
+# Example declaration of an Apt PPA
+apt::ppa{ 'ppa:openstack-ppa/bleeding-edge': }
index 04be75985ee4fb8b49e3f2d92e58e9c5b8b0014b..823f5861fa18e0615d68b1b1266409fbb3b7c320 100644 (file)
@@ -1,4 +1,4 @@
 class { 'apt': }
 class { 'apt::release':
-  release_id => 'foo'
+  release_id => 'karmic'
 }
index 9ebcd5209ed4428b5c42295bfda41e94a6681132..d83cb9787ae9a5ee2e107d034b12df37e88b52ea 100644 (file)
@@ -2,6 +2,7 @@
 class { 'apt': }
 
 # Install the puppetlabs apt source
+# Release is automatically obtained from lsbdistcodename fact if available.
 apt::source { 'puppetlabs':
   location   => 'http://apt.puppetlabs.com',
   repos      => 'main',