summaryrefslogtreecommitdiffstats
path: root/client/go/cmd/testdata/tests/system-test/test.json
blob: f53df929dbdbc6332ade57310d72aa7309aae012 (plain) (blame)
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
{
    "name": "my test",
    "defaults": {
        "cluster": "container",
        "parameters": {
            "timeout": "3.4s"
        }
    },
    "steps": [
        {
            "name": "feed music",
            "request": {
                "method": "POST",
                "body": "foo/body.json",
                "uri": "/document/v1/test/music/docid/doc"
            }
        },
        {
            "name": "re-feed music",
            "request": {
                "method": "POST",
                "body": { 
                    "fields": {
                        "artist": "Foo Fighters"
                    }
                },
                "uri": "/document/v1/test/music/docid/doc"
            }
        },
        {
            "name": "query for foo",
            "request": {
                "uri": "/search/?presentation.timing=true",
                "parameters": {
                    "query": "artist: foo"
                }
            },
            "response": {
                "code": 200,
                "body": "../body.json"
            }
        },
        {
            "name": "query for foo again",
            "request": {
                "uri": "/search/?presentation.timing=true",
                "parameters": "foo/query.json"
            },
            "response": {
                "body": {
                    "root": {
                        "children": [
                            {
                                "fields": {
                                    "artist": "Foo Fighters"
                                },
                                "relevance": 0.381862383599
                            }
                        ]
                    }
                }
            }
        }
    ]
}