use of org.openstack4j.openstack.trove.domain.TroveDatabase in project openstack4j by ContainX.
the class DBDatabaseServiceImplTest method testCreateDatabase.
@Test
public void testCreateDatabase() throws Exception {
String databaseInstanceId = "54c91755526e44b9808385a263db4aa6";
respondWith(200);
TroveBuilders troveBuilders = new TroveBuilders();
TroveDatabase database = (TroveDatabase) troveBuilders.databaseCreate().name("exampledb").build();
Databases troveDatabases = new Databases();
List<TroveDatabase> troveDatabaseList = new ArrayList<>();
troveDatabaseList.add(database);
troveDatabases.setTroveDatabaseList(troveDatabaseList);
ActionResponse result = osv2().trove().databaseService().create(databaseInstanceId, troveDatabases);
assertTrue(result.isSuccess());
}
Aggregations