diff options
author | sdelano <stephen@opscode.com> | 2010-08-18 01:26:22 -0700 |
---|---|---|
committer | Daniel DeLeo <dan@opscode.com> | 2010-08-23 17:25:21 -0700 |
commit | 79cf53af6aedc920609f485f218306530cc67abf (patch) | |
tree | c0e52e57bb0e23e7065132c3d0b62f5ce4216cce /features | |
parent | 8e0a1c97a9a85562cd8d97cf8ab62da964bc7f36 (diff) | |
download | chef-79cf53af6aedc920609f485f218306530cc67abf.tar.gz |
add cookbooks/_latest api endpoint
Diffstat (limited to 'features')
-rw-r--r-- | features/api/cookbooks/list_cookbooks.feature | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/features/api/cookbooks/list_cookbooks.feature b/features/api/cookbooks/list_cookbooks.feature index 5a86d34bd4..f5e494f2aa 100644 --- a/features/api/cookbooks/list_cookbooks.feature +++ b/features/api/cookbooks/list_cookbooks.feature @@ -9,6 +9,20 @@ Feature: List cookbooks via the REST API Given I am <user_type> And I upload multiple versions of the 'version_test' cookbook When I 'GET' the path '/cookbooks' + And the inflated responses key 'attribute_include' should match 'http://.+/cookbooks/attribute_include' + And the inflated responses key 'deploy' should match 'http://.+/cookbooks/deploy' + And the inflated responses key 'metadata' should match 'http://.+/cookbooks/metadata' + And the inflated responses key 'version_test' should match 'http://.+/cookbooks/version_test' + + Examples: + | user_type | + | an administrator | + | a non-admin | + + Scenario Outline: List all cookbooks with the latest version + Given I am <user_type> + And I upload multiple versions of the 'version_test' cookbook + When I 'GET' the path '/cookbooks/_latest' And the inflated responses key 'attribute_include' should match 'http://.+/cookbooks/attribute_include/0\.1\.0' And the inflated responses key 'deploy' should match 'http://.+/cookbooks/deploy/0\.0\.0' And the inflated responses key 'metadata' should match 'http://.+/cookbooks/metadata/1\.0\.0' |