-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch_data.feature
More file actions
39 lines (35 loc) · 1.44 KB
/
Copy pathsearch_data.feature
File metadata and controls
39 lines (35 loc) · 1.44 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
32
33
34
35
36
37
38
@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
Scenario: Search the user index without a block, with manual paging
Given a validated node
And it includes the recipe 'search::search_data_manual'
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