hydra/tests
Antoine Eiche 0d2a2d8923 Add json output for the search API endpoint
This commit also add a test of this feature.

Note the search JSON output doesn't contain any jobs because they can
not be exported to JSON yet.

The JSON output on a search query matching a build looks like:

```
{
  "builds": [
    {
      "buildoutputs": {
        "out": {
          "path": "/nix/store/wdag3pznrvqk01byk989irg7rq3q2a2c-job"
        }
      },
      "finished": 0,
      "releasename": null,
      "starttime": null,
      "project": "sample",
      "buildproducts": {},
      "timestamp": 1541007629,
      "buildstatus": null,
      "nixname": "job",
      "drvpath": "/nix/store/n9zqndn7j7nyr6gg3bmxvw26cfmdwv2n-job.drv",
      "job": "job",
      "id": 1,
      "stoptime": null,
      "priority": 100,
      "system": "x86_64-linux",
      "jobsetevals": [
        1
      ],
      "jobset": "default",
      "buildmetrics": {}
    }
  ],
  "projects": [],
  "jobsets": [],
  "buildsdrv": []
}
```
2018-11-01 09:31:15 +01:00
..
jobs git-rev: Remove superfluous git tag 2016-04-12 16:30:42 -04:00
api-test.nix Add a plugin for backing up builds in s3 2013-09-18 18:32:58 +02:00
api-test.pl Add json output for the search API endpoint 2018-11-01 09:31:15 +01:00
evaluation-tests.pl Move most of AddBuilds to hydra-eval-jobset 2017-02-21 17:20:48 +01:00
Makefile.am Fix tests 2017-05-24 10:00:38 -04:00
s3-backup-test.config Add a plugin for backing up builds in s3 2013-09-18 18:32:58 +02:00
s3-backup-test.pl Concurrent hydra-evaluator 2016-10-14 14:22:12 +02:00
set-up.pl Run PostgreSQL during "make check" 2015-06-25 16:47:39 +02:00
Setup.pm Move most of AddBuilds to hydra-eval-jobset 2017-02-21 17:20:48 +01:00
tear-down.pl Run PostgreSQL during "make check" 2015-06-25 16:47:39 +02:00