diff --git a/spec/classes/relationship__notify_spec.rb b/spec/classes/relationship__notify_spec.rb index c4d4c2f58..274e060e7 100644 --- a/spec/classes/relationship__notify_spec.rb +++ b/spec/classes/relationship__notify_spec.rb @@ -17,4 +17,7 @@ it { should contain_notify('pre').that_notifies(['Notify[post]']) } it { should contain_notify('post').that_subscribes_to(['Notify[pre]']) } + + # TODO: in practice this transitive notification doesn't work + it { should contain_service('myservice').that_subscribes_to('File[/tmp/file.txt]') } end diff --git a/spec/fixtures/modules/relationships/manifests/notify.pp b/spec/fixtures/modules/relationships/manifests/notify.pp index e64da8cce..4de551246 100644 --- a/spec/fixtures/modules/relationships/manifests/notify.pp +++ b/spec/fixtures/modules/relationships/manifests/notify.pp @@ -15,6 +15,10 @@ class { '::relationships::notify::pre': } ~> class { '::relationships::notify::middle': } ~> class { '::relationships::notify::post': } + + file { '/tmp/file.txt': } ~> + file { '/tmp/directory': } ~> + service { 'myservice': } } class relationships::notify::pre {