From 143dab631cbc17eec92e78edf873e2bced6a1ffc Mon Sep 17 00:00:00 2001 From: Florian Necas Date: Mon, 12 Aug 2024 10:04:46 +0200 Subject: [PATCH] fix: tests on roles based sync (cherry picked from commit d606c18139cd2dde80cfa6ccd15b6cb6b345b375) --- .../security/external/integration/IntegrationTestSupport.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {