use of org.guvnor.ala.openshift.access.OpenShiftTemplate.Parameter in project kie-wb-common by kiegroup.
the class OpenShiftAccessTest method verifyParameter.
private void verifyParameter(Map<String, Parameter> params, String name, String displayName, String description, boolean required, String generate, String from, String value) {
Parameter param = params.get(name);
assertEquals(name, param.getName());
assertEquals(displayName, param.getDisplayName());
assertEquals(description, param.getDescription());
assertEquals(required, param.isRequired());
assertEquals(generate, param.getGenerate());
assertEquals(from, param.getFrom());
assertEquals(value, param.getValue());
}
use of org.guvnor.ala.openshift.access.OpenShiftTemplate.Parameter in project kie-wb-common by kiegroup.
the class OpenShiftAccessTest method testTemplateParams.
@Test
public void testTemplateParams() throws Exception {
String templateUri = getUri("bpmsuite70-execserv.json");
OpenShiftTemplate template = new OpenShiftTemplate(templateUri);
Map<String, Parameter> params = template.getParameterMap();
verifyParameter(params, "APPLICATION_NAME", "Application Name", "The name for the application.", true, null, null, "myapp");
verifyParameter(params, "KIE_SERVER_PWD", "KIE Server Password", "KIE execution server password (Sets the org.kie.server.pwd system property)", false, "expression", "[a-zA-Z]{6}[0-9]{1}!", null);
}
Aggregations