Unflatten features directory tree

This commit is contained in:
Thibault Jouan
2014-11-18 11:58:23 +00:00
parent 86a84bbe12
commit 2d3975d47f
36 changed files with 1 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
@sshd
Feature: `mkdir' task action
Background:
Given a recipe with:
"""
task :mkdir_action do
mkdir 'some_directory'
mkdir 'some_directory_0700', mode: 0700
mkdir 'some_directory_0711', mode: 0711
end
"""
Scenario: creates directory given as argument
When I successfully execute the recipe on remote target
Then the remote directory "some_directory" must exists
Scenario: creates directory with given attributes
When I successfully execute the recipe on remote target
Then the remote directory "some_directory_0700" must have 0700 mode
And the remote directory "some_directory_0711" must have 0711 mode
Scenario: creates directories recursively
Given a recipe with:
"""
task :mkdir_action do
mkdir 'some/directory'
end
"""
When I successfully execute the recipe on remote target
Then the remote directory "some/directory" must exists