summaryrefslogtreecommitdiff
path: root/features/search
diff options
context:
space:
mode:
authorAdam Jacob <adam@opscode.com>2009-08-01 21:26:21 -0700
committerAdam Jacob <adam@opscode.com>2009-08-20 13:31:58 -0700
commit89779a4d487ac7dd313e16eb68732835bd13d4e4 (patch)
treed8b867f3a5610ed39bd864149152085af05a1c3d /features/search
parent89a2609242a63d6bc85e0ddfed078319b4d4a81b (diff)
downloadchef-89779a4d487ac7dd313e16eb68732835bd13d4e4.tar.gz
Initial pass at a Chef 0.8.0 alpha
Conflicts: Rakefile chef-server-slice/Rakefile chef-server-slice/app/controllers/application.rb chef-server-slice/app/controllers/exceptions.rb chef-server-slice/app/controllers/nodes.rb chef-server-slice/app/controllers/openid_consumer.rb chef-server-slice/app/controllers/openid_server.rb chef-server-slice/app/helpers/nodes_helper.rb chef-server/Rakefile chef-server/config/dependencies.rb chef-server/config/init.rb chef/Rakefile chef/lib/chef.rb chef/lib/chef/application/indexer.rb chef/lib/chef/client.rb chef/lib/chef/config.rb chef/lib/chef/node.rb chef/lib/chef/queue.rb chef/spec/unit/application/indexer_spec.rb chef/spec/unit/client_spec.rb chef/spec/unit/config_spec.rb cucumber.yml features/api/nodes/create_node_api.feature features/api/nodes/delete_node_api.feature features/api/nodes/list_nodes_api.feature features/api/nodes/show_node_api.feature features/api/nodes/update_node_api.feature features/api/roles/list_roles_api.feature features/steps/fixture_steps.rb
Diffstat (limited to 'features/search')
-rw-r--r--features/search/search_data.feature20
1 files changed, 17 insertions, 3 deletions
diff --git a/features/search/search_data.feature b/features/search/search_data.feature
index 26b256b077..f6544b7f2e 100644
--- a/features/search/search_data.feature
+++ b/features/search/search_data.feature
@@ -4,11 +4,25 @@ Feature: Search Data
As a Developer
I want to search the data
- Scenario: Search the node index
+ 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 'search_one.txt' should exist
- And a file named 'search_two.txt' should exist
+ 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