james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tellier Benoit (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MAILBOX-256) Unit test failure on elasticsearch
Date Wed, 21 Oct 2015 11:03:27 GMT
Tellier Benoit created MAILBOX-256:
--------------------------------------

             Summary: Unit test failure on elasticsearch
                 Key: MAILBOX-256
                 URL: https://issues.apache.org/jira/browse/MAILBOX-256
             Project: James Mailbox
          Issue Type: Bug
            Reporter: Tellier Benoit


On trunk today, I realized test do not pass.

Is that only me ?

Here is the suffire report : 

-------------------------------------------------------------------------------
Test set: org.apache.james.mailbox.elasticsearch.json.MessageToElasticSearchJsonTest
-------------------------------------------------------------------------------
Tests run: 11, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.839 sec <<< FAILURE!
spamEmailShouldBeWellConvertedToJsonWithApacheTika(org.apache.james.mailbox.elasticsearch.json.MessageToElasticSearchJsonTest)
 Time elapsed: 0.367 sec  <<< FAILURE!
java.lang.AssertionError: JSON documents are different:
Array "attachments" has different content. Missing values [{"mediaType":"application","subtype":"vnd.oasis.opendocument.text","fileName":"toto.odt","fileExtension":"odt","contentDisposition":"attachment","fileMetadata":{"date":["2015-06-18T12:43:07.489893918"],"meta:paragraph-count":["1"],"meta:word-count":["7"],"Table-Count":["0"],"generator":["LibreOffice/4.4.3.2$Linux_X86_64
LibreOffice_project/40m0$Build-2"],"Word-Count":["7"],"dcterms:created":["2015-06-18T12:41:25.197399866"],"dcterms:modified":["2015-06-18T12:43:07.489893918"],"Last-Modified":["2015-06-18T12:43:07.489893918"],"nbPara":["1"],"Last-Save-Date":["2015-06-18T12:43:07.489893918"],"meta:object-count":["0"],"meta:character-count":["47"],"Paragraph-Count":["1"],"nbImg":["0"],"meta:save-date":["2015-06-18T12:43:07.489893918"],"modified":["2015-06-18T12:43:07.489893918"],"Edit-Time":["PT1M42S"],"meta:image-count":["0"],"Image-Count":["0"],"nbCharacter":["47"],"nbObject":["0"],"nbPage":["1"],"Object-Count":["0"],"nbWord":["7"],"Content-Type":["application/vnd.oasis.opendocument.text"],"X-Parsed-By":["org.apache.tika.parser.DefaultParser","org.apache.tika.parser.odf.OpenDocumentParser"],"meta:creation-date":["2015-06-18T12:41:25.197399866"],"meta:table-count":["0"],"Creation-Date":["2015-06-18T12:41:25.197399866"],"xmpTPg:NPages":["1"],"resourceName":["toto.odt"],"Character
Count":["47"],"editing-cycles":["2"],"Page-Count":["1"],"nbTab":["0"],"meta:page-count":["1"]},"headers":{"content-transfer-encoding":["base64"],"content-disposition":["attachment;
filename=\"toto.odt\""],"content-type":["application/vnd.oasis.opendocument.text; name=\"toto.odt\""]},"textContent":"Awesome
document provided for text extraction??!\n"}], extra values [{"mediaType":"application","subtype":"vnd.oasis.opendocument.text","fileName":"toto.odt","fileExtension":"odt","contentDisposition":"attachment","fileMetadata":{"date":["2015-06-18T12:43:07.489893918"],"meta:paragraph-count":["1"],"meta:word-count":["7"],"Table-Count":["0"],"generator":["LibreOffice/4.4.3.2$Linux_X86_64
LibreOffice_project/40m0$Build-2"],"Word-Count":["7"],"dcterms:created":["2015-06-18T12:41:25.197399866"],"dcterms:modified":["2015-06-18T12:43:07.489893918"],"Last-Modified":["2015-06-18T12:43:07.489893918"],"nbPara":["1"],"Last-Save-Date":["2015-06-18T12:43:07.489893918"],"meta:object-count":["0"],"meta:character-count":["47"],"Paragraph-Count":["1"],"nbImg":["0"],"meta:save-date":["2015-06-18T12:43:07.489893918"],"modified":["2015-06-18T12:43:07.489893918"],"Edit-Time":["PT1M42S"],"meta:image-count":["0"],"Image-Count":["0"],"nbCharacter":["47"],"nbObject":["0"],"nbPage":["1"],"Object-Count":["0"],"nbWord":["7"],"Content-Type":["application/vnd.oasis.opendocument.text"],"X-Parsed-By":["org.apache.tika.parser.DefaultParser","org.apache.tika.parser.odf.OpenDocumentParser"],"meta:creation-date":["2015-06-18T12:41:25.197399866"],"meta:table-count":["0"],"Creation-Date":["2015-06-18T12:41:25.197399866"],"xmpTPg:NPages":["1"],"resourceName":["toto.odt"],"Character
Count":["47"],"editing-cycles":["2"],"Page-Count":["1"],"nbTab":["0"],"meta:page-count":["1"]},"headers":{"content-transfer-encoding":["base64"],"content-disposition":["attachment;
filename=\"toto.odt\""],"content-type":["application/vnd.oasis.opendocument.text; name=\"toto.odt\""]},"textContent":"Awesome
document provided for text extraction?!\n"}]

	at net.javacrumbs.jsonunit.fluent.JsonFluentAssert.failWithMessage(JsonFluentAssert.java:183)
	at net.javacrumbs.jsonunit.fluent.JsonFluentAssert.isEqualTo(JsonFluentAssert.java:112)
	at org.apache.james.mailbox.elasticsearch.json.MessageToElasticSearchJsonTest.spamEmailShouldBeWellConvertedToJsonWithApacheTika(MessageToElasticSearchJsonTest.java:244)




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message