Implement `file_write' action
This commit is contained in:
15
features/actions/file_write.feature
Normal file
15
features/actions/file_write.feature
Normal file
@@ -0,0 +1,15 @@
|
||||
@sshd
|
||||
Feature: `file_write' task action
|
||||
|
||||
Scenario: writes given data to given file path
|
||||
Given a recipe with:
|
||||
"""
|
||||
target 'some_host.test'
|
||||
|
||||
task :write_some_data do
|
||||
file_write 'some_file', 'some_content'
|
||||
end
|
||||
"""
|
||||
When I execute the recipe
|
||||
Then the exit status must be 0
|
||||
And the remote file "some_file" must contain "some_content"
|
Reference in New Issue
Block a user