Merge "Updated inconsistent value of scope parameter"
This commit is contained in:
@@ -154,7 +154,7 @@ class Auth(BaseAuth):
|
||||
elif self.trust_id:
|
||||
body['auth']['scope'] = {'OS-TRUST:trust': {'id': self.trust_id}}
|
||||
elif self.unscoped:
|
||||
body['auth']['scope'] = {'unscoped': {}}
|
||||
body['auth']['scope'] = 'unscoped'
|
||||
|
||||
# NOTE(jamielennox): we add nocatalog here rather than in token_url
|
||||
# directly as some federation plugins require the base token_url
|
||||
|
||||
@@ -550,7 +550,7 @@ class V3IdentityPlugin(utils.TestCase):
|
||||
self.assertEqual(token.user_id, ident['password']['user']['id'])
|
||||
self.assertEqual(password, ident['password']['user']['password'])
|
||||
|
||||
self.assertEqual({}, body['auth']['scope']['unscoped'])
|
||||
self.assertEqual('unscoped', body['auth']['scope'])
|
||||
|
||||
def test_unscoped_with_scope_data(self):
|
||||
a = v3.Password(self.TEST_URL,
|
||||
|
||||
Reference in New Issue
Block a user