Package org.openstack4j.api.identity.v2
Class KeystoneTests
- java.lang.Object
-
- org.openstack4j.api.AbstractTest
-
- org.openstack4j.api.identity.v2.KeystoneTests
-
public class KeystoneTests extends AbstractTest
Tests the Identity/Keystone API- Author:
- Jeremy Unruh
-
-
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 KeystoneTests()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidauthenticateTest()Tests authentication and receiving the Access object with the current TokenvoidrolesTest()Tests the Role based Operationsprotected AbstractTest.Serviceservice()voidtestAPIPatterns()Tests common API patterns such as expecting a Null if a query by an identifier fails or Empty list on results that have no datavoidtestAuthorizationFailure()voidtestExtensions()Tests retrieving ExtensionsvoidtestInvalidRegion()Tests finding an endpoint for which does not existvoidtestRegionTwo()Tests finding an endpoint for Region Two which does existvoidtestTenants()Tests tenant based operationsvoidtestTenantUsers()voidusersTest()Tests the User based Operations-
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
-
authenticateTest
public void authenticateTest() throws ExceptionTests authentication and receiving the Access object with the current Token- Throws:
Exception- the exception
-
testAuthorizationFailure
public void testAuthorizationFailure() throws IOException- Throws:
IOException
-
rolesTest
public void rolesTest() throws ExceptionTests the Role based Operations- Throws:
Exception- the exception
-
usersTest
public void usersTest() throws ExceptionTests the User based Operations- Throws:
Exception- the exception
-
testRegionTwo
public void testRegionTwo() throws ExceptionTests finding an endpoint for Region Two which does exist- Throws:
Exception
-
testInvalidRegion
public void testInvalidRegion() throws ExceptionTests finding an endpoint for which does not exist- Throws:
Exception
-
testAPIPatterns
public void testAPIPatterns()
Tests common API patterns such as expecting a Null if a query by an identifier fails or Empty list on results that have no data
-
testTenants
public void testTenants() throws ExceptionTests tenant based operations- Throws:
Exception
-
testExtensions
public void testExtensions() throws ExceptionTests retrieving Extensions- Throws:
Exception
-
service
protected AbstractTest.Service service()
- Specified by:
servicein classAbstractTest- Returns:
- the service the API is using
-
-