diff options
author | Nuo Yan <nuo@opscode.com> | 2010-09-23 11:37:30 -0700 |
---|---|---|
committer | Seth Falcon <seth@opscode.com> | 2010-11-01 10:47:00 -0700 |
commit | 56ff759e842948ec01b7d69d33fc08accfda80c6 (patch) | |
tree | 201d70cace6dd71eedeaede65687424c3712c1bf /features/api/search/show_search.feature | |
parent | 28e7431b212abc740445206472818f5919a5f3f3 (diff) | |
download | chef-56ff759e842948ec01b7d69d33fc08accfda80c6.tar.gz |
enable search for environment objects and complete the knife environment from file feature
Diffstat (limited to 'features/api/search/show_search.feature')
-rw-r--r-- | features/api/search/show_search.feature | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/features/api/search/show_search.feature b/features/api/search/show_search.feature index 74dc011d96..5bdb50b5a5 100644 --- a/features/api/search/show_search.feature +++ b/features/api/search/show_search.feature @@ -114,6 +114,14 @@ Feature: Search data via the REST API And the inflated responses key 'rows' item '0' key 'three' should be 'four' And the inflated responses key 'rows' item '0' key 'walking' should be 'tall' + Scenario: Search for an environment + Given I am an administrator + And a 'environment' named 'cucumber' exists + And I wait for '15' seconds + When I authenticate as 'bobo' + And I 'GET' the path '/search/environment?q=name:cucumber' + Then the inflated responses key 'rows' item '0' should be a kind of 'Chef::Environment' + Scenario: Search for a type of object that does not exist Given I am an administrator When I authenticate as 'bobo' |