Example Bundles

Example Bundles

This document contains a few example bundles. More bundles are included in the source distribution.

Smallest bundle

Actually all that is needed is the format. The rest is entirely optional so this bundle is just fine.

1
2
3
{
  "format": "Dashboard Bundle Format 1.0"
}

Everything (1.7)

This bundle has everything possible at once. It is also using the most recent format (currently 1.7) which included changes on how the submission JSON was used over 1.6 but no changes in the atual bundle contents.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
{
  "format": "Dashboard Bundle Format 1.6",
  "test_runs": [
    {
      "analyzer_assigned_date": "2010-11-14T13:42:31Z",
      "analyzer_assigned_uuid": "01234567-0123-0123-0123-01234567890A",
      "test_id": "example test id",
      "time_check_performed": false,
      "test_duration": "0d 1s 134us",
      "attributes": {
        "attr1": "value1",
        "attr2": "value2"
      },
      "tags": [
        "example-content",
        "example-content-format-1.3"
      ],
      "attachments": [
        {
          "pathname": "attachment1.txt",
          "mime_type": "text/plain",
          "content": "bGluZTEKbGluZTIKbGluZTMK"
        },
        {
          "pathname": "attachment2.txt",
          "mime_type": "text/plain",
          "content": "b3RoZXIgbGluZTEK",
          "public_url": "http://www.example.org/attachment2.txt"
        }
      ],
      "testdef_metadata": {
        "version": "5",
        "description": "sample test definition",
        "format": "Lava Test Shell Format 1.0",
        "location": "LOCAL",
        "url": "http://localhost/",
        "environment": "lava-test-shell",
        "os": "ubuntu",
        "devices": "panda"
      },
      "test_results": [
        {
          "test_case_id": "example test case id",
          "result": "pass",
          "message": "example message",
          "measurement": 3.5,
          "units": "s",
          "timestamp": "2010-11-14T13:49:56Z",
          "duration": "0d 1s 134us",
          "log_filename": "attachment1.txt",
          "log_lineno": 2,
          "attributes": {
            "test result attribute": "value"
          },
          "attachments": [
            {
              "pathname": "attachment1.txt",
              "mime_type": "text/plain",
              "content": "bGluZTEKbGluZTIKbGluZTMK"
            }
          ]
        }
      ],
      "hardware_context": {
        "devices": [
          {
            "device_type": "example device type",
            "description": "example device",
            "attributes": {
              "hw attr1": "value1",
              "hw attr2": "value2"
            }
          }
        ]
      },
      "software_context": {
        "packages": [
          {
            "name": "pkg1",
            "version": "version1"
          },
          {
            "name": "pkg2",
            "version": "version2"
          }
        ],
        "image": {
          "name": "example os image"
        },
        "sources": [
          {
            "branch_revision": 93556,
            "branch_url": "lp:gcc-linaro/4.4",
            "branch_vcs": "bzr",
            "commit_timestamp": "2010-09-07T14:49:43Z",
            "project_name": "linaro-gcc"
          }
        ]
      }
    }
  ]
}