Class KeystoneRoleServiceTests


  • public class KeystoneRoleServiceTests
    extends AbstractTest
    Tests the Identity/Keystone API version 3 RoleService
    • Constructor Detail

      • KeystoneRoleServiceTests

        public KeystoneRoleServiceTests()
    • Method Detail

      • roles_getByName_with_null_throws_NullPointerException

        public void roles_getByName_with_null_throws_NullPointerException()
      • roles_empty_list_when_none_found

        public void roles_empty_list_when_none_found()
                                              throws Exception
        Throws:
        Exception
      • roles_one_entry_in_list_when_one_returned

        public void roles_one_entry_in_list_when_one_returned()
                                                       throws Exception
        Throws:
        Exception
      • roles_list_with_multiple_entries_for_list_of_roles

        public void roles_list_with_multiple_entries_for_list_of_roles()
                                                                throws Exception
        Throws:
        Exception
      • addRoletoUserInProject_projectIdMustBeNonNull

        public void addRoletoUserInProject_projectIdMustBeNonNull()
                                                           throws Exception
        Throws:
        Exception
      • addRoletoUserInProject_userIdMustBeNonNull

        public void addRoletoUserInProject_userIdMustBeNonNull()
                                                        throws Exception
        Throws:
        Exception
      • addRoletoUserInProject_roleIdMustBeNonNull

        public void addRoletoUserInProject_roleIdMustBeNonNull()
                                                        throws Exception
        Throws:
        Exception
      • addRoleToUserInProject_check_correct_response

        public void addRoleToUserInProject_check_correct_response()
                                                           throws Exception
        Throws:
        Exception
      • checkProjectUserRole_success_Test

        public void checkProjectUserRole_success_Test()
                                               throws Exception
        checks if a user has a role in project context
        Throws:
        Exception
      • checkProjectUserRole_fail_Test

        public void checkProjectUserRole_fail_Test()
                                            throws Exception
        checks if a user has a role in domain context
        Throws:
        Exception
      • grantRevokeProjectUserRole_Test

        public void grantRevokeProjectUserRole_Test()
                                             throws Exception
        grants and revokes a role to/from a user in project context
        Throws:
        Exception
      • grantProjectUserRole_fail_Test

        public void grantProjectUserRole_fail_Test()
                                            throws Exception
        try to grant a project role to a user using role that doesn't exist results in failing ActionResponse
        Throws:
        Exception
      • revokeProjectUserRole_fail_Test

        public void revokeProjectUserRole_fail_Test()
                                             throws Exception
        try to revoke a project role from a user that isn't assigned to him results in failing ActionResponse
        Throws:
        Exception
      • checkDomainUserRole_success_Test

        public void checkDomainUserRole_success_Test()
                                              throws Exception
        checks if a user has a role in domain context
        Throws:
        Exception
      • checkDomainUserRole_fail_Test

        public void checkDomainUserRole_fail_Test()
                                           throws Exception
        checks if a user has a role in domain context
        Throws:
        Exception
      • grantRevokeDomainUserRole_Test

        public void grantRevokeDomainUserRole_Test()
                                            throws Exception
        grants and revokes a role to/from a user in domain context
        Throws:
        Exception
      • grantDomainUserRole_fail_Test

        public void grantDomainUserRole_fail_Test()
                                           throws Exception
        try to grant a domain role to a user using a role that doesn't exist results in failing ActionResponse
        Throws:
        Exception
      • revokeDomainUserRole_fail_Test

        public void revokeDomainUserRole_fail_Test()
                                            throws Exception
        try to revoke a domain role from a user that isn't assigned to him results in failing ActionResponse
        Throws:
        Exception
      • listRoleAssignments_Test

        public void listRoleAssignments_Test()
                                      throws Exception
        Throws:
        Exception