summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorNuo Yan <nuo@opscode.com>2010-08-24 11:53:31 -0700
committerSeth Falcon <seth@opscode.com>2010-11-01 10:44:47 -0700
commit90da7b1c7fa59f1b6e4aedfcaf4d34709af579da (patch)
treecc6bee3ded2d2d6c0f02ba1c7fe9ad32e607eef5 /features
parent3964c5a0904b06275ef7b5a4895da7fa31ea0f9c (diff)
downloadchef-90da7b1c7fa59f1b6e4aedfcaf4d34709af579da.tar.gz
roles API work for the environments
Diffstat (limited to 'features')
-rw-r--r--features/api/roles/show_roles_api.feature5
-rw-r--r--features/steps/fixture_steps.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/features/api/roles/show_roles_api.feature b/features/api/roles/show_roles_api.feature
index d74a3204cc..001cde6709 100644
--- a/features/api/roles/show_roles_api.feature
+++ b/features/api/roles/show_roles_api.feature
@@ -22,3 +22,8 @@ Feature: Show a role via the REST API
When I 'GET' the path '/roles/webserver' using a wrong private key
Then I should get a '401 "Unauthorized"' exception
+ Scenario: Show an environment specific run list and attribuets in a role
+ Given I am an administrator
+ And a 'role' named 'webserver' exists
+ When I 'GET' the path '/roles/webserver/environments/_default'
+ Then the inflated response should respond to 'run_list' with 'role[webserver], role[base]'
diff --git a/features/steps/fixture_steps.rb b/features/steps/fixture_steps.rb
index 8c52fcb06c..6c194e2cad 100644
--- a/features/steps/fixture_steps.rb
+++ b/features/steps/fixture_steps.rb
@@ -97,7 +97,7 @@ Before do
r = Chef::Role.new
r.name "webserver"
r.description "monkey"
- r.recipes("role::webserver", "role::base")
+ r.run_list("role[webserver]", "role[base]")
r.default_attributes({ 'a' => 'b' })
r.override_attributes({ 'c' => 'd' })
r