Commit Graph

8 Commits

Author SHA1 Message Date
Russell Sim ac2369bd6f Added connection-tenant method
A new method connection-tenant, returns the connections tenant as an
object.  This commit also fixes some problems with the keystone
authentication function and adds more test coverage.

Change-Id: I9b753a7c6e68be45cf1797e5966ac1ff2e2fca2f
2013-10-29 09:16:19 +11:00
Russell Sim 88cc72ff95 Re-factored base resource API out of keystone
To allow other clients to more easily use the REST API helpers, they
have been re-factored out of keystone package.

Change-Id: I5fde703293ff8f2668789053a36e293dc6fc6c53
2013-10-29 08:24:15 +11:00
Russell Sim 2b75f1821d Initial partial keystone API implementation
Change-Id: I25b216936cd902bc9cf05dee517859fd1756f751
2013-10-17 20:22:16 +11:00
Julien Danjou 210ded8b38 Fix tests run
Change-Id: I871160339a9de5c27aae8a128d5f57a535ac48d5
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-10-14 19:02:49 +02:00
Russell Sim 6ab023dbd1 Added token validity predicate
CONNECTION-TOKEN-VALID-P will return T if the token expires in the
future.

Change-Id: I27d1aa0fa8dfee736a5c0ebd4fca2bd22c62ba9b
2013-10-15 00:20:57 +11:00
Russell Sim d475acbde1 Check for all required fields
Check that all required fields are supplied when the keystone connection
is created.  If they aren't then signal an error.  Tenant-id and
tenant-name aren't required for authentication, they will only be passed
if they exist.

Change-Id: I3f7d26029cf2060deee91f97a5fc2c580f70aaff
2013-10-15 00:13:38 +11:00
Russell Sim 84e1783379 Implemented simple error handling behaviour
A KEYSTONE-ERROR condition will be signalled if the response code isn't
200 and the content type is application/json.  In all other cases the
url and the return code will be signalled as a standard error.

Change-Id: If68c3bf3fb8836e0c8510aed3329720da4e154e5
2013-10-13 17:18:08 +11:00
Julien Danjou e4e7a658d8 Import basic Keystone client
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-06-15 22:29:59 +02:00