Search in sources :

Example 6 with InputProperty

use of org.opentosca.toscana.core.transformation.properties.InputProperty in project TOSCAna by StuPro-TOSCAna.

the class KubernetesPushingGopherIT method getInputs.

@Override
protected PropertyInstance getInputs(EffectiveModel model) throws NoSuchPropertyException {
    Set<InputProperty> prop = new HashSet<>(plugin.getPlatform().properties);
    prop.addAll(model.getInputs().values());
    PropertyInstance instance = new PropertyInstance(prop, mock(Transformation.class));
    instance.set(DOCKER_PUSH_TO_REGISTRY_PROPERTY_KEY, "true");
    instance.set(DOCKER_REGISTRY_USERNAME_PROPERTY_KEY, "test");
    instance.set(DOCKER_REGISTRY_PASSWORD_PROPERTY_KEY, "");
    instance.set(DOCKER_REGISTRY_URL_PROPERTY_KEY, "127.0.0.1:5000/");
    instance.set(DOCKER_REGISTRY_REPOSITORY_PROPERTY_KEY, "gopher");
    return instance;
}
Also used : Transformation(org.opentosca.toscana.core.transformation.Transformation) InputProperty(org.opentosca.toscana.core.transformation.properties.InputProperty) PropertyInstance(org.opentosca.toscana.core.transformation.properties.PropertyInstance) HashSet(java.util.HashSet)

Aggregations

InputProperty (org.opentosca.toscana.core.transformation.properties.InputProperty)6 HashSet (java.util.HashSet)5 Transformation (org.opentosca.toscana.core.transformation.Transformation)5 PropertyInstance (org.opentosca.toscana.core.transformation.properties.PropertyInstance)5 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