mirror of
https://github.com/zhigang1992/graphql-engine.git
synced 2026-01-12 22:47:35 +08:00
Fix product_mul_price test
The intention was to make this two cases, using a top-level YAML list. The result was one test with duplicate keys (effectively only running the second test). This is an error that's now flagged by newer ruamel. Both tests needed to be "corrected" to pass and need review.
This commit is contained in:
@@ -1,47 +1,46 @@
|
||||
description: Updated product price using _mul operator
|
||||
url: /v1/query
|
||||
status: 200
|
||||
response:
|
||||
affected_rows: 2
|
||||
returning:
|
||||
- product_id: 1
|
||||
name: Product 1
|
||||
price: 15
|
||||
- product_id: 2
|
||||
name: Product 2
|
||||
price: 45
|
||||
query:
|
||||
type: update
|
||||
args:
|
||||
table: products
|
||||
$mul:
|
||||
price: 3
|
||||
where:
|
||||
product_id:
|
||||
$gte: 1
|
||||
- description: Updated product price using _mul operator
|
||||
url: /v1/query
|
||||
status: 200
|
||||
response:
|
||||
affected_rows: 2
|
||||
returning:
|
||||
- product_id
|
||||
- name
|
||||
- price
|
||||
|
||||
description: Updated product price using _mul operator
|
||||
url: /v1/query
|
||||
status: 200
|
||||
response:
|
||||
affected_rows: 1
|
||||
returning:
|
||||
- product_id: 2
|
||||
name: Product 2
|
||||
price: '16.5000'
|
||||
query:
|
||||
type: update
|
||||
args:
|
||||
table: products
|
||||
$mul:
|
||||
price: 1.1
|
||||
where:
|
||||
product_id: 2
|
||||
- product_id: 1
|
||||
name: Product 1
|
||||
price: '15'
|
||||
- product_id: 2
|
||||
name: Product 2
|
||||
price: '45'
|
||||
query:
|
||||
type: update
|
||||
args:
|
||||
table: products
|
||||
$mul:
|
||||
price: 3
|
||||
where:
|
||||
product_id:
|
||||
$gte: 1
|
||||
returning:
|
||||
- product_id
|
||||
- name
|
||||
- price
|
||||
- description: Updated product price using _mul operator
|
||||
url: /v1/query
|
||||
status: 200
|
||||
response:
|
||||
affected_rows: 1
|
||||
returning:
|
||||
- product_id
|
||||
- name
|
||||
- price
|
||||
- product_id: 2
|
||||
name: Product 2
|
||||
price: '49.5000'
|
||||
query:
|
||||
type: update
|
||||
args:
|
||||
table: products
|
||||
$mul:
|
||||
price: 1.1
|
||||
where:
|
||||
product_id: 2
|
||||
returning:
|
||||
- product_id
|
||||
- name
|
||||
- price
|
||||
|
||||
Reference in New Issue
Block a user