I have an internal Integration Test and I need to validate metadata file against an expected file, everythink works OK in my PC (Windows 10 Pro, marklogic contained into Docker, spanish language), but when executing in linux I have a slightly different file because metadata's xml file contains more blank spaces than my expected file:
For example:
Expected MetaData File (I placed dots instead of blank spaces to be more easy to see each space) first 20 lines:
<?xml version="1.0" encoding="UTF-8"?>
<com.marklogic.contentpump.DocumentMetadata>
..<format>
....<name>json</name>
..</format>
..<collectionsList class="vector"/>
..<permissionsList class="vector">
....<com.marklogic.xcc.ContentPermission>
......<capability>
........<name>update</name>
........<symbol>U</symbol>
......</capability>
......<role>app-user</role>
......<roleId>0000000000000000000</roleId>
....</com.marklogic.xcc.ContentPermission>
....<com.marklogic.xcc.ContentPermission>
......<capability>
........<name>read</name>
........<symbol>R</symbol>
......</capability>
Generated Metadata's XML with MLCP from Linux Execution:
<?xml version="1.0" encoding="UTF-8"?>
<com.marklogic.contentpump.DocumentMetadata>
..<format>
......<name>json</name>
..</format>
..<collectionsList class="vector"/>
..<permissionsList class="vector">
......<com.marklogic.xcc.ContentPermission>
.........<capability>
............<name>update</name>
............<symbol>U</symbol>
.........</capability>
.........<role>app-user</role>
.........<roleId>0000000000000000000</roleId>
......</com.marklogic.xcc.ContentPermission>
......<com.marklogic.xcc.ContentPermission>
.........<capability>
............<name>read</name>
............<symbol>R</symbol>
.........</capability>
As you may see since lines 3 and 4 there are different blank spaces: Expected File
..<format>
....<name>json</name>
Test-result file
..<format>
......<name>json</name>
There are two more blank spaces, my question is: Does somebody know if there's a kind of export metadata layout configuration or something that would change blank spaces amount from a PC to another? I supposse answer is true, but I don't find anything like that.
Thanks in advance.