diff --git a/georchestra-integration/externalized-accounts/src/test/java/org/geonetwork/security/external/integration/IntegrationTestSupport.java b/georchestra-integration/externalized-accounts/src/test/java/org/geonetwork/security/external/integration/IntegrationTestSupport.java index 4da71202a9..261b22b72c 100644 --- a/georchestra-integration/externalized-accounts/src/test/java/org/geonetwork/security/external/integration/IntegrationTestSupport.java +++ b/georchestra-integration/externalized-accounts/src/test/java/org/geonetwork/security/external/integration/IntegrationTestSupport.java @@ -186,7 +186,9 @@ public GroupLink assertGroupLink(CanonicalGroup expected) { public void assertGroup(CanonicalGroup expected, Group actual) { assertEquals(expected.getName(), actual.getName()); assertEquals(expected.getDescription(), actual.getDescription()); - assertEquals(expected.getLinkage(), actual.getWebsite()); + if (!getConfig().getSyncMode().equals(GroupSyncMode.roles)) { + assertEquals(expected.getLinkage(), actual.getWebsite()); + } } public void addGeonetworkGroup(CanonicalGroup g) {