Search in sources :

Example 1 with KubernetesLifecycle

use of org.opentosca.toscana.plugins.kubernetes.lifecycle.KubernetesLifecycle in project TOSCAna by StuPro-TOSCAna.

the class KubernetesPluginTest method modelCheckTest.

@Test(expected = ValidationFailureException.class)
public void modelCheckTest() throws Exception {
    EffectiveModel singleComputeModel = new EffectiveModelFactory().create(TestCsars.VALID_SINGLE_COMPUTE_WINDOWS_TEMPLATE, logMock());
    TransformationContext context = setUpMockTransformationContext(singleComputeModel);
    KubernetesLifecycle lifecycle = plugin.getInstance(context);
    plugin.transform(lifecycle);
}
Also used : KubernetesLifecycle(org.opentosca.toscana.plugins.kubernetes.lifecycle.KubernetesLifecycle) TransformationContext(org.opentosca.toscana.core.transformation.TransformationContext) TestUtil.setUpMockTransformationContext(org.opentosca.toscana.plugins.util.TestUtil.setUpMockTransformationContext) EffectiveModel(org.opentosca.toscana.model.EffectiveModel) EffectiveModelFactory(org.opentosca.toscana.model.EffectiveModelFactory) BaseUnitTest(org.opentosca.toscana.core.BaseUnitTest) MapperTest(org.opentosca.toscana.plugins.kubernetes.docker.mapper.MapperTest) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 BaseUnitTest (org.opentosca.toscana.core.BaseUnitTest)1 TransformationContext (org.opentosca.toscana.core.transformation.TransformationContext)1 EffectiveModel (org.opentosca.toscana.model.EffectiveModel)1 EffectiveModelFactory (org.opentosca.toscana.model.EffectiveModelFactory)1 MapperTest (org.opentosca.toscana.plugins.kubernetes.docker.mapper.MapperTest)1 KubernetesLifecycle (org.opentosca.toscana.plugins.kubernetes.lifecycle.KubernetesLifecycle)1 TestUtil.setUpMockTransformationContext (org.opentosca.toscana.plugins.util.TestUtil.setUpMockTransformationContext)1