Package org.openstack4j.api.identity.v3
Class KeystoneAuthenticationTests
- java.lang.Object
-
- org.openstack4j.api.AbstractTest
-
- org.openstack4j.api.identity.v3.KeystoneAuthenticationTests
-
public class KeystoneAuthenticationTests extends AbstractTest
Tests the Identity/Keystone API version 3 Authentication
-
-
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 KeystoneAuthenticationTests()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidauth_Token_Test()authenticates with a tokenvoidauthenticate_token_unscoped()voidauthenticate_userId_password_domain_region_Test()authenticates in another existing regionvoidauthenticate_userId_password_domain_regionInvalid_Test()attempt authenticate in a non-existing region results in an RegionEndpointNotFoundExceptionvoidauthenticate_userId_password_domainId_Test()authenticates with userId+password+domainIdvoidauthenticate_userId_password_domainName_Test()authenticates with userId+password+domainNamevoidauthenticate_userId_password_projectId_projectDomainId_Test()authenticates with userId+password+projectId+projectDomainIdvoidauthenticate_userId_password_projectId_Test()authenticates with userId+password++projectIdvoidauthenticate_userId_password_unscoped_reauthenticate_Test()get an unscoped token, then reauthenticate with itvoidauthenticate_userId_password_unscopedTokenToScopedToken_Test()get an unscoped token, then use it to get a scoped tokenvoidauthenticate_userName_password_domainId_Test()authenticates with userName+password+domainIdvoidauthenticate_userName_password_projectId_projectDomainId_Test()authenticates with userName+password+projectId+projectDomainIdvoidreAuthentication_Test()reAuthenticate after authorizationError e.g.protected 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
-
authenticate_userId_password_projectId_Test
public void authenticate_userId_password_projectId_Test() throws Exceptionauthenticates with userId+password++projectId- Throws:
Exception
-
authenticate_userId_password_projectId_projectDomainId_Test
public void authenticate_userId_password_projectId_projectDomainId_Test() throws Exceptionauthenticates with userId+password+projectId+projectDomainId- Throws:
Exception
-
authenticate_userName_password_projectId_projectDomainId_Test
public void authenticate_userName_password_projectId_projectDomainId_Test() throws Exceptionauthenticates with userName+password+projectId+projectDomainId- Throws:
Exception
-
authenticate_userId_password_domainId_Test
public void authenticate_userId_password_domainId_Test() throws Exceptionauthenticates with userId+password+domainId- Throws:
Exception
-
authenticate_userName_password_domainId_Test
public void authenticate_userName_password_domainId_Test() throws Exceptionauthenticates with userName+password+domainId- Throws:
Exception
-
authenticate_userId_password_domainName_Test
public void authenticate_userId_password_domainName_Test() throws Exceptionauthenticates with userId+password+domainName- Throws:
Exception
-
auth_Token_Test
public void auth_Token_Test() throws Exceptionauthenticates with a token- Throws:
Exception
-
authenticate_userId_password_unscoped_reauthenticate_Test
public void authenticate_userId_password_unscoped_reauthenticate_Test() throws Exceptionget an unscoped token, then reauthenticate with it- Throws:
Exception
-
authenticate_userId_password_unscopedTokenToScopedToken_Test
public void authenticate_userId_password_unscopedTokenToScopedToken_Test() throws Exceptionget an unscoped token, then use it to get a scoped token- Throws:
Exception
-
authenticate_userId_password_domain_region_Test
public void authenticate_userId_password_domain_region_Test() throws Exceptionauthenticates in another existing region- Throws:
Exception
-
authenticate_userId_password_domain_regionInvalid_Test
public void authenticate_userId_password_domain_regionInvalid_Test() throws Exceptionattempt authenticate in a non-existing region results in an RegionEndpointNotFoundException- Throws:
Exception
-
reAuthentication_Test
public void reAuthentication_Test() throws ExceptionreAuthenticate after authorizationError e.g. the token expired- Throws:
Exception
-
-