Skip to content

Commit

Permalink
remove explicit js: engine in tests (lsc-project#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Coutadeur authored and xavierba committed Apr 12, 2024
1 parent 36f8433 commit 82f9f93
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/test/resources/etc/lsc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@
<propertiesBasedSyncOptions>
<mainIdentifier>"cn=" + srcBean.getDatasetFirstValueById("cn") + ",ou=ldap2ldapBinary2StringTestTaskDst,ou=Test Data,dc=lsc-project,dc=org"</mainIdentifier>
<pivotTransformation>
<transformation fromAttribute="personalSignature" toAttribute="favouriteDrink"><![CDATA[js:
<transformation fromAttribute="personalSignature" toAttribute="favouriteDrink"><![CDATA[
var result = "";
for (var i = 0; i < value.length; i++) {
if (result != "") {
Expand All @@ -493,7 +493,7 @@
}
result;
]]></transformation>
<transformation fromAttribute="favouriteDrink" toAttribute="personalSignature"><![CDATA[js:
<transformation fromAttribute="favouriteDrink" toAttribute="personalSignature"><![CDATA[
var result = [];
for (var i = 0; i < value.length; i++) {
if (value[i] != '-') {
Expand Down Expand Up @@ -526,7 +526,7 @@
<dataset>
<name>favouriteDrink</name>
<forceValues>
<string><![CDATA[js:
<string><![CDATA[
var value = srcBean.getDatasetById("personalSignature").iterator().next();
var result = "";
for (var i = 0; i < value.length; i++) {
Expand Down Expand Up @@ -590,10 +590,10 @@
<propertiesBasedSyncOptions>
<mainIdentifier>"cn=" + srcBean.getDatasetFirstValueById("cn") + ",ou=ldap2ldapSamePivotConversionTestTaskDst,ou=Test Data,dc=lsc-project,dc=org"</mainIdentifier>
<pivotTransformation>
<transformation fromAttribute="favouriteDrink" toAttribute="favouriteDrink" pivotOrigin="SOURCE"><![CDATA[js:
<transformation fromAttribute="favouriteDrink" toAttribute="favouriteDrink" pivotOrigin="SOURCE"><![CDATA[
value.replace('-src', '-dst');
]]></transformation>
<transformation fromAttribute="favouriteDrink" toAttribute="favouriteDrink" pivotOrigin="DESTINATION"><![CDATA[js:
<transformation fromAttribute="favouriteDrink" toAttribute="favouriteDrink" pivotOrigin="DESTINATION"><![CDATA[
value.replace('-dst', '-src');
]]></transformation>
</pivotTransformation>
Expand All @@ -616,7 +616,7 @@
<dataset>
<name>favouriteDrink</name>
<forceValues>
<string><![CDATA[js:
<string><![CDATA[
var value = srcBean.getDatasetFirstValueById("favouriteDrink");
value.replace('-src', '-dst');
]]></string>
Expand Down

0 comments on commit 82f9f93

Please sign in to comment.