diff options
Diffstat (limited to 'client/go/cmd/testdata/tests/expected-suite.out')
-rw-r--r-- | client/go/cmd/testdata/tests/expected-suite.out | 129 |
1 files changed, 97 insertions, 32 deletions
diff --git a/client/go/cmd/testdata/tests/expected-suite.out b/client/go/cmd/testdata/tests/expected-suite.out index 963889b8019..df916f50a95 100644 --- a/client/go/cmd/testdata/tests/expected-suite.out +++ b/client/go/cmd/testdata/tests/expected-suite.out @@ -1,8 +1,11 @@ -Running my test: .... OK -Running wrong-bool-value.json: Failed step 1: -Unexpected value at /root/coverage/full: true +My test: .... OK +wrong-bool-value.json: failed +Step 1: +Unexpected value at /root/coverage/full Expected: false -Actual response: +Actual: true +Requested: GET at http://127.0.0.1:8080/search/ +Response: { "root": { "children": [ @@ -38,10 +41,55 @@ Actual response: } } -Running wrong-element-count.json: Failed step 1: -Unexpected number of elements at /root/children: 1 +wrong-code.json: failed +Step 1: +Unexpected status code +Expected: 123 +Actual: 200 +Requested: GET at http://127.0.0.1:8080/search/?foo=%2F +Response: +{ + "root": { + "children": [ + { + "fields": { + "artist": "Foo Fighters", + "documentid": "id:test:music::doc", + "sddocname": "music" + }, + "id": "id:test:music::doc", + "relevance": 0.38186238359951247, + "source": "music" + } + ], + "coverage": { + "coverage": 100, + "documents": 1, + "full": true, + "nodes": 1, + "results": 1, + "resultsFull": 1 + }, + "fields": { + "totalCount": 1 + }, + "id": "toplevel", + "relevance": 1 + }, + "timing": { + "querytime": 0.003, + "searchtime": 0.004, + "summaryfetchtime": 0 + } +} + +wrong-element-count.json: failed +Step 1: +Unexpected number of elements at /root/children Expected: 0 -Actual response: +Actual: 1 +Requested: GET at http://127.0.0.1:8080/search/ +Response: { "root": { "children": [ @@ -77,9 +125,11 @@ Actual response: } } -Running wrong-field-name.json: Failed step 1: +wrong-field-name.json: failed +Step 1: Missing expected field at /root/fields/totalCountDracula -Actual response: +Requested: GET at http://127.0.0.1:8080/search/ +Response: { "root": { "children": [ @@ -115,10 +165,13 @@ Actual response: } } -Running wrong-float-value.json: Failed step 1: -Unexpected value at /root/children/0/relevance: 0.38186238359951247 +wrong-float-value.json: failed +Step 1: +Unexpected value at /root/children/0/relevance Expected: 0.381862373599 -Actual response: +Actual: 0.38186238359951247 +Requested: GET at http://127.0.0.1:8080/search/ +Response: { "root": { "children": [ @@ -154,10 +207,13 @@ Actual response: } } -Running wrong-int-value.json: Failed step 1: -Unexpected value at /root/fields/totalCount: 1 +wrong-int-value.json: failed +Step 1: +Unexpected value at /root/fields/totalCount Expected: 2 -Actual response: +Actual: 1 +Requested: GET at http://127.0.0.1:8080/search/ +Response: { "root": { "children": [ @@ -193,9 +249,11 @@ Actual response: } } -Running wrong-null-value.json: Failed step 1: +wrong-null-value.json: failed +Step 1: Missing expected field at /boot -Actual response: +Requested: GET at http://127.0.0.1:8080/search/ +Response: { "root": { "children": [ @@ -231,10 +289,13 @@ Actual response: } } -Running wrong-string-value.json: Failed step 1: -Unexpected value at /root/children/0/fields/artist: "Foo Fighters" +wrong-string-value.json: failed +Step 1: +Unexpected value at /root/children/0/fields/artist Expected: "Boo Fighters" -Actual response: +Actual: "Foo Fighters" +Requested: GET at http://127.0.0.1:8080/search/ +Response: { "root": { "children": [ @@ -270,10 +331,13 @@ Actual response: } } -Running wrong-type.json: Failed step 1: -Unexpected type at /root/fields/totalCount: 1 +wrong-type.json: failed +Step 1: +Unexpected type at /root/fields/totalCount Expected: "1" -Actual response: +Actual: 1 +Requested: GET at http://127.0.0.1:8080/search/ +Response: { "root": { "children": [ @@ -309,12 +373,13 @@ Actual response: } } -Failure: 8 of 9 tests failed: -wrong-bool-value.json: step 1: Unexpected value at /root/coverage/full: true -wrong-element-count.json: step 1: Unexpected number of elements at /root/children: 1 -wrong-field-name.json: step 1: Missing expected field at /root/fields/totalCountDracula -wrong-float-value.json: step 1: Unexpected value at /root/children/0/relevance: 0.38186238359951247 -wrong-int-value.json: step 1: Unexpected value at /root/fields/totalCount: 1 -wrong-null-value.json: step 1: Missing expected field at /boot -wrong-string-value.json: step 1: Unexpected value at /root/children/0/fields/artist: "Foo Fighters" -wrong-type.json: step 1: Unexpected type at /root/fields/totalCount: 1 +Failure: 9 of 10 tests failed: +wrong-bool-value.json: Step 1: Unexpected value at /root/coverage/full: true +wrong-code.json: Step 1: Unexpected status code: 200 +wrong-element-count.json: Step 1: Unexpected number of elements at /root/children: 1 +wrong-field-name.json: Step 1: Missing expected field at /root/fields/totalCountDracula +wrong-float-value.json: Step 1: Unexpected value at /root/children/0/relevance: 0.38186238359951247 +wrong-int-value.json: Step 1: Unexpected value at /root/fields/totalCount: 1 +wrong-null-value.json: Step 1: Missing expected field at /boot +wrong-string-value.json: Step 1: Unexpected value at /root/children/0/fields/artist: "Foo Fighters" +wrong-type.json: Step 1: Unexpected type at /root/fields/totalCount: 1 |