This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/master by this push:
     new 52f91f739e Fixing Groovy scripts
52f91f739e is described below

commit 52f91f739e19d2d4ec0d069baff7afe917ccd414
Author: Francesco Chicchiriccò <ilgro...@apache.org>
AuthorDate: Wed Jul 23 14:43:30 2025 +0200

    Fixing Groovy scripts
---
 fit/core-reference/src/test/resources/rest/SearchScript.groovy | 2 +-
 fit/core-reference/src/test/resources/rest/SyncScript.groovy   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fit/core-reference/src/test/resources/rest/SearchScript.groovy 
b/fit/core-reference/src/test/resources/rest/SearchScript.groovy
index 576bb513ee..87034d18cf 100644
--- a/fit/core-reference/src/test/resources/rest/SearchScript.groovy
+++ b/fit/core-reference/src/test/resources/rest/SearchScript.groovy
@@ -106,7 +106,7 @@ case "__ACCOUNT__":
     ArrayNode nodes = mapper.readTree(response.getEntity());
     
     // beware: this is not enforcing any server-side pagination feature
-    for (i = offset; i < (limit < nodes.size() ? limit: nodes.size()); i++) {
+    for (int i = offset; i < (limit < nodes.size() ? limit: nodes.size()); 
i++) {
       result.add(buildConnectorObject(nodes.get(i)));
     }
   } else {
diff --git a/fit/core-reference/src/test/resources/rest/SyncScript.groovy 
b/fit/core-reference/src/test/resources/rest/SyncScript.groovy
index ae073fd54e..90501c0b81 100644
--- a/fit/core-reference/src/test/resources/rest/SyncScript.groovy
+++ b/fit/core-reference/src/test/resources/rest/SyncScript.groovy
@@ -103,7 +103,7 @@ if (action.equalsIgnoreCase("GET_LATEST_SYNC_TOKEN")) {
     
     ArrayNode node = mapper.readTree(response.getEntity());
     
-    for (i = 0; i < node.size(); i++) {
+    for (int i = 0; i < node.size(); i++) {
       if (node.get(i).get("deleted").booleanValue()) {
         result.add([
             operation:"DELETE",

Reply via email to