Fixing tests
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@158407 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
9a47d5d13a
commit
3d93e7ea0a
|
@ -3,6 +3,8 @@
|
|||
*/
|
||||
package org.gcube.informationsystem.resourceregistry.context;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
import org.gcube.informationsystem.impl.utils.ISMapper;
|
||||
|
@ -215,8 +217,29 @@ public class ContextManagementImplTest {
|
|||
logger.trace("/d4science.research-infrastructures.eu/ParthenosVO/PARTHENOS_Registry : {}", PARTHENOS_RegistryJson);
|
||||
|
||||
}
|
||||
|
||||
// @Test
|
||||
public void createProductionMissingContext() throws Exception {
|
||||
UUID d4ResearchUUID = UUID.fromString("8b926d1c-4460-4d7a-adab-c75ad2770a21");
|
||||
UUID farmUUID = UUID.fromString("dbafdb3e-f7f9-4039-ad1c-3432c041f53c");
|
||||
|
||||
//@Test
|
||||
Map<String, UUID> contexts = new HashMap<>();
|
||||
contexts.put("ICES_FIACO2017", d4ResearchUUID);
|
||||
//contexts.put("ICES_BNetworkAnalysis", d4ResearchUUID);
|
||||
//contexts.put("KIMAGRO_Fishfarming", farmUUID);
|
||||
contexts.put("D4STeam", farmUUID);
|
||||
|
||||
for(String contextName : contexts.keySet()){
|
||||
String contextJson = contextManagementImpl.create(contexts.get(contextName), contextName);
|
||||
Context context = ISMapper.unmarshal(Context.class, contextJson);
|
||||
UUID conetexUUID = context.getHeader().getUUID();
|
||||
logger.trace("{} : {}", contextName, conetexUUID);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void createDevContext() throws Exception {
|
||||
String gcubeJson = contextManagementImpl.create(null, "gcube");
|
||||
Context gcubeContext = ISMapper.unmarshal(Context.class, gcubeJson);
|
||||
|
|
Loading…
Reference in New Issue