Package org.openstack4j.api.identity.v3
Class CustomEndpointURLResolverTest
- java.lang.Object
-
- org.openstack4j.api.AbstractTest
-
- org.openstack4j.api.identity.v3.CustomEndpointURLResolverTest
-
public class CustomEndpointURLResolverTest extends AbstractTest
This test will validate that by default, the endpoint used is the one provided in the token. If custom logic is provided by the Config.withEndpointURLResolver, this logic should be used instead.- Author:
- bcornelis
-
-
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 CustomEndpointURLResolverTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcustomImplementation_Test()This test validates the custom url endpoint resolver is used when it has been configured in the Config class.voiddefaultImplementation_Test()This test verifies the default logic to retrieve the endpoint URL is still working.protected AbstractTest.Serviceservice()voidsetup()-
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 service the API is using
-
defaultImplementation_Test
public void defaultImplementation_Test() throws IOExceptionThis test verifies the default logic to retrieve the endpoint URL is still working. Internally it will generate the endpoint included in the security token.- Throws:
IOException
-
customImplementation_Test
public void customImplementation_Test() throws IOExceptionThis test validates the custom url endpoint resolver is used when it has been configured in the Config class.- Throws:
IOException
-
setup
@BeforeTest public void setup()
-
-