public class KeystoneRoleServiceTests extends AbstractTest
AbstractTest.ServiceJSON_ACCESS, JSON_TOKEN, osv2, osv3, server, TOKEN_ID| Constructor and Description |
|---|
KeystoneRoleServiceTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRoleToUserInProject_check_correct_response() |
void |
addRoletoUserInProject_projectIdMustBeNonNull() |
void |
addRoletoUserInProject_roleIdMustBeNonNull() |
void |
addRoletoUserInProject_userIdMustBeNonNull() |
void |
checkDomainUserRole_fail_Test()
checks if a user has a role in domain context
|
void |
checkDomainUserRole_success_Test()
checks if a user has a role in domain context
|
void |
checkProjectUserRole_fail_Test()
checks if a user has a role in domain context
|
void |
checkProjectUserRole_success_Test()
checks if a user has a role in project context
|
void |
grantDomainUserRole_fail_Test()
try to grant a domain role to a user using a role that doesn't exist
results in failing ActionResponse
|
void |
grantProjectUserRole_fail_Test()
try to grant a project role to a user using role that doesn't exist
results in failing ActionResponse
|
void |
grantRevokeDomainUserRole_Test()
grants and revokes a role to/from a user in domain context
|
void |
grantRevokeProjectUserRole_Test()
grants and revokes a role to/from a user in project context
|
void |
list_roles() |
void |
listRoleAssignments_Test() |
void |
revokeDomainUserRole_fail_Test()
try to revoke a domain role from a user that isn't assigned to him
results in failing ActionResponse
|
void |
revokeProjectUserRole_fail_Test()
try to revoke a project role from a user that isn't assigned to him
results in failing ActionResponse
|
void |
role_with_options() |
void |
roles_empty_list_when_none_found() |
void |
roles_getByName_with_null_throws_NullPointerException() |
void |
roles_list_with_multiple_entries_for_list_of_roles() |
void |
roles_one_entry_in_list_when_one_returned() |
protected AbstractTest.Service |
service() |
void |
updateRole_Test() |
afterTest, associateClientV2, associateClientV3, authURL, getResource, osv2, osv3, respondWith, respondWith, respondWith, respondWith, respondWith, respondWithCodeAndResource, respondWithHeaderAndResource, startServer, takeRequestprotected AbstractTest.Service service()
service in class AbstractTestpublic void roles_getByName_with_null_throws_NullPointerException()
public void roles_empty_list_when_none_found()
throws Exception
Exceptionpublic void roles_one_entry_in_list_when_one_returned()
throws Exception
Exceptionpublic void roles_list_with_multiple_entries_for_list_of_roles()
throws Exception
Exceptionpublic void addRoletoUserInProject_projectIdMustBeNonNull()
throws Exception
Exceptionpublic void addRoletoUserInProject_userIdMustBeNonNull()
throws Exception
Exceptionpublic void addRoletoUserInProject_roleIdMustBeNonNull()
throws Exception
Exceptionpublic void addRoleToUserInProject_check_correct_response()
throws Exception
Exceptionpublic void checkProjectUserRole_success_Test()
throws Exception
Exceptionpublic void checkProjectUserRole_fail_Test()
throws Exception
Exceptionpublic void grantRevokeProjectUserRole_Test()
throws Exception
Exceptionpublic void grantProjectUserRole_fail_Test()
throws Exception
Exceptionpublic void revokeProjectUserRole_fail_Test()
throws Exception
Exceptionpublic void checkDomainUserRole_success_Test()
throws Exception
Exceptionpublic void checkDomainUserRole_fail_Test()
throws Exception
Exceptionpublic void grantRevokeDomainUserRole_Test()
throws Exception
Exceptionpublic void grantDomainUserRole_fail_Test()
throws Exception
Exceptionpublic void revokeDomainUserRole_fail_Test()
throws Exception
Exceptionpublic void role_with_options()
throws IOException
IOExceptionCopyright © 2020. All rights reserved.