Class ProviderClient
java.lang.Object
io.metaloom.test.container.provider.client.ProviderClient
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePool(String id, DatabasePoolRequest request) deletePool(String id) Connect the test to the database provider.List all pools that have been created.Load the pool with the given id.
-
Field Details
-
log
public static final org.slf4j.Logger log
-
-
Constructor Details
-
ProviderClient
-
-
Method Details
-
link
Connect the test to the database provider. The provider will assign a test database which can be used by the caller.- Parameters:
poolName-testRef-- Returns:
-
listPools
List all pools that have been created.- Returns:
- Throws:
URISyntaxException
-
loadPool
public CompletableFuture<DatabasePoolResponse> loadPool(String id) throws IOException, InterruptedException, URISyntaxException Load the pool with the given id.- Parameters:
id-- Returns:
- Throws:
IOExceptionInterruptedExceptionURISyntaxException
-
deletePool
- Throws:
URISyntaxException
-
createPool
public CompletableFuture<DatabasePoolResponse> createPool(String id, DatabasePoolRequest request) throws URISyntaxException - Throws:
URISyntaxException
-