public class KeystoneRoleServiceTests extends AbstractTest
AbstractTest.Service
JSON_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 |
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, takeRequest
protected AbstractTest.Service service()
service
in class AbstractTest
public void roles_getByName_with_null_throws_NullPointerException()
public void roles_empty_list_when_none_found() throws Exception
Exception
public void roles_one_entry_in_list_when_one_returned() throws Exception
Exception
public void roles_list_with_multiple_entries_for_list_of_roles() throws Exception
Exception
public void addRoletoUserInProject_projectIdMustBeNonNull() throws Exception
Exception
public void addRoletoUserInProject_userIdMustBeNonNull() throws Exception
Exception
public void addRoletoUserInProject_roleIdMustBeNonNull() throws Exception
Exception
public void addRoleToUserInProject_check_correct_response() throws Exception
Exception
public void checkProjectUserRole_success_Test() throws Exception
Exception
public void checkProjectUserRole_fail_Test() throws Exception
Exception
public void grantRevokeProjectUserRole_Test() throws Exception
Exception
public void grantProjectUserRole_fail_Test() throws Exception
Exception
public void revokeProjectUserRole_fail_Test() throws Exception
Exception
public void checkDomainUserRole_success_Test() throws Exception
Exception
public void checkDomainUserRole_fail_Test() throws Exception
Exception
public void grantRevokeDomainUserRole_Test() throws Exception
Exception
public void grantDomainUserRole_fail_Test() throws Exception
Exception
public void revokeDomainUserRole_fail_Test() throws Exception
Exception
Copyright © 2017. All Rights Reserved.