summaryrefslogtreecommitdiff
path: root/features/data/cookbooks/delayed_notifications
diff options
context:
space:
mode:
Diffstat (limited to 'features/data/cookbooks/delayed_notifications')
-rw-r--r--features/data/cookbooks/delayed_notifications/recipes/bad_syntax_notifies.rb14
-rw-r--r--features/data/cookbooks/delayed_notifications/recipes/default.rb18
-rw-r--r--features/data/cookbooks/delayed_notifications/recipes/forward_references.rb10
-rw-r--r--features/data/cookbooks/delayed_notifications/recipes/invalid_forward_reference.rb16
-rw-r--r--features/data/cookbooks/delayed_notifications/recipes/notify_a_resource_from_a_single_source.rb26
-rw-r--r--features/data/cookbooks/delayed_notifications/recipes/notify_a_resource_from_multiple_sources.rb31
-rw-r--r--features/data/cookbooks/delayed_notifications/recipes/notify_different_resources_for_different_actions.rb31
7 files changed, 0 insertions, 146 deletions
diff --git a/features/data/cookbooks/delayed_notifications/recipes/bad_syntax_notifies.rb b/features/data/cookbooks/delayed_notifications/recipes/bad_syntax_notifies.rb
deleted file mode 100644
index 5136e3aa64..0000000000
--- a/features/data/cookbooks/delayed_notifications/recipes/bad_syntax_notifies.rb
+++ /dev/null
@@ -1,14 +0,0 @@
-
-# Should never be executed, see comment below
-execute("echo should-not-execute")
-
-execute("echo foo") do
- # refers to the resource below but the syntax is wrong
- # expected behavior is for the reference to be resolved later
- # and the notification to work correctly
- notifies(:create, /file\[.*notified_file\.txt\]/) #regex isn't a valid argument here
-end
-
-file "#{node[:tmpdir]}/notified_file.txt" do
- action :nothing
-end
diff --git a/features/data/cookbooks/delayed_notifications/recipes/default.rb b/features/data/cookbooks/delayed_notifications/recipes/default.rb
deleted file mode 100644
index 70d0071bc5..0000000000
--- a/features/data/cookbooks/delayed_notifications/recipes/default.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-#
-# Cookbook Name:: delayed_notifications
-# Recipe:: default
-#
-# Copyright 2009, Opscode
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
diff --git a/features/data/cookbooks/delayed_notifications/recipes/forward_references.rb b/features/data/cookbooks/delayed_notifications/recipes/forward_references.rb
deleted file mode 100644
index 14d82eef0c..0000000000
--- a/features/data/cookbooks/delayed_notifications/recipes/forward_references.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-execute("echo foo") do
- # refers to the resource below, which isn't defined yet.
- # expected behavior is for the reference to be resolved later
- # and the notification to work correctly
- notifies(:create, "file[#{node[:tmpdir]}/notified_file.txt]")
-end
-
-file "#{node[:tmpdir]}/notified_file.txt" do
- action :nothing
-end
diff --git a/features/data/cookbooks/delayed_notifications/recipes/invalid_forward_reference.rb b/features/data/cookbooks/delayed_notifications/recipes/invalid_forward_reference.rb
deleted file mode 100644
index d636611dc0..0000000000
--- a/features/data/cookbooks/delayed_notifications/recipes/invalid_forward_reference.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-
-# Should never be executed, see comment below
-execute("echo should-not-execute")
-
-execute("echo foo") do
- # refers to the resource below, but there is an intentional typo
- # expected behavior is for the reference to be resolved *before*
- # Chef starts converging resources, so that the above execute
- # resource is never called.
- # Also, the error message should be helpful.
- notifies(:create, "file[#{node[:tmpdir]}/notified_file.txt]")
-end
-
-file "#{node[:tmpdir]}/not-notified_file.txt" do
- action :nothing
-end
diff --git a/features/data/cookbooks/delayed_notifications/recipes/notify_a_resource_from_a_single_source.rb b/features/data/cookbooks/delayed_notifications/recipes/notify_a_resource_from_a_single_source.rb
deleted file mode 100644
index 9ab2a9a6fe..0000000000
--- a/features/data/cookbooks/delayed_notifications/recipes/notify_a_resource_from_a_single_source.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-#
-# Cookbook Name:: delayed_notifications
-# Recipe:: notify_a_resource_from_a_single_source
-#
-# Copyright 2009, Opscode
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-file "#{node[:tmpdir]}/notified_file.txt" do
- action :nothing
-end
-
-execute "echo foo" do
- notifies :create, resources("file[#{node[:tmpdir]}/notified_file.txt]"), :delayed
-end
diff --git a/features/data/cookbooks/delayed_notifications/recipes/notify_a_resource_from_multiple_sources.rb b/features/data/cookbooks/delayed_notifications/recipes/notify_a_resource_from_multiple_sources.rb
deleted file mode 100644
index 74fc68a0f3..0000000000
--- a/features/data/cookbooks/delayed_notifications/recipes/notify_a_resource_from_multiple_sources.rb
+++ /dev/null
@@ -1,31 +0,0 @@
-#
-# Cookbook Name:: delayed_notifications
-# Recipe:: notify_a_resource_from_multiple_sources
-#
-# Copyright 2009, Opscode
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-execute "bob dylan" do
- command "echo 'bob dylan' >> #{node[:tmpdir]}/notified_file.txt"
- action :nothing
-end
-
-execute "echo foo" do
- notifies :run, resources("execute[bob dylan]"), :delayed
-end
-
-execute "echo bar" do
- notifies :run, resources("execute[bob dylan]"), :delayed
-end
diff --git a/features/data/cookbooks/delayed_notifications/recipes/notify_different_resources_for_different_actions.rb b/features/data/cookbooks/delayed_notifications/recipes/notify_different_resources_for_different_actions.rb
deleted file mode 100644
index 3180bbe4c2..0000000000
--- a/features/data/cookbooks/delayed_notifications/recipes/notify_different_resources_for_different_actions.rb
+++ /dev/null
@@ -1,31 +0,0 @@
-#
-# Cookbook Name:: delayed_notifications
-# Recipe:: notify_different_resources_for_different_actions
-#
-# Copyright 2009, Opscode
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-file "#{node[:tmpdir]}/notified_file_2.txt" do
- action :nothing
-end
-
-file "#{node[:tmpdir]}/notified_file_3.txt" do
- action :nothing
-end
-
-execute "echo foo" do
- notifies([{resources("file[#{node[:tmpdir]}/notified_file_2.txt]") => [:create, :delayed]},
- {resources("file[#{node[:tmpdir]}/notified_file_3.txt]") => [:create, :delayed]}])
-end