Skip to content

Commit

Permalink
(puppetlabs#1) Add example test using relationships.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Jeff McCune committed Jun 16, 2011
1 parent 2332e5c commit 590100f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/init.pp
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
node default {

class { "ntp": }
notify { 'enduser-before': }
notify { 'enduser-after': }

class { 'ntp':
require => Notify['enduser-before'],
before => Notify['enduser-after'],
}

}

0 comments on commit 590100f

Please sign in to comment.