summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Walters <cw@opscode.com>2010-11-02 15:31:28 -0700
committerChris Walters <cw@opscode.com>2010-11-02 15:31:28 -0700
commit70254b14e4ae52b5d26e203ec4aac13d293fa5fd (patch)
tree9b6bddb34043eb41c205e8d7c01d0b9539abad70
parentd899e031de616be2462e04a1b611db5fb643b2a6 (diff)
downloadchef-70254b14e4ae52b5d26e203ec4aac13d293fa5fd.tar.gz
Marking admin-related tests with tag @oss_only
-rw-r--r--features/api/clients/update_client_api.feature2
-rw-r--r--features/api/data/create_data_bag_api.feature1
-rw-r--r--features/api/data/create_data_bag_item_api.feature1
-rw-r--r--features/api/data/delete_data_bag_api.feature1
-rw-r--r--features/api/data/delete_data_bag_item.feature1
5 files changed, 5 insertions, 1 deletions
diff --git a/features/api/clients/update_client_api.feature b/features/api/clients/update_client_api.feature
index 66d80c5f0f..5f2b5ca5a7 100644
--- a/features/api/clients/update_client_api.feature
+++ b/features/api/clients/update_client_api.feature
@@ -26,7 +26,7 @@ Feature: Update a client
When I 'PUT' the 'client' to the path '/clients/isis'
Then I should get a '403 "Forbidden"' exception
- @privilege_escalation
+ @privilege_escalation @oss_only
Scenario: Non-admin clients cannot update themselves
Given I am a non-admin
When I edit the 'not_admin' client
diff --git a/features/api/data/create_data_bag_api.feature b/features/api/data/create_data_bag_api.feature
index 45602a1400..5258521648 100644
--- a/features/api/data/create_data_bag_api.feature
+++ b/features/api/data/create_data_bag_api.feature
@@ -24,6 +24,7 @@ Feature: Create a data bag via the REST API
When I 'POST' the 'data_bag' to the path '/data'
Then I should get a '401 "Unauthorized"' exception
+ @oss_only
Scenario: Create a new data bag as a non-admin
Given I am a non-admin
And a 'data_bag' named 'users'
diff --git a/features/api/data/create_data_bag_item_api.feature b/features/api/data/create_data_bag_item_api.feature
index 6a202d25a9..469d33a4cd 100644
--- a/features/api/data/create_data_bag_item_api.feature
+++ b/features/api/data/create_data_bag_item_api.feature
@@ -28,6 +28,7 @@ Feature: Create a data bag item via the REST API
When I 'PUT' the 'data_bag_item' to the path '/data/users/francis'
Then I should get a '401 "Unauthorized"' exception
+ @oss_only
Scenario: Create a new data bag item as a non-admin
Given I am a non-admin
And a 'data_bag' named 'users' exists
diff --git a/features/api/data/delete_data_bag_api.feature b/features/api/data/delete_data_bag_api.feature
index 09eddd29d3..2ef5fbc854 100644
--- a/features/api/data/delete_data_bag_api.feature
+++ b/features/api/data/delete_data_bag_api.feature
@@ -32,6 +32,7 @@ Feature: Delete a Data Bag via the REST API
When I 'DELETE' the path '/data/users'
Then I should get a '401 "Unauthorized"' exception
+ @oss_only
Scenario: Delete a Data Bag as a non-admin
Given I am a non-admin
And a 'data_bag' named 'users' exists
diff --git a/features/api/data/delete_data_bag_item.feature b/features/api/data/delete_data_bag_item.feature
index 0f1ccc7ac6..2b1c03c4b9 100644
--- a/features/api/data/delete_data_bag_item.feature
+++ b/features/api/data/delete_data_bag_item.feature
@@ -25,6 +25,7 @@ Feature: Delete a Data Bag Item via the REST API
When I 'DELETE' the path '/data/users/francis'
Then I should get a '401 "Unauthorized"' exception
+ @oss_only
Scenario: Delete a Data Bag Item as a non-admin
Given I am a non-admin
And a 'data_bag' named 'users' exists