Package org.openstack4j.api.identity.v3
Class KeystoneUserServiceTests
- java.lang.Object
-
- org.openstack4j.api.AbstractTest
-
- org.openstack4j.api.identity.v3.KeystoneUserServiceTests
-
public class KeystoneUserServiceTests extends AbstractTest
Tests the Identity/Keystone API version 3 UserService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.api.AbstractTest
AbstractTest.Service
-
-
Field Summary
-
Fields inherited from class org.openstack4j.api.AbstractTest
JSON_ACCESS, JSON_TOKEN, osv2, osv3, server, TOKEN_ID
-
-
Constructor Summary
Constructors Constructor Description KeystoneUserServiceTests()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangeUserPassword_fail_Test()tries to change the password for an non existent user failsvoidchangeUserPassword_Test()Changes the password for a uservoidcrud_User_Test()CRUD user testsvoiddeleteUser_fail_Test()tries to delete an non existent user failsvoidgetUser_byId_Test()get speciific user by user identifiervoidgetUser_byName_byDomainId_NotExist_Test()returns null for an non-existing user when the user specified by name and domain.voidgetUser_byName_byDomainId_Test()returns the user specified by name and domain.voidgetUsers_byName_AcrossAllDomains_Test()returns users across all domains matching given namevoidlistAllUsers_Test()gets a list of usersvoidlistDomainUserRoles_Test()list roles for a user in domain contextvoidlistProjectUserRoles_Test()list roles for user in project contextvoidlistUserGroups_Test()lists the groups for uservoidlistUserProjects_Test()list the projects given user has access toprotected AbstractTest.Serviceservice()-
Methods inherited from class org.openstack4j.api.AbstractTest
afterTest, associateClientV2, associateClientV3, authURL, getResource, osv2, osv3, respondWith, respondWith, respondWith, respondWith, respondWith, respondWithCodeAndResource, respondWithHeaderAndResource, startServer, takeRequest
-
-
-
-
Method Detail
-
service
protected AbstractTest.Service service()
- Specified by:
servicein classAbstractTest- Returns:
- the identity service
-
listAllUsers_Test
public void listAllUsers_Test() throws Exceptiongets a list of users- Throws:
Exception
-
getUser_byId_Test
public void getUser_byId_Test() throws Exceptionget speciific user by user identifier- Throws:
Exception
-
getUsers_byName_AcrossAllDomains_Test
public void getUsers_byName_AcrossAllDomains_Test() throws Exceptionreturns users across all domains matching given name- Throws:
Exception
-
getUser_byName_byDomainId_Test
public void getUser_byName_byDomainId_Test() throws Exceptionreturns the user specified by name and domain.- Throws:
Exception
-
getUser_byName_byDomainId_NotExist_Test
public void getUser_byName_byDomainId_NotExist_Test() throws Exceptionreturns null for an non-existing user when the user specified by name and domain.- Throws:
Exception
-
deleteUser_fail_Test
public void deleteUser_fail_Test() throws Exceptiontries to delete an non existent user fails- Throws:
Exception
-
listDomainUserRoles_Test
public void listDomainUserRoles_Test() throws Exceptionlist roles for a user in domain context- Throws:
Exception
-
listProjectUserRoles_Test
public void listProjectUserRoles_Test() throws Exceptionlist roles for user in project context- Throws:
Exception
-
listUserGroups_Test
public void listUserGroups_Test() throws Exceptionlists the groups for user- Throws:
Exception
-
listUserProjects_Test
public void listUserProjects_Test() throws Exceptionlist the projects given user has access to- Throws:
Exception
-
changeUserPassword_Test
public void changeUserPassword_Test() throws ExceptionChanges the password for a user- Throws:
Exception
-
-