summaryrefslogtreecommitdiff
path: root/features/api/nodes/cookbook_sync_api.feature
diff options
context:
space:
mode:
authorsdelano <stephen@opscode.com>2010-11-23 10:07:08 -0800
committerTim Hinderliter <tim@opscode.com>2011-03-17 16:56:43 -0700
commit1c398d98f08f03cfe609b1c58233a6727ef92a28 (patch)
treecefe5baa21b9d2a610a1dc62c627a3b2bcdae7e8 /features/api/nodes/cookbook_sync_api.feature
parent300e2d9b5aad97287e2d1750cdadfc9555441741 (diff)
downloadchef-1c398d98f08f03cfe609b1c58233a6727ef92a28.tar.gz
simple case for cookbook dependency feature tests
Diffstat (limited to 'features/api/nodes/cookbook_sync_api.feature')
-rw-r--r--features/api/nodes/cookbook_sync_api.feature11
1 files changed, 11 insertions, 0 deletions
diff --git a/features/api/nodes/cookbook_sync_api.feature b/features/api/nodes/cookbook_sync_api.feature
index ecbf57444c..6f74ab946d 100644
--- a/features/api/nodes/cookbook_sync_api.feature
+++ b/features/api/nodes/cookbook_sync_api.feature
@@ -59,3 +59,14 @@ Feature: Synchronize cookbooks to the edge
When I 'GET' the path '/nodes/sync/cookbooks'
Then I should get a '403 "Forbidden"' exception
+ @cookbook_dependencies
+ Scenario: Retrieve the list of cookbook files to sync
+ Given I am an administrator
+ And I upload the set of 'dep_test_*' cookbooks
+ And a 'node' named 'empty' exists
+ And changing the 'node' field 'run_list' to 'recipe[dep_test_a@1.0.0]'
+ When I 'PUT' the 'node' to the path 'nodes/empty'
+ And I 'GET' the path 'nodes/empty/cookbooks'
+ Then cookbook 'dep_test_a' should have version '1.0.0'
+ Then cookbook 'dep_test_b' should have version '1.0.0'
+ Then cookbook 'dep_test_c' should have version '1.0.0'