Parameters
This commit is contained in:
parent
9014e32c4e
commit
44e057797c
|
@ -76,8 +76,8 @@ public class GCatModel implements CatalogueFormatData {
|
||||||
|
|
||||||
item.setPrivateFlag(desc.getPrivateFlag());
|
item.setPrivateFlag(desc.getPrivateFlag());
|
||||||
|
|
||||||
/* for(Parameter param: desc.getInputParameters())
|
for(Parameter param: desc.getInputParameters())
|
||||||
item.getExtras().add(new CKanExtraField(profileID+":Input Parameter",
|
item.getExtras().add(new CKanExtraField("TechnicalDetails:input",
|
||||||
String.format("%1$s [%2$s] %3$s : %4$s",
|
String.format("%1$s [%2$s] %3$s : %4$s",
|
||||||
param.getName(),param.getType(),
|
param.getName(),param.getType(),
|
||||||
((param.getValue()!=null&&!param.getValue().isEmpty())?"default : "+param.getValue():""),
|
((param.getValue()!=null&&!param.getValue().isEmpty())?"default : "+param.getValue():""),
|
||||||
|
@ -85,12 +85,12 @@ public class GCatModel implements CatalogueFormatData {
|
||||||
|
|
||||||
|
|
||||||
for(Parameter param: desc.getOutputParameters())
|
for(Parameter param: desc.getOutputParameters())
|
||||||
item.getExtras().add(new CKanExtraField(profileID+":Output Parameter",
|
item.getExtras().add(new CKanExtraField("TechnicalDetails:output",
|
||||||
String.format("%1$s [%2$s] %3$s : %4$s",
|
String.format("%1$s [%2$s] %3$s : %4$s",
|
||||||
param.getName(),param.getType(),
|
param.getName(),param.getType(),
|
||||||
((param.getValue()!=null&&!param.getValue().isEmpty())?"default : "+param.getValue():""),
|
((param.getValue()!=null&&!param.getValue().isEmpty())?"default : "+param.getValue():""),
|
||||||
param.getDescription())));
|
param.getDescription())));
|
||||||
*/
|
|
||||||
|
|
||||||
item.getExtras().add(new CKanExtraField("Identity:Creator", desc.getAuthor().asStringValue()));
|
item.getExtras().add(new CKanExtraField("Identity:Creator", desc.getAuthor().asStringValue()));
|
||||||
|
|
||||||
|
|
|
@ -32,11 +32,7 @@ public class TranslationTest extends BaseCollectorTest{
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testTranslation() throws CollectorFault, CatalogueNotSupportedException, JsonGenerationException, JsonMappingException, IOException, InternalConversionException {
|
public void testTranslation() throws CollectorFault, CatalogueNotSupportedException, JsonGenerationException, JsonMappingException, IOException, InternalConversionException {
|
||||||
//Assume.assumeTrue(isTestInfrastructureEnabled());
|
Assume.assumeTrue(isTestInfrastructureEnabled());
|
||||||
System.out.println("START HERE");
|
|
||||||
//TokenSetter.set("/d4science.research-infrastructures.eu/D4OS/Blue-CloudLab");
|
|
||||||
//SecurityTokenProvider.instance.set("***REMOVED***");
|
|
||||||
TokenSetter.set("/gcube/devsec/devVRE");
|
|
||||||
System.out.println("Entering Infrastructure enabled tests..");
|
System.out.println("Entering Infrastructure enabled tests..");
|
||||||
ObjectMapper mapper = new ObjectMapper();
|
ObjectMapper mapper = new ObjectMapper();
|
||||||
|
|
||||||
|
@ -78,7 +74,7 @@ public class TranslationTest extends BaseCollectorTest{
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testEnvironment(){
|
public void testEnvironment(){
|
||||||
|
Assume.assumeTrue(isTestInfrastructureEnabled());
|
||||||
assertNotNull(DMAlgorithmsInfoCollector.getWPSBasePath());
|
assertNotNull(DMAlgorithmsInfoCollector.getWPSBasePath());
|
||||||
assertNotNull(GCatModel.getItemUrl("fake"));
|
assertNotNull(GCatModel.getItemUrl("fake"));
|
||||||
System.out.println(getEnvironmentConfiguration().getCurrentConfiguration());
|
System.out.println(getEnvironmentConfiguration().getCurrentConfiguration());
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue