[Erp5-report] cloudooo r42442 : 127 Tests, 0 Errors, 12 Failures, 0 Skips

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jan 19 09:45:16 CET 2011


Test Suite: cloudooo
Revision: 42442
Result: FAIL

All tests: 127
Failures: 12
Errors: 0
Skips: 0



The following tests failed:

  testAllFormats                                     (2 failures)
   Test all spreadsheet formats
   Test all text formats

  testMimemapper                                     (5 failures)
   Passing document_type equal to 'chart', the return must be equal
   Passing document_type equal to 'web', the return must be equal
   Test if function getAllowedExtensionList returns correctly a list with
   Passing document_type equal to 'global', the return must be equal
   Test if passing the extension the filter returns corretcly.

  testOOHandler                                      (1 failures)
   Test convert ODT to DOC

  testServer                                         (3 failures)
   Test export pptx to odp
   Test if filter name returns correctly with ERP5 API
   Test run_generate method. This test is to validate a bug convertions to

  testUnoConverter                                   (1 failures)
   Test script unoconverter

-------------- next part --------------

FAIL: Test all spreadsheet formats
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/tests/testAllFormats.py", line 59, in testSpreadSheetFormats
    self.runTestForType('ods', 'spreadsheet', 'data/test.ods')
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/tests/testAllFormats.py", line 89, in runTestForType
    self.fail('Failed Conversions:\n' + message)
AssertionError: Failed Conversions:
input_format: 'ods'
output_format: 'html'
 traceback:
<type 'exceptions.Exception'>:Traceback (most recent call last):
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/helper/unoconverter.py", line 355, in <module>
    main()
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/helper/unoconverter.py", line 340, in main
    output = unoconverter.convert(destination_format)
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/helper/unoconverter.py", line 203, in convert
    tuple(property_list))
__main__.ErrorCodeIOException

input_format: 'ods'
output_format: 'html'
 traceback:
<type 'exceptions.Exception'>:Traceback (most recent call last):
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/helper/unoconverter.py", line 355, in <module>
    main()
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/helper/unoconverter.py", line 340, in main
    output = unoconverter.convert(destination_format)
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/helper/unoconverter.py", line 203, in convert
    tuple(property_list))
__main__.ErrorCodeIOException



FAIL: Test all text formats
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/tests/testAllFormats.py", line 47, in testTextFormats
    self.runTestForType('odt', 'text', 'data/test.odt')
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/tests/testAllFormats.py", line 89, in runTestForType
    self.fail('Failed Conversions:\n' + message)
AssertionError: Failed Conversions:
input_format: 'odt'
output_format: 'pdb'
 traceback:
<type 'exceptions.Exception'>:Traceback (most recent call last):
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/helper/unoconverter.py", line 355, in <module>
    main()
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/helper/unoconverter.py", line 340, in main
    output = unoconverter.convert(destination_format)
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/helper/unoconverter.py", line 203, in convert
    tuple(property_list))
__main__.ErrorCodeIOException

input_format: 'odt'
output_format: 'html'
 traceback:
<type 'exceptions.Exception'>:Traceback (most recent call last):
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/helper/unoconverter.py", line 355, in <module>
    main()
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/helper/unoconverter.py", line 340, in main
    output = unoconverter.convert(destination_format)
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/helper/unoconverter.py", line 203, in convert
    tuple(property_list))
__main__.ErrorCodeIOException

input_format: 'odt'
output_format: 'html'
 traceback:
<type 'exceptions.Exception'>:Traceback (most recent call last):
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/helper/unoconverter.py", line 355, in <module>
    main()
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/helper/unoconverter.py", line 340, in main
    output = unoconverter.convert(destination_format)
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/helper/unoconverter.py", line 203, in convert
    tuple(property_list))
__main__.ErrorCodeIOException

input_format: 'odt'
output_format: 'psw'
 traceback:
<type 'exceptions.Exception'>:Traceback (most recent call last):
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/helper/unoconverter.py", line 355, in <module>
    main()
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/helper/unoconverter.py", line 340, in main
    output = unoconverter.convert(destination_format)
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/helper/unoconverter.py", line 203, in convert
    tuple(property_list))
__main__.ErrorCodeIOException



FAIL: Passing document_type equal to 'chart', the return must be equal
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/tests/testMimemapper.py", line 345, in testGetAllAllowedExtensionListForChart
    self.assertEquals(got_list, chart_expected_list)
AssertionError: [(u'odc', u'ODF Chart'), (u'sxs', u'OpenOffice.org 1.0 Chart')] != [('odc', 'ODF Chart'), ('sds', 'StarChart 3.0'), ('sds', 'StarChart 4.0'), ('sds', 'StarChart 5.0'), ('sxs', 'OpenOffice.org 1.0 Chart')]


FAIL: Passing document_type equal to 'web', the return must be equal
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/tests/testMimemapper.py", line 317, in testGetAllAllowedExtensionListForWeb
    self.assertEquals(got_tuple, web_expected_list)
AssertionError: [(u'html', u'HTML Document'), (u'odt', u'OpenOffice.org Text (OpenOffice.org Writer/Web)'), (u'pdf', u'PDF - Portable Document Format'), (u'sdw', u'StarWriter 3.0 (OpenOffice.org Writer/Web)'), (u'sdw', u'StarWriter 4.0 (OpenOffice.org Writer/Web)'), (u'sdw', u'StarWriter 5.0 (OpenOffice.org Writer/Web)'), (u'sxw', u'OpenOffice.org 1.0 Text Document (OpenOffice.org Writer/Web)'), (u'txt', u'Text (OpenOffice.org Writer/Web)'), (u'txt', u'Text Encoded (OpenOffice.org Writer/Web)')] != [('htm', 'HTML Document'), ('html', 'HTML Document'), ('odt', 'OpenOffice.org Text (OpenOffice.org Writer/Web)'), ('pdf', 'PDF - Portable Document Format'), ('sdw', 'StarWriter 3.0 (OpenOffice.org Writer/Web)'), ('sdw', 'StarWriter 4.0 (OpenOffice.org Writer/Web)'), ('sdw', 'StarWriter 5.0 (OpenOffice.org Writer/Web)'), ('sxw', 'OpenOffice.org 1.0 Text Document (OpenOffice.org Writer/Web)'), ('txt', 'Text (OpenOffice.org Writer/Web)'), ('txt', 'Text Encoded (OpenOffice.org Writer/Web)')]


FAIL: Test if function getAllowedExtensionList returns correctly a list with
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/tests/testMimemapper.py", line 280, in testGetAllowedExtensionListByExtension
    "%s not in %s" % (arg, pdf_expected_list))
