Skip to content
Snippets Groups Projects
Commit 27f2aade authored by felmer's avatar felmer
Browse files

extend debug print statements in order to find the reason why...

extend debug print statements in order to find the reason why AssignExperimentToProjectTest.assigningExperimentToProjectInAnotherSpaceChangesTheSpaceAssignmentOfSamplesInThatExperiment always fails on CI server

SVN: 38971
parent 1b9b74c6
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,7 @@ package ch.systemsx.cisd.openbis.systemtest; ...@@ -18,6 +18,7 @@ package ch.systemsx.cisd.openbis.systemtest;
import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.is;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeClass;
...@@ -25,6 +26,7 @@ import org.testng.annotations.DataProvider; ...@@ -25,6 +26,7 @@ import org.testng.annotations.DataProvider;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import ch.systemsx.cisd.common.exceptions.AuthorizationFailureException; import ch.systemsx.cisd.common.exceptions.AuthorizationFailureException;
import ch.systemsx.cisd.openbis.generic.shared.basic.TechId;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.Experiment; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.Experiment;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.Project; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.Project;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.RoleWithHierarchy; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.RoleWithHierarchy;
...@@ -71,7 +73,12 @@ public class AssignExperimentToProjectTest extends BaseTest ...@@ -71,7 +73,12 @@ public class AssignExperimentToProjectTest extends BaseTest
perform(anUpdateOf(experiment).toProject(destinationProject)); perform(anUpdateOf(experiment).toProject(destinationProject));
List<Space> listSpaces = commonServer.listSpaces(systemSessionToken); List<Space> listSpaces = commonServer.listSpaces(systemSessionToken);
System.out.println("ASSIGN EXPERIMENT TO PROJECT: spaces: " + listSpaces); List<String> rs = new ArrayList<String>();
for (Space space : listSpaces)
{
rs.add(space + " (" + space.getId()+ ")");
}
System.out.println("ASSIGN EXPERIMENT TO PROJECT: spaces: " + rs);
assertThat(sample, is(inSpace(destinationSpace))); assertThat(sample, is(inSpace(destinationSpace)));
} }
...@@ -120,7 +127,7 @@ public class AssignExperimentToProjectTest extends BaseTest ...@@ -120,7 +127,7 @@ public class AssignExperimentToProjectTest extends BaseTest
{ {
sourceSpace = create(aSpace()); sourceSpace = create(aSpace());
destinationSpace = create(aSpace()); destinationSpace = create(aSpace());
System.out.println("ASSIGN EXPERIMENT TO PROJECT: destination space: " + destinationSpace); System.out.println("ASSIGN EXPERIMENT TO PROJECT: destination space: " + destinationSpace+" (" + destinationSpace.getId()+")");
sourceProject = create(aProject().inSpace(sourceSpace)); sourceProject = create(aProject().inSpace(sourceSpace));
destinationProject = create(aProject().inSpace(destinationSpace)); destinationProject = create(aProject().inSpace(destinationSpace));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment