-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch_data.feature
More file actions
28 lines (25 loc) · 1005 Bytes
/
Copy pathsearch_data.feature
File metadata and controls
28 lines (25 loc) · 1005 Bytes
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
@search
Feature: Search Data
In order to access information about my infrastructure
As a Developer
I want to search the data
Scenario: Search the user index
Given a validated node
And it includes the recipe 'search::search_data'
And a 'data_bag' named 'users' exists
And a 'data_bag_item' named 'francis' exists
And a 'data_bag_item' named 'axl_rose' exists
When I run the chef-client
Then the run should exit '0'
And a file named 'francis' should exist
And a file named 'axl_rose' should exist
Scenario: Search the user index without a block
Given a validated node
And it includes the recipe 'search::search_data_noblock'
And a 'data_bag' named 'users' exists
And a 'data_bag_item' named 'francis' exists
And a 'data_bag_item' named 'axl_rose' exists
When I run the chef-client
Then the run should exit '0'
And a file named 'francis' should exist
And a file named 'axl_rose' should exist