AssertionError: (u'sgl', u'StarWriter 4.0 Master Document') not in [('xlc', 'Microsoft Excel 95'), ('xlc', 'Microsoft Excel 4.0'), ('sdc', 'StarCalc 4.0'), ('xlt', 'Microsoft Excel 5.0 Template'), ('ppt', 'Microsoft PowerPoint 97/2000/XP'), ('odm', 'ODF Master Document'), ('pps', 'Microsoft PowerPoint 97/2000/XP'), ('sdw', 'StarWriter 4.0'), ('ott', 'ODF Text Document Template'), ('sda', 'StarDraw 5.0 (OpenOffice.org Impress)'), ('sda', 'StarDraw 5.0'), ('doc', 'Microsoft Word 97/2000/XP'), ('xlw', 'Microsoft Excel 4.0'), ('odg', 'ODF Drawing (Impress)'), ('smf', 'StarMath 5.0'), ('pbm', 'PBM - Portable Bitmap'), ('txt', 'Text CSV'), ('htm', 'HTML Document (OpenOffice.org Impress)'), ('xls', 'Microsoft Excel 97/2000/XP'), ('odf', 'ODF Formula'), ('sxw', 'OpenOffice.org 1.0 Text Document (OpenOffice.org Writer/Web)'), ('sxi', 'OpenOffice.org 1.0 Presentation'), ('txt', 'Text (OpenOffice.org Writer/Web)'), ('html', 'XHTML'), (u'pdb', u'AportisDoc (Palm)'), ('html', 'HTML Document (OpenOffice.org Impress)'), ('txt', 'Text'), ('htm', 'HTML Document'), ('eps', 'EPS - Encapsulated PostScript'), ('sxc', 'OpenOffice.org 1.0 Spreadsheet'), ('smf', 'StarMath 3.0'), ('odp', 'ODF Presentation'), ('txt', 'Text Encoded'), ('odt', 'ODF Text Document'), ('sdc', 'StarCalc 5.0'), ('htm', 'HTML Document (OpenOffice.org Writer)'), ('sdd', 'StarImpress 5.0'), ('xlw', 'Microsoft Excel 97/2000/XP'), ('otp', 'ODF Presentation Template'), ('odg', 'ODF Drawing'), ('sxw', 'OpenOffice.org 1.0 Text Document'), ('xls', 'Microsoft Excel 95'), ('xlw', 'Microsoft Excel 5.0'), ('odt', 'OpenOffice.org Text (OpenOffice.org Writer/Web)'), ('xlm', 'Microsoft Excel 97/2000/XP'), ('pict', 'PCT - Mac Pict'), ('emf', 'EMF - Enhanced Metafile'), ('pdf', 'PDF - Portable Document Format'), ('svg', 'SVG - Scalable Vector Graphics'), ('doc', 'Microsoft Word 95'), ('sdw', 'StarWriter 3.0'), ('smf', 'StarMath 4.0'), ('bmp', 'BMP - Windows Bitmap'), ('sdd', 'StarImpress 4.0'), ('ras', 'RAS - Sun Raster Image'), ('tiff', 'TIFF - Tagged Image File Format'), ('doc', 'Microsoft Word 6.0'), ('xls', 'Text CSV'), ('html', 'HTML Document (OpenOffice.org Draw)'), ('xls', 'Microsoft Excel 5.0'), ('jfif', 'JPEG - Joint Photographic Experts Group'), ('jpg', 'JPEG - Joint Photographic Experts Group'), ('ots', 'ODF Spreadsheet Template'), ('sdc', 'StarCalc 3.0'), ('pgm', 'PGM - Portable Graymap'), ('ppm', 'PPM - Portable Pixelmap'), ('pct', 'PCT - Mac Pict'), ('rtf', 'Rich Text Format'), ('tif', 'TIFF - Tagged Image File Format'), ('svm', 'SVM - StarView Metafile'), ('jpe', 'JPEG - Joint Photographic Experts Group'), ('htm', 'HTML (Writer/Global)'), ('html', 'HTML Document (OpenOffice.org Writer)'), ('xlm', 'Microsoft Excel 4.0'), ('xpm', 'XPM - X PixMap'), ('sxg', 'OpenOffice.org 1.0 Master Document'), ('sdw', 'StarWriter 4.0 (OpenOffice.org Writer/Web)'), ('sxd', 'OpenOffice.org 1.0 Drawing (OpenOffice.org Impress)'), ('sdd', 'StarDraw 3.0 (OpenOffice.org Impress)'), ('txt', 'Text Encoded (OpenOffice.org Writer/Web)'), ('html', 'HTML (Writer/Global)'), ('html', 'HTML Document'), ('sxd', 'OpenOffice.org 1.0 Drawing'), ('xlm', 'Microsoft Excel 95'), ('xlw', 'Microsoft Excel 95'), ('wmf', 'WMF - Windows Metafile'), ('png', 'PNG - Portable Network Graphic'), ('sdw', 'StarWriter 5.0 (OpenOffice.org Writer/Web)'), ('xlm', 'Microsoft Excel 5.0'), ('htm', 'HTML Document (OpenOffice.org Draw)'), ('met', 'MET - OS/2 Metafile'), ('jif', 'JPEG - Joint Photographic Experts Group'), ('jpeg', 'JPEG - Joint Photographic Experts Group'), ('pot', 'Microsoft PowerPoint 97/2000/XP Template'), ('xlc', 'Microsoft Excel 5.0'), ('gif', 'GIF - Graphics Interchange Format'), ('xlt', 'Microsoft Excel 95 Template'), ('sdd', 'StarDraw 3.0'), ('xlc', 'Microsoft Excel 97/2000/XP'), ('sdw', 'StarWriter 3.0 (OpenOffice.org Writer/Web)'), ('sdw', 'StarWriter 5.0'), ('htm', 'HTML Document (OpenOffice.org Calc)'), ('sxm', 'OpenOffice.org 1.0 Formula'), ('xls', 'Microsoft Excel 4.0'), ('xlt', 'Microsoft Excel 97/2000/XP Template'), (u'psw', u'Pocket Word'), ('mml', 'MathML 1.01'), ('xhtml', 'XHTML'), ('csv', 'Text CSV'), ('otg', 'ODF Drawing Template'), ('html', 'HTML Document (OpenOffice.org Calc)'), ('txt', 'Text Encoded (OpenOffice.org Master Document)'), ('ods', 'ODF Spreadsheet')]


