diff options
Diffstat (limited to 'features')
-rw-r--r-- | features/api/cookbooks/delete_cookbooks.feature | 2 | ||||
-rw-r--r-- | features/api/cookbooks/list_cookbooks.feature | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/features/api/cookbooks/delete_cookbooks.feature b/features/api/cookbooks/delete_cookbooks.feature index dd95b6f638..1a08a2c0e2 100644 --- a/features/api/cookbooks/delete_cookbooks.feature +++ b/features/api/cookbooks/delete_cookbooks.feature @@ -49,6 +49,6 @@ Feature: CRUD cookbooks @delete_cookbook_negative Scenario: I should not be able to delete a cookbook that doesn't exist' Given I am an administrator - When I 'DELETE' to the path '/cookbooks/testcookbook_nonexistent' + When I 'DELETE' to the path '/cookbooks/testcookbook_nonexistent/1.2.3' Then I should get a '404 "Not Found"' exception diff --git a/features/api/cookbooks/list_cookbooks.feature b/features/api/cookbooks/list_cookbooks.feature index 52e7e581ca..df9188b68f 100644 --- a/features/api/cookbooks/list_cookbooks.feature +++ b/features/api/cookbooks/list_cookbooks.feature @@ -6,8 +6,9 @@ Feature: List cookbooks via the REST API I want to be able to list all cookbooks via the REST API Scenario Outline: List all cookbooks - Given I am <user_type> + Given I am an administrator And I upload multiple versions of the 'version_test' cookbook + And I am <user_type> When I 'GET' the path '/cookbooks' Then the inflated responses key 'version_test' sub-key 'url' should match 'http://.+/cookbooks/version_test' And the inflated responses key 'version_test' sub-key 'versions' item '0' sub-key 'url' should match 'http://.+/cookbooks/version_test/(\d+.\d+.\d+)' |