Is it possible to attach an excel file to the bundle

Asked by Prince Mathew

Hi

I can attach text/log/binary files to the bundle. But ...
Is there anyway to attach an excel file to the bundle.

Question information

Language:
English Edit question
Status:
Answered
For:
LAVA Dashboard (deprecated) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Zygmunt Krynicki (zyga) said :
#1

Yes.

This feature has always been available but it was not exposed in earlier versions of lava-test. There is a 'rewrite' branch of lava-test that is currently being polished and is about to land. This branch reworks the internals of lava test so that parsers can freely control the shape of the bundle (the test results, attachments, attributes and everything else).

Technically what you do is simply attach a file with the correct mime type (I'm not sure what mime type describes excel files). This file will be a part of the bundle and can be downloaded from LAVA Dashboard processed by other programs. In the rewrite branch this is possible with TestArtifacts.attach_file(self, real_pathname, stored_pathname, mime_type). See: http://bazaar.launchpad.net/~zkrynicki/lava-test/rewrite/view/head:/lava_test/core/artefacts.py#L183

Currently the dashboard does not offer file attachment downloads but one can always download the bundle using dashboard.get() API and process the attachments on the client side.

Can you help with this problem?

Provide an answer of your own, or ask Prince Mathew for more information if necessary.

To post a message you must log in.