summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2011-05-16 11:36:26 +0200
committermr <mr@mrautenberg.de>2011-05-16 11:36:26 +0200
commit9e3c8678d895466939d7c4feb8d0a27fe030e01f (patch)
tree55135686a52f0528070fcac9b1513222c70cdb42
parent14d04655b90b808c4f1468719f898cd0b3d59fe2 (diff)
fix in user groups test, test deleted policy
-rw-r--r--authorization.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/authorization.rb b/authorization.rb
index cbe8b5a..1d9b676 100644
--- a/authorization.rb
+++ b/authorization.rb
@@ -44,7 +44,7 @@ class TestOpenToxAuthorizationLDAP < Test::Unit::TestCase
end
def test_02_list_user_groups
- assert_kind_of Array, OpenTox::Authorization.list_groups(@@subjectid)
+ assert_kind_of Array, OpenTox::Authorization.list_user_groups(TEST_USER, @@subjectid)
end
def test_03_get_user
@@ -64,6 +64,7 @@ class TestOpenToxAuthorizationLDAP < Test::Unit::TestCase
policies.each do |policy|
assert OpenTox::Authorization.delete_policy(policy, @@subjectid)
end
+ assert_equal false, OpenTox::Authorization.uri_has_policy(TEST_URI, @@subjectid)
end
def test_02_check_policy_rules