Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Update cassettes

Jakub Draganek4bce60e24685
diff --git a/tests/cassettes/test_new_search_with_empty_results.yaml b/tests/cassettes/test_new_search_with_empty_results.yaml
index 97437b606d..e92164ff2e 100644
--- a/tests/cassettes/test_new_search_with_empty_results.yaml
+++ b/tests/cassettes/test_new_search_with_empty_results.yaml
@@ -8,9 +8,9 @@ interactions:
method: GET
uri: http://search:9200/_search
response:
- body: {string: '{"took":3,"timed_out":false,"_shards":{"total":15,"successful":15,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}}'}
+ body: {string: '{"took":104,"timed_out":false,"_shards":{"total":15,"successful":15,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}}'}
headers:
- content-length: ['124']
+ content-length: ['126']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
version: 1
diff --git a/tests/cassettes/test_new_search_with_results.yaml b/tests/cassettes/test_new_search_with_results.yaml
index 29365b118f..e1e1c4feca 100644
--- a/tests/cassettes/test_new_search_with_results.yaml
+++ b/tests/cassettes/test_new_search_with_results.yaml
@@ -1,16 +1,16 @@
interactions:
- request:
- body: '{"_source": ["pk"], "query": {"multi_match": {"fields": ["name", "description"],
- "query": "group"}}}'
+ body: '{"query": {"multi_match": {"query": "group", "fields": ["name", "description"]}},
+ "_source": ["pk"]}'
headers:
connection: [keep-alive]
content-type: [application/json]
method: GET
uri: http://search:9200/_search
response:
- body: {string: '{"took":5,"timed_out":false,"_shards":{"total":15,"successful":15,"failed":0},"hits":{"total":4,"max_score":3.1094596,"hits":[{"_index":"storefront__product_product","_type":"product_product","_id":"product_product:60","_score":3.1094596,"_source":{"pk":"60"}},{"_index":"storefront__product_product","_type":"product_product","_id":"product_product:9","_score":2.7236264,"_source":{"pk":"9"}},{"_index":"storefront__product_product","_type":"product_product","_id":"product_product:35","_score":2.7236264,"_source":{"pk":"35"}},{"_index":"storefront__product_product","_type":"product_product","_id":"product_product:8","_score":2.5116475,"_source":{"pk":"8"}}]}}'}
+ body: {string: '{"took":33,"timed_out":false,"_shards":{"total":15,"successful":15,"failed":0},"hits":{"total":3,"max_score":3.160794,"hits":[{"_index":"storefront__product_product","_type":"product_product","_id":"product_product:39","_score":3.160794,"_source":{"pk":"39"}},{"_index":"storefront__product_product","_type":"product_product","_id":"product_product:35","_score":2.6753218,"_source":{"pk":"35"}},{"_index":"storefront__product_product","_type":"product_product","_id":"product_product:34","_score":2.6753218,"_source":{"pk":"34"}}]}}'}
headers:
- content-length: ['664']
+ content-length: ['532']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
version: 1