From 590100f004841a977c0a2927ff6763c4d271f26e Mon Sep 17 00:00:00 2001 From: Jeff McCune Date: Thu, 16 Jun 2011 12:23:55 -0700 Subject: (#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. --- tests/init.pp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests/init.pp') 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'], + } } -- cgit v1.2.3