Search in sources :

Example 6 with ILocationResourceAccessor

use of alien4cloud.orchestrators.plugin.ILocationResourceAccessor in project alien4cloud by alien4cloud.

the class LocationResourceServiceTest method getResourcesOfTypeForUnconfiguredTypeShouldReturnEmptyList.

@Test
public void getResourcesOfTypeForUnconfiguredTypeShouldReturnEmptyList() {
    ILocationResourceAccessor accessor = locationResourceService.accessor(LOCATION_ID);
    List<LocationResourceTemplate> resources = accessor.getResources(UNCONFIGURED_TYPE);
    Assert.assertEquals(0, resources.size());
}
Also used : LocationResourceTemplate(alien4cloud.model.orchestrators.locations.LocationResourceTemplate) ILocationResourceAccessor(alien4cloud.orchestrators.plugin.ILocationResourceAccessor) Test(org.junit.Test)

Aggregations

LocationResourceTemplate (alien4cloud.model.orchestrators.locations.LocationResourceTemplate)6 ILocationResourceAccessor (alien4cloud.orchestrators.plugin.ILocationResourceAccessor)6 Test (org.junit.Test)5 LocationTemplateCreated (alien4cloud.events.LocationTemplateCreated)1 ILocationConfiguratorPlugin (alien4cloud.orchestrators.plugin.ILocationConfiguratorPlugin)1 IOrchestratorPlugin (alien4cloud.orchestrators.plugin.IOrchestratorPlugin)1 IOrchestratorPluginFactory (alien4cloud.orchestrators.plugin.IOrchestratorPluginFactory)1 NodeType (org.alien4cloud.tosca.model.types.NodeType)1