|
| 1 | +Feature: Transfer Remote Files |
| 2 | + In order to easily manage many systems at once |
| 3 | + As a Developer |
| 4 | + I want to manage the contents of files remotely |
| 5 | + |
| 6 | + Scenario: Transfer a file from a cookbook |
| 7 | + Given a validated node |
| 8 | + And it includes the recipe 'transfer_remote_files::transfer_a_file_from_a_cookbook' |
| 9 | + When I run the chef-client |
| 10 | + Then the run should exit '0' |
| 11 | + And a file named 'transfer_a_file_from_a_cookbook.txt' should contain 'easy like sunday morning' |
| 12 | + |
| 13 | + Scenario: Should prefer the file for this specific host |
| 14 | + Given a validated node |
| 15 | + And it includes the recipe 'transfer_remote_files::should_prefer_the_file_for_this_specific_host' |
| 16 | + And the cookbook has a 'file' named 'host_specific.txt' in the 'host' specific directory |
| 17 | + And the cookbook has a 'file' named 'host_specific.txt' in the 'platform-version' specific directory |
| 18 | + And the cookbook has a 'file' named 'host_specific.txt' in the 'platform' specific directory |
| 19 | + And the cookbook has a 'file' named 'host_specific.txt' in the 'default' specific directory |
| 20 | + When I run the chef-client |
| 21 | + Then the run should exit '0' |
| 22 | + And a file named 'host_specific.txt' should be from the 'host' specific directory |
| 23 | + |
| 24 | + Scenario: Should prefer the file for the correct platform version |
| 25 | + Given a validated node |
| 26 | + And it includes the recipe 'transfer_remote_files::should_prefer_the_file_for_this_specific_host' |
| 27 | + And the cookbook has a 'file' named 'host_specific.txt' in the 'platform-version' specific directory |
| 28 | + And the cookbook has a 'file' named 'host_specific.txt' in the 'platform' specific directory |
| 29 | + And the cookbook has a 'file' named 'host_specific.txt' in the 'default' specific directory |
| 30 | + When I run the chef-client |
| 31 | + Then the run should exit '0' |
| 32 | + And a file named 'host_specific.txt' should be from the 'platform-version' specific directory |
| 33 | + |
| 34 | + Scenario: Should prefer the file for the correct platform |
| 35 | + Given a validated node |
| 36 | + And it includes the recipe 'transfer_remote_files::should_prefer_the_file_for_this_specific_host' |
| 37 | + And the cookbook has a 'file' named 'host_specific.txt' in the 'platform' specific directory |
| 38 | + And the cookbook has a 'file' named 'host_specific.txt' in the 'default' specific directory |
| 39 | + When I run the chef-client |
| 40 | + Then the run should exit '0' |
| 41 | + And a file named 'host_specific.txt' should be from the 'platform' specific directory |
0 commit comments