-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.feature
More file actions
31 lines (28 loc) · 1.22 KB
/
Copy pathtemplate.feature
File metadata and controls
31 lines (28 loc) · 1.22 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
27
28
29
30
31
@provider @template
Feature: Templates
In order to easily manage many systems at once
As a Developer
I want to manage the contents of files programatically
Scenario: Render a template from a cookbook
Given a validated node
And it includes the recipe 'template'
When I run the chef-client
Then the run should exit '0'
And a file named 'template.txt' should contain 'sauce'
Scenario: Render a template accessing the node directly
Given a validated node
And it includes the recipe 'template::render_node_attrs'
When I run the chef-client
Then the run should exit '0'
And a file named 'node.txt' should contain 'bawt is fujins bot'
And a file named 'node.txt' should contain 'cheers!'
# Read the JIRA ticket for the full story, but what we're testing is that the
# template resource executes correctly the second time it's run in the same
# chef process
@regression @chef_1384
Scenario: Render a template twice running as a daemon
Given a validated node
And it includes the recipe 'template::interval'
When I run the chef-client for no more than '30' seconds
Then the run should exit '108'
And a file named 'template.txt' should contain 'two'