From 902e8e703c1be4ba58bc61fb9a1dac2491e82cdd Mon Sep 17 00:00:00 2001 From: felmer <felmer> Date: Thu, 23 Nov 2017 10:23:19 +0000 Subject: [PATCH] SSDM-5724: making SearchRoleAssignmentsTest more robust SVN: 38944 --- .../systemtest/asapi/v3/SearchRoleAssignmentsTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/openbis/sourceTest/java/ch/ethz/sis/openbis/systemtest/asapi/v3/SearchRoleAssignmentsTest.java b/openbis/sourceTest/java/ch/ethz/sis/openbis/systemtest/asapi/v3/SearchRoleAssignmentsTest.java index 34edab3f039..e1bacd07b04 100644 --- a/openbis/sourceTest/java/ch/ethz/sis/openbis/systemtest/asapi/v3/SearchRoleAssignmentsTest.java +++ b/openbis/sourceTest/java/ch/ethz/sis/openbis/systemtest/asapi/v3/SearchRoleAssignmentsTest.java @@ -292,7 +292,11 @@ public class SearchRoleAssignmentsTest extends AbstractTest List<String> assignmentsAsStrings = new ArrayList<>(); for (RoleAssignment roleAssignment : assignments) { - assignmentsAsStrings.add(asString(roleAssignment)); + String asString = asString(roleAssignment); + if (asString.contains("EO_") == false) // other tests create new role assignments + { + assignmentsAsStrings.add(asString); + } } Collections.sort(assignmentsAsStrings); StringBuilder builder = new StringBuilder(); -- GitLab