use of org.opentosca.toscana.core.transformation.properties.PropertyInstance in project TOSCAna by StuPro-TOSCAna.
the class CloudFormationExpressIT method getInputs.
@Override
protected PropertyInstance getInputs(EffectiveModel model) throws NoSuchPropertyException {
PropertyInstance props = new PropertyInstance(new HashSet<>(plugin.getPlatform().properties), mock(Transformation.class));
props.set(AWS_ACCESS_KEY_ID_KEY, accessKey);
props.set(AWS_SECRET_KEY_KEY, secretKey);
props.set(AWS_KEYPAIR_KEY, "true");
return props;
}
use of org.opentosca.toscana.core.transformation.properties.PropertyInstance in project TOSCAna by StuPro-TOSCAna.
the class CloudFoundryLampITinput method getInputs.
protected PropertyInstance getInputs(EffectiveModel model) throws NoSuchPropertyException {
Set<InputProperty> prop = new HashSet<>(plugin.getPlatform().properties);
prop.addAll(model.getInputs().values());
PropertyInstance props = new PropertyInstance(prop, mock(Transformation.class));
props.set("database_name", "name");
props.set("database_user", "user");
props.set("database_port", "3333");
props.set("database_password", "secrets");
props.set(CF_PROPERTY_KEY_USERNAME, envUser);
props.set(CF_PROPERTY_KEY_PASSWORD, envPw);
props.set(CF_PROPERTY_KEY_API, envHost);
props.set(CF_PROPERTY_KEY_ORGANIZATION, envOrga);
props.set(CF_PROPERTY_KEY_SPACE, envSpace);
return props;
}
use of org.opentosca.toscana.core.transformation.properties.PropertyInstance in project TOSCAna by StuPro-TOSCAna.
the class CloudFoundryLampMultiNode method getInputs.
protected PropertyInstance getInputs(EffectiveModel model) throws NoSuchPropertyException {
Set<InputProperty> prop = new HashSet<>(plugin.getPlatform().properties);
prop.addAll(model.getInputs().values());
PropertyInstance props = new PropertyInstance(prop, mock(Transformation.class));
props.set(CF_PROPERTY_KEY_USERNAME, envUser);
props.set(CF_PROPERTY_KEY_PASSWORD, envPw);
props.set(CF_PROPERTY_KEY_API, envHost);
props.set(CF_PROPERTY_KEY_ORGANIZATION, envOrga);
props.set(CF_PROPERTY_KEY_SPACE, envSpace);
return props;
}
use of org.opentosca.toscana.core.transformation.properties.PropertyInstance in project TOSCAna by StuPro-TOSCAna.
the class KubernetesJavaTranslatorIT method getInputs.
@Override
protected PropertyInstance getInputs(EffectiveModel model) throws NoSuchPropertyException {
PropertyInstance instance = super.getInputs(model);
// Set the required model inputs
instance.set("database_name", "stadb");
instance.set("database_user", "stadb");
instance.set("database_port", "3306");
instance.set("database_password", "TOSCA_rulez");
return instance;
}
use of org.opentosca.toscana.core.transformation.properties.PropertyInstance 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;
}
Aggregations