forked from saleor/saleor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_dashboard_search_orders_by_user_name.yaml
46 lines (46 loc) · 2.35 KB
/
test_dashboard_search_orders_by_user_name.yaml
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
interactions:
- request:
body: '{"query": {"multi_match": {"fields": ["name", "title", "description"],
"query": "Martin", "type": "cross_fields"}}, "sort": ["_score"], "_source":
{"excludes": ["*"]}}'
headers:
connection: [keep-alive]
content-type: [application/json]
method: GET
uri: http://search:9200/storefront/doc/_search
response:
body: {string: '{"took":1,"timed_out":false,"_shards":{"total":1,"successful":1,"failed":0},"hits":{"total":3,"max_score":5.373132,"hits":[{"_index":"storefront","_type":"doc","_id":"1","_score":5.373132,"_source":{}},{"_index":"storefront","_type":"doc","_id":"18","_score":3.740644,"_source":{}},{"_index":"storefront","_type":"doc","_id":"38","_score":3.740644,"_source":{}}]}}'}
headers:
content-length: ['403']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: '{"query": {"multi_match": {"fields": ["user", "email", "first_name", "last_name"],
"query": "Martin", "type": "cross_fields", "operator": "and"}}, "_source": {"excludes":
["*"]}}'
headers:
connection: [keep-alive]
content-type: [application/json]
method: GET
uri: http://search:9200/users/doc/_search
response:
body: {string: '{"took":1,"timed_out":false,"_shards":{"total":1,"successful":1,"failed":0},"hits":{"total":1,"max_score":2.7725887,"hits":[{"_index":"users","_type":"doc","_id":"102","_score":2.7725887,"_source":{}}]}}'}
headers:
content-length: ['213']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: '{"query": {"multi_match": {"fields": ["user", "first_name", "last_name",
"discount_name"], "query": "Martin"}}, "_source": {"excludes": ["*"]}}'
headers:
connection: [keep-alive]
content-type: [application/json]
method: GET
uri: http://search:9200/orders/doc/_search
response:
body: {string: '{"took":1,"timed_out":false,"_shards":{"total":1,"successful":1,"failed":0},"hits":{"total":2,"max_score":1.1631508,"hits":[{"_index":"orders","_type":"doc","_id":"17","_score":1.1631508,"_source":{}},{"_index":"orders","_type":"doc","_id":"11","_score":1.1631508,"_source":{}}]}}'}
headers:
content-length: ['302']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
version: 1