From 41cedbb7ba1fd5e5de4bf5ff3dc117e4f88327f8 Mon Sep 17 00:00:00 2001 From: Ryan Coleman Date: Tue, 20 Mar 2012 15:52:44 -0700 Subject: [PATCH] (#13261) Add real examples to smoke tests. 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 | 2 +- tests/ppa.pp | 4 +++- tests/release.pp | 2 +- tests/source.pp | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/builddep.pp b/tests/builddep.pp index c5a7a20..8b4f796 100644 --- a/tests/builddep.pp +++ b/tests/builddep.pp @@ -1,2 +1,2 @@ class { 'apt': } -apt::builddep{ 'foo': } +apt::builddep{ 'glusterfs-server': } diff --git a/tests/ppa.pp b/tests/ppa.pp index 495866c..e728f6f 100644 --- a/tests/ppa.pp +++ b/tests/ppa.pp @@ -1,2 +1,4 @@ class { 'apt': } -apt::ppa{ 'foo': } + +# Example declaration of an Apt PPA +apt::ppa{ 'ppa:openstack-ppa/bleeding-edge': } diff --git a/tests/release.pp b/tests/release.pp index 04be759..823f586 100644 --- a/tests/release.pp +++ b/tests/release.pp @@ -1,4 +1,4 @@ class { 'apt': } class { 'apt::release': - release_id => 'foo' + release_id => 'karmic' } diff --git a/tests/source.pp b/tests/source.pp index 9ebcd52..d83cb97 100644 --- a/tests/source.pp +++ b/tests/source.pp @@ -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', -- 2.45.2