FAIL: Passing document_type equal to 'global', the return must be equal
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/tests/testMimemapper.py", line 298, in testGetAllowedExtensionListForGlobal
    self.assertEquals(got_list, global_expected_list)
AssertionError: [(u'html', u'HTML (Writer/Global)'), (u'odm', u'ODF Master Document'), (u'odt', u'ODF Text Document'), (u'pdf', u'PDF - Portable Document Format'), (u'sdw', u'StarWriter 3.0'), (u'sdw', u'StarWriter 4.0'), (u'sdw', u'StarWriter 5.0'), (u'sgl', u'StarWriter 4.0 Master Document'), (u'sgl', u'StarWriter 5.0 Master Document'), (u'sxg', u'OpenOffice.org 1.0 Master Document'), (u'sxw', u'OpenOffice.org 1.0 Text Document'), (u'txt', u'Text Encoded (OpenOffice.org Master Document)')] != [('htm', 'HTML (Writer/Global)'), ('html', 'HTML (Writer/Global)'), ('odm', 'ODF Master Document'), ('odt', 'ODF Text Document'), ('pdf', 'PDF - Portable Document Format'), ('sdw', 'StarWriter 3.0'), ('sdw', 'StarWriter 4.0'), ('sdw', 'StarWriter 5.0'), ('sxg', 'OpenOffice.org 1.0 Master Document'), ('sxw', 'OpenOffice.org 1.0 Text Document'), ('txt', 'Text Encoded (OpenOffice.org Master Document)')]


FAIL: Test if passing the extension the filter returns corretcly.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/tests/testMimemapper.py", line 241, in testGetFilterByExt
    self.assertEquals(len(xls_filter_list), 5)
AssertionError: 3 != 5


FAIL: Test convert ODT to DOC
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/tests/testOOHandler.py", line 76, in testConvertOdtToDoc
    self._assert_document_output(doc_exported, "application/msword")
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/tests/testOOHandler.py", line 58, in _assert_document_output
    self.assertEquals(mimetype, expected_mimetype)
AssertionError: 'application/octet-stream' != 'application/msword'


FAIL: Test export pptx to odp
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/tests/testServer.py", line 296, in testConvertPPTXToODP
    'application/vnd.oasis.opendocument.presentation')
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/tests/testServer.py", line 113, in _testConvertFile
    self.assertEquals(content_type, stdout_msg)
AssertionError: 'application/octet-stream' != 'application/vnd.oasis.opendocument.presentation'


FAIL: Test if filter name returns correctly with ERP5 API
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/tests/testServer.py", line 508, in testGetAllowedTargetItemList
    self.assertEquals(len(response_dict['response_data']), 29)
AssertionError: 27 != 29


FAIL: Test run_generate method. This test is to validate a bug convertions to
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/tests/testServer.py", line 384, in testRunGenerateMethodConvertOdsToHTML
    self.assertEquals(response_code, 200)
AssertionError: 402 != 200


FAIL: Test script unoconverter
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildbot/slave/parts/bot_nifty04/full.Oood/build/software/src/cloudooo/cloudooo/handler/ooo/tests/testUnoConverter.py", line 84, in testUnoConverterOdtToDoc
    self.assertEquals(mime.from_file(output_url), 'application/vnd.ms-office')
AssertionError: 'application/octet-stream' != 'application/vnd.ms-office'


More information about the Erp5-report mailing list