Fixing test
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-publisher@141524 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
810feaac5b
commit
2bb92c44e6
|
@ -148,17 +148,6 @@ public class EntityManagementTest extends ScopedTest {
|
||||||
boolean deleted = resourceRegistryPublisher.deleteResource(createdHostingNode);
|
boolean deleted = resourceRegistryPublisher.deleteResource(createdHostingNode);
|
||||||
Assert.assertTrue(deleted);
|
Assert.assertTrue(deleted);
|
||||||
|
|
||||||
deleted = resourceRegistryPublisher.deleteFacet(createdCPUFacet);
|
|
||||||
Assert.assertTrue(deleted);
|
|
||||||
|
|
||||||
deleted = resourceRegistryPublisher.deleteFacet(createdNetworkingFacet);
|
|
||||||
Assert.assertTrue(deleted);
|
|
||||||
|
|
||||||
|
|
||||||
deleted = resourceRegistryPublisher.deleteFacet(createdSoftwareFacet);
|
|
||||||
Assert.assertTrue(deleted);
|
|
||||||
|
|
||||||
|
|
||||||
deleted = resourceRegistryPublisher.deleteResource(createdEService);
|
deleted = resourceRegistryPublisher.deleteResource(createdEService);
|
||||||
Assert.assertTrue(deleted);
|
Assert.assertTrue(deleted);
|
||||||
|
|
||||||
|
@ -203,16 +192,15 @@ public class EntityManagementTest extends ScopedTest {
|
||||||
Assert.assertTrue(deleted);
|
Assert.assertTrue(deleted);
|
||||||
|
|
||||||
|
|
||||||
deleted = resourceRegistryPublisher.deleteFacet(createdCpuFacet);
|
|
||||||
Assert.assertTrue(deleted);
|
|
||||||
|
|
||||||
|
|
||||||
deleted = resourceRegistryPublisher.deleteIsRelatedTo(createdHosts);
|
deleted = resourceRegistryPublisher.deleteIsRelatedTo(createdHosts);
|
||||||
Assert.assertTrue(deleted);
|
Assert.assertTrue(deleted);
|
||||||
|
|
||||||
|
|
||||||
deleted = resourceRegistryPublisher.deleteResource(createdHostingNode);
|
deleted = resourceRegistryPublisher.deleteResource(createdHostingNode);
|
||||||
Assert.assertTrue(deleted);
|
Assert.assertTrue(deleted);
|
||||||
|
|
||||||
|
deleted = resourceRegistryPublisher.deleteResource(createdEService);
|
||||||
|
Assert.assertTrue(deleted);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -159,13 +159,15 @@ public class MultiContextTest extends ScopedTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
boolean deleted = resourceRegistryPublisher.deleteResource(createdHN);
|
boolean deleted = resourceRegistryPublisher.deleteResource(createdHN);
|
||||||
Assert.assertTrue(deleted);
|
Assert.assertTrue(deleted);
|
||||||
|
|
||||||
|
|
||||||
|
logger.debug("Restoring original scope");
|
||||||
|
ScopedTest.setContext(ScopedTest.DEFAULT_TEST_SCOPE);
|
||||||
|
|
||||||
deleted = resourceRegistryPublisher.deleteResource(createEService);
|
deleted = resourceRegistryPublisher.deleteResource(createEService);
|
||||||
Assert.assertTrue(deleted);
|
Assert.assertTrue(deleted);
|
||||||
*/
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue