diff options
author | Adam Jacob <adam@hjksolutions.com> | 2009-02-23 16:58:07 -0800 |
---|---|---|
committer | Adam Jacob <adam@hjksolutions.com> | 2009-02-23 16:58:07 -0800 |
commit | 409ffd22488aea6afc75ad18b32e64cc8fffcc78 (patch) | |
tree | a2d9608f1ff4502d174f28e2c5d22b98cffbbc2a /features/transfer_remote_files.feature | |
parent | 3865a6e46f310b36217e1bcb815708a651b23c92 (diff) | |
download | chef-409ffd22488aea6afc75ad18b32e64cc8fffcc78.tar.gz |
Adding feature checks for transferring remote files
Diffstat (limited to 'features/transfer_remote_files.feature')
-rw-r--r-- | features/transfer_remote_files.feature | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/features/transfer_remote_files.feature b/features/transfer_remote_files.feature new file mode 100644 index 0000000000..e75f582cdf --- /dev/null +++ b/features/transfer_remote_files.feature @@ -0,0 +1,41 @@ +Feature: Transfer Remote Files + In order to easily manage many systems at once + As a Developer + I want to manage the contents of files remotely + + Scenario: Transfer a file from a cookbook + Given a validated node + And it includes the recipe 'transfer_remote_files::transfer_a_file_from_a_cookbook' + When I run the chef-client + Then the run should exit '0' + And a file named 'transfer_a_file_from_a_cookbook.txt' should contain 'easy like sunday morning' + + Scenario: Should prefer the file for this specific host + Given a validated node + And it includes the recipe 'transfer_remote_files::should_prefer_the_file_for_this_specific_host' + And the cookbook has a 'file' named 'host_specific.txt' in the 'host' specific directory + And the cookbook has a 'file' named 'host_specific.txt' in the 'platform-version' specific directory + And the cookbook has a 'file' named 'host_specific.txt' in the 'platform' specific directory + And the cookbook has a 'file' named 'host_specific.txt' in the 'default' specific directory + When I run the chef-client + Then the run should exit '0' + And a file named 'host_specific.txt' should be from the 'host' specific directory + + Scenario: Should prefer the file for the correct platform version + Given a validated node + And it includes the recipe 'transfer_remote_files::should_prefer_the_file_for_this_specific_host' + And the cookbook has a 'file' named 'host_specific.txt' in the 'platform-version' specific directory + And the cookbook has a 'file' named 'host_specific.txt' in the 'platform' specific directory + And the cookbook has a 'file' named 'host_specific.txt' in the 'default' specific directory + When I run the chef-client + Then the run should exit '0' + And a file named 'host_specific.txt' should be from the 'platform-version' specific directory + + Scenario: Should prefer the file for the correct platform + Given a validated node + And it includes the recipe 'transfer_remote_files::should_prefer_the_file_for_this_specific_host' + And the cookbook has a 'file' named 'host_specific.txt' in the 'platform' specific directory + And the cookbook has a 'file' named 'host_specific.txt' in the 'default' specific directory + When I run the chef-client + Then the run should exit '0' + And a file named 'host_specific.txt' should be from the 'platform' specific directory |