-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch_data.feature
More file actions
46 lines (42 loc) · 1.81 KB
/
Copy pathsearch_data.feature
File metadata and controls
46 lines (42 loc) · 1.81 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
39
40
41
42
43
44
45
46
@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 with '-l debug'
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
@correctness
Scenario: Search the node and data bag index and verify correctness
Given I am an administrator
And a set of nodes pre-populated with known, searchable data
And the search index has been committed
When I execute a randomized set of searches across my infrastructure
Then all of the searches should return the expected results