Fixed test
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134839 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
0bb59cb6c2
commit
62553c1bf5
|
@ -152,6 +152,7 @@ public class SmartgearResourcesTest {
|
|||
ContainerStateFacet containerStateFacet = getContainerStateFacet(null);
|
||||
hostingNode.addFacet(containerStateFacet);
|
||||
|
||||
|
||||
MemoryFacet ramFacet = getRamInfo(null);
|
||||
HasVolatileMemory<HostingNode, MemoryFacet> hasVolatileRAMMemory =
|
||||
new HasVolatileMemoryImpl<HostingNode, MemoryFacet>(
|
||||
|
@ -180,12 +181,14 @@ public class SmartgearResourcesTest {
|
|||
|
||||
List<ConsistsOf<? extends Resource, ? extends Facet>> consistsOfList = hostingNodeToUpdate.getConsistsOf();
|
||||
for(ConsistsOf<? extends Resource, ? extends Facet> c : consistsOfList){
|
||||
|
||||
if(c.getTarget() instanceof ContainerStateFacet){
|
||||
containerStateFacet = (ContainerStateFacet) c.getTarget();
|
||||
containerStateFacet = getContainerStateFacet(containerStateFacet);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
if(c instanceof HasVolatileMemory){
|
||||
String memoryType = (String) c.getAdditionalProperty(MEMORY_TYPE);
|
||||
if(memoryType.compareTo(MEMORY_TYPE_RAM)==0){
|
||||
|
@ -217,10 +220,9 @@ public class SmartgearResourcesTest {
|
|||
String updatedHN = entityManagementImpl.updateResource(uuid, Entities.marshal(hostingNodeToUpdate));
|
||||
logger.debug("Updated {}", updatedHN);
|
||||
|
||||
|
||||
updatedHN = entityManagementImpl.readResource(uuid, HostingNode.NAME);
|
||||
|
||||
HostingNode hostingNodeToUpdated = Entities.unmarshal(HostingNode.class, updatedHN);
|
||||
logger.debug("Upodate Hosting Node {}", hostingNodeToUpdated);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue