summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Keiser <jkeiser@opscode.com>2014-07-25 12:34:27 -0600
committerJohn Keiser <jkeiser@opscode.com>2014-08-22 09:20:49 -0700
commitd55406b3c3218323d9a9751e1df267fceab08eef (patch)
tree1b0d46e6f6a49fb392c9e9deeb954d79f121643a
parent050901c99b325c9cb32acbd4d8517e917664100e (diff)
downloadchef-zero-d55406b3c3218323d9a9751e1df267fceab08eef.tar.gz
Fix pedant_users to contain all oc-chef-pedant users
-rw-r--r--spec/support/oc_pedant.rb85
1 files changed, 44 insertions, 41 deletions
diff --git a/spec/support/oc_pedant.rb b/spec/support/oc_pedant.rb
index 3116dab..2b5a5ff 100644
--- a/spec/support/oc_pedant.rb
+++ b/spec/support/oc_pedant.rb
@@ -81,47 +81,50 @@ webui_key key
platform_class Pedant::MultiTenantPlatform
requestors({
- :clients => {
- # The the admin user, for the purposes of getting things rolling
- :admin => {
- :name => "pedant_admin_client",
- :create_me => true,
- :create_knife => true,
- :admin => true
- },
- :non_admin => {
- :name => 'pedant_client',
- :create_me => true,
- :create_knife => true
- },
- :bad => {
- :name => 'bad_client',
- :bogus => true
- }
- },
- :users => {
- :admin => {
- :name => "admin",
- :key_file => key,
- :create_me => false,
- :create_knife => false,
- :admin => true
- },
- :non_admin => {
- :name => "pedant_non_admin_user",
- :create_me => true,
- :create_knife => true,
- :admin => false
- },
- # A user for Knife tests. A knife.rb and key files will be set up
- # for this user
- :knife_user => {
- :name => "knifey",
- :create_me => true,
- :create_knife => true
- }
- }
-})
+ :clients => {
+ # The the admin user, for the purposes of getting things rolling
+ :admin => {
+ :name => "pedant_admin_client",
+ :create_me => true,
+ :create_knife => true,
+ :admin => true
+ },
+ :non_admin => {
+ :name => 'pedant_client',
+ :create_me => true,
+ :create_knife => true,
+ },
+ :bad => {
+ :name => 'bad_client',
+ :create_me => true,
+ :create_knife => true,
+ :bogus => true
+ }
+ },
+
+ :users => {
+ # An administrator in the testing organization
+ :admin => {
+ :name => "pedant_admin_user",
+ :create_me => true,
+ :create_knife => true
+ },
+
+ :non_admin => {
+ :name => "pedant_user",
+ :create_me => true,
+ :create_knife => true
+ },
+
+ # A user that is not a member of the testing organization
+ :bad => {
+ :name => "pedant-nobody",
+ :create_me => true,
+ :create_knife => true,
+ :associate => false
+ },
+ }
+ })
self[:tags] = [:validation, :authentication, :authorization]
verify_error_messages false