Skip to content

Commit 816baa1

Browse files
committed
test(data-kwsimilarity): change json test
1 parent e76f317 commit 816baa1

1 file changed

Lines changed: 12 additions & 27 deletions

File tree

services/data-kwsimilarity/tests.hurl

Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,10 @@ delay: 40000
3232
HTTP 200
3333
Content-Type: application/json
3434
[Asserts]
35-
jsonpath "$[0].autism" exists
36-
jsonpath "$[0].autism.[0].word" exists
37-
jsonpath "$[0].autism.[0].sim" exists
38-
jsonpath "$[0].autism.[0].tfidf" exists
39-
jsonpath "$[0].autism.[0].ponderation" exists
35+
jsonpath "$" exists
36+
jsonpath "$[0].keyword" exists
37+
jsonpath "$[0].word" exists
38+
jsonpath "$[0].sim" exists
4039

4140

4241
##################################################################
@@ -68,23 +67,10 @@ delay: 40000
6867
HTTP 200
6968
Content-Type: application/json
7069
[Asserts]
71-
jsonpath "$[0].dog" exists
72-
jsonpath "$[0].dog.[0].word" exists
73-
jsonpath "$[0].dog.[0].sim" exists
74-
jsonpath "$[0].dog.[0].tfidf" exists
75-
jsonpath "$[0].dog.[0].ponderation" exists
76-
77-
78-
jsonpath "$[0].cat" exists
79-
jsonpath "$[0].cat.[0].word" exists
80-
jsonpath "$[0].cat.[0].sim" exists
81-
jsonpath "$[0].cat.[0].tfidf" exists
82-
jsonpath "$[0].cat.[0].ponderation" exists
83-
84-
85-
jsonpath "$[0].chicken" exists
86-
jsonpath "$[0].chicken.[0].word" exists
87-
70+
jsonpath "$" exists
71+
jsonpath "$[0].keyword" exists
72+
jsonpath "$[0].word" exists
73+
jsonpath "$[0].sim" exists
8874

8975
##################################################################
9076
# v1/kw
@@ -115,8 +101,7 @@ delay: 40000
115101
HTTP 200
116102
Content-Type: application/json
117103
[Asserts]
118-
jsonpath "$[0].sign_language" exists
119-
jsonpath "$[0].sign_language.[0].word" exists
120-
jsonpath "$[0].sign_language.[0].sim" exists
121-
jsonpath "$[0].sign_language.[0].tfidf" exists
122-
jsonpath "$[0].sign_language.[0].ponderation" exists
104+
jsonpath "$" exists
105+
jsonpath "$[0].keyword" exists
106+
jsonpath "$[0].word" exists
107+
jsonpath "$[0].sim" exists

0 commit comments

Comments
 (0)