summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJeff McCune <jeff@puppetlabs.com>2011-06-16 12:23:55 -0700
committerJeff McCune <jeff@puppetlabs.com>2011-06-16 12:25:05 -0700
commit590100f004841a977c0a2927ff6763c4d271f26e (patch)
tree403c3346de32e00f7c6fe4c9212407eaf58b6781 /tests
parent2332e5c0f67cfcb373ec17d482c844359522fdd6 (diff)
(#1) Add example test using relationships.
This example test illustrates how the end user of the module is expected to consume the module. Two relationships are present, the notify resources should always be evaluated in the correct and specified order.
Diffstat (limited to 'tests')
-rw-r--r--tests/init.pp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/init.pp b/tests/init.pp
index b918564..e6d9b53 100644
--- a/tests/init.pp
+++ b/tests/init.pp
@@ -1,5 +1,11 @@
node default {
- class { "ntp": }
+ notify { 'enduser-before': }
+ notify { 'enduser-after': }
+
+ class { 'ntp':
+ require => Notify['enduser-before'],
+ before => Notify['enduser-after'],
+ }
}