termie/keystonelight — pull request #15 by anotherjesse (2012-01-18 05:07:48+00:00)
Title: add (failing) tests for scoping ec2 crud

Currently the test fails with:

AuthorizationFailure: Authorization Failed: Unable to communicate with identity service: Traceback (most recent call last)

It seems to be making the request with:

root: DEBUG: {"auth": {"passwordCredentials": {"username": "BOO", "password": "boo2"}, "tenantId": "baz"}}

But keystone is blowing up with:

File "/Users/jesse/rcb/keystonelight/keystone/service.py", line 587, in authenticate
for role_id in metadata_ref.get('roles', []):
AttributeError: 'NoneType' object has no attribute 'get'