-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_client.feature
More file actions
21 lines (19 loc) · 939 Bytes
/
Copy pathrun_client.feature
File metadata and controls
21 lines (19 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@client
Feature: Run chef-client
In order to ensure a system is always correctly configured
As an Administrator
I want to run the chef-client
@empty_run_list
Scenario: Run chef-client with an empty runlist should get a log warning the node has an empty run list
Given a validated node with an empty runlist
When I run the chef-client with '-l debug'
Then the run should exit '0'
And 'stdout' should have 'has an empty run list.'
@json_run_list
Scenario: Run chef client with a run list from command line JSON attributes
Given a validated node with an empty runlist
When I run the chef-client with json attributes 'json_runlist_and_attrs'
Then the run should exit '0'
And a file named 'attribute_setting.txt' should contain 'from_json_file'
When the node is retrieved from the API
Then the inflated responses key 'attribute_priority_was' should match 'from_json_file'