-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroles.feature
More file actions
26 lines (24 loc) · 1.24 KB
/
Copy pathroles.feature
File metadata and controls
26 lines (24 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
@client @roles @client_roles
Feature: Configure nodes based on their role
In order to easily configure similar systems
As an Administrator
I want to define and utilize roles
Scenario: Apply a role to a node
Given a validated node
And it includes the role 'role_test'
When I run the chef-client with '-l debug'
Then the run should exit '0'
And 'stdout' should have 'DEBUG: Loading Recipe roles'
And a file named 'role_test_reason.txt' should contain 'unbalancing'
And a file named 'role_test_ossining.txt' should contain 'whatever'
And a file named 'role_test_ruby_version.txt' should contain '1.\d+.\d+'
Scenario: Apply a role with multiple environment specific run_lists to a node
Given an 'environment' named 'cucumber' exists
Given a validated node in the 'cucumber' environment
And it includes the role 'role_env_test'
When I run the chef-client with '-l debug'
Then the run should exit '0'
And 'stdout' should have 'DEBUG: Loading Recipe roles'
And a file named 'role_test_reason.txt' should contain 'unbalancing'
And a file named 'role_test_ossining.txt' should contain 'whatever'
And a file named 'role_test_ruby_version.txt' should contain '1.\d+.\d+'