Skip to content

Commit 590100f

Browse files
author
Jeff McCune
committed
(puppetlabs#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.
1 parent 2332e5c commit 590100f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/init.pp

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
node default {
22

3-
class { "ntp": }
3+
notify { 'enduser-before': }
4+
notify { 'enduser-after': }
5+
6+
class { 'ntp':
7+
require => Notify['enduser-before'],
8+
before => Notify['enduser-after'],
9+
}
410

511
}

0 commit comments

Comments
 (0)