Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
Test for succesful access and secret key creation after User creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
clemesha-ooi committed Feb 12, 2010
1 parent 5474ec6 commit 4018659
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/src/python/nimbusrest/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ def setUp(self):
self.secret = "secret"
self.conn = AdminConnection(self.uri, self.key, self.secret)

def test_add_user(self):
def test_add_user_has_key_secret(self):
resp = self.conn.add_user(self.user)
self.assertEquals(resp.dn, "test_dn")
user_id = resp.user_id
access_key = self.conn.generate_user_access_key(user_id)
self.assertTrue(hasattr(access_key, "secret"))
self.assertEquals(access_key.key, user_id)


if __name__ == '__main__':
Expand Down

0 comments on commit 4018659

Please sign in to comment.