Revision a59fbcea
b/snf-tools/synnefo_tools/burnin/astakos_tests.py | ||
---|---|---|
60 | 60 |
"""Test that usernames2uuids and uuids2usernames are complementary""" |
61 | 61 |
our_uuid = self._get_uuid() |
62 | 62 |
|
63 |
given_name = self.clients.astakos.uuids2usernames([our_uuid])
|
|
63 |
given_name = self.clients.astakos.get_usernames([our_uuid])
|
|
64 | 64 |
self.info("uuids2usernames returned %s", given_name) |
65 | 65 |
self.assertIn(our_uuid, given_name) |
66 | 66 |
|
67 | 67 |
given_uuid = \ |
68 |
self.clients.astakos.usernames2uuids([given_name[our_uuid]])
|
|
68 |
self.clients.astakos.get_uuids([given_name[our_uuid]])
|
|
69 | 69 |
self.info("usernames2uuids returned %s", given_uuid) |
70 | 70 |
self.assertIn(given_name[our_uuid], given_uuid) |
71 | 71 |
|
b/snf-tools/synnefo_tools/burnin/common.py | ||
---|---|---|
323 | 323 |
if system_users is None: |
324 | 324 |
system_users = SYSTEM_USERS |
325 | 325 |
|
326 |
uuids = self.clients.astakos.usernames2uuids(system_users)
|
|
326 |
uuids = self.clients.astakos.get_uuids(system_users)
|
|
327 | 327 |
for su_name in system_users: |
328 | 328 |
self.info("Trying username %s", su_name) |
329 | 329 |
if su_name in uuids: |
... | ... | |
502 | 502 |
def _get_quotas(self): |
503 | 503 |
"""Get quotas""" |
504 | 504 |
self.info("Getting quotas") |
505 |
astakos_client = self.clients.astakos.get_client() |
|
506 |
return astakos_client.get_quotas()
|
|
505 |
# astakos_client = self.clients.astakos.get_client()
|
|
506 |
return self.clients.astakos.get_quotas()
|
|
507 | 507 |
|
508 | 508 |
# Invalid argument name. pylint: disable-msg=C0103 |
509 | 509 |
# Too many arguments. pylint: disable-msg=R0913 |
Also available in: Unified diff