[
https://issues.apache.org/jira/browse/OODT-831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14485039#comment-14485039
]
Aditya Dhulipala commented on OODT-831:
---------------------------------------
This is the mettle that cas-pge is creating -- pgetask-metadata.xml
.....
[/var/folders/qw/_csft2bd5kzbzycpzqbhfskc0000gp/T/5587e77b-13c5-44bc-92a3-7262f70e6332/DynamicConfig.xml]...
<?xml version="1.0" encoding="UTF-8"?>
<cas:metadata xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">
<keyval type="vector">
<key>PGETask%2FDumpMetadata</key>
<val>true</val>
</keyval>
<keyval type="vector">
<key>PGETask%2FName</key>
<val>TestPGE</val>
</keyval>
</cas:metadata>
.....
But, the test above was expecting
<?xml version="1.0" encoding="UTF-8"?>
<cas:metadata xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">
<keyval type="vector">
<key>PGETask%2FName</key>
<val>TestPGE</val>
</keyval>
<keyval type="vector">
<key>PGETask%2FDumpMetadata</key>
<val>true</val>
</keyval>
</cas:metadata>
...
i.e. the order of the keyval items is not as expected.
My understanding is that this file is a collection of the extracted metadata
key-value fields by the pge metadata extractor. I think the order isn't
important. So does this mean that the testcase should be modified to handle
this? Or does the order matter, in which case I should investigate the working
of the PgeTaskInstance program?
> CAS PGE adapter framework build failed
> --------------------------------------
>
> Key: OODT-831
> URL: https://issues.apache.org/jira/browse/OODT-831
> Project: OODT
> Issue Type: Bug
> Components: pge wrapper framework
> Environment: OS Yosemite JDK8 Maven3
> Reporter: Aditya Dhulipala
>
> This is the result of the surefire report
> -------------------------------------------------------------------------------
> Test set: org.apache.oodt.cas.pge.TestPGETaskInstance
> -------------------------------------------------------------------------------
> Tests run: 15, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.547 sec
> <<< FAILURE! - in org.apache.oodt.cas.pge.TestPGETaskInstance
> testDumpMetadataIfRequested(org.apache.oodt.cas.pge.TestPGETaskInstance)
> Time elapsed: 0.104 sec <<< FAILURE!
> junit.framework.ComparisonFailure: expected:<...
> <key>PGETask%2F[Name]</key>> but was:<...
> <key>PGETask%2F[DumpMetadata]</key>>
> at junit.framework.Assert.assertEquals(Assert.java:81)
> at junit.framework.Assert.assertEquals(Assert.java:87)
> at
> org.apache.oodt.cas.pge.TestPGETaskInstance.testDumpMetadataIfRequested(TestPGETaskInstance.java:344)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)