Search in sources :

Example 1 with DockerHostRequirement

use of org.opentosca.toscana.model.requirement.DockerHostRequirement in project TOSCAna by StuPro-TOSCAna.

the class TemplateConverterTest method dockerConverter.

@Test
public void dockerConverter() {
    EffectiveModel model = new EffectiveModelFactory().create(TestCsars.VALID_MINIMAL_DOCKER_TEMPLATE, logMock());
    assertNotNull(model);
    DockerApplication dockerApp = (DockerApplication) model.getNodeMap().get("simpleTaskApp");
    DockerHostRequirement host = dockerApp.getDockerHost();
    host.getFulfillers().stream().findFirst().get();
}
Also used : DockerApplication(org.opentosca.toscana.model.node.DockerApplication) DockerHostRequirement(org.opentosca.toscana.model.requirement.DockerHostRequirement) EffectiveModel(org.opentosca.toscana.model.EffectiveModel) EffectiveModelFactory(org.opentosca.toscana.model.EffectiveModelFactory) BaseUnitTest(org.opentosca.toscana.core.BaseUnitTest) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 BaseUnitTest (org.opentosca.toscana.core.BaseUnitTest)1 EffectiveModel (org.opentosca.toscana.model.EffectiveModel)1 EffectiveModelFactory (org.opentosca.toscana.model.EffectiveModelFactory)1 DockerApplication (org.opentosca.toscana.model.node.DockerApplication)1 DockerHostRequirement (org.opentosca.toscana.model.requirement.DockerHostRequirement)1