mirror of
https://github.com/zhigang1992/graphql-engine.git
synced 2026-05-13 01:51:43 +08:00
Fix result ordering in some incorrect tests
These were generated with `--accept` and inspected individually. Mark failing cases as xfail: #3271
This commit is contained in:
committed by
Alexis King
parent
91aee7fdeb
commit
a89777c808
@@ -6,23 +6,23 @@ response:
|
||||
delete_resident:
|
||||
affected_rows: 1
|
||||
returning:
|
||||
- age: 25
|
||||
id: 1
|
||||
- id: 1
|
||||
name: Griffin
|
||||
age: 25
|
||||
headers:
|
||||
X-Hasura-Role: agent
|
||||
X-Hasura-Allowed-Resident-Ids: '{1,2}'
|
||||
query:
|
||||
query: |
|
||||
mutation{
|
||||
delete_resident(
|
||||
where: {id: {_eq: 1}}
|
||||
){
|
||||
affected_rows
|
||||
returning {
|
||||
id
|
||||
name
|
||||
age
|
||||
}
|
||||
}
|
||||
}
|
||||
mutation{
|
||||
delete_resident(
|
||||
where: {id: {_eq: 1}}
|
||||
){
|
||||
affected_rows
|
||||
returning {
|
||||
id
|
||||
name
|
||||
age
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,10 +9,10 @@ response:
|
||||
delete_article:
|
||||
affected_rows: 1
|
||||
returning:
|
||||
- author_id: 1
|
||||
id: 1
|
||||
- id: 1
|
||||
title: Article 1
|
||||
content: Sample article content 1
|
||||
author_id: 1
|
||||
query:
|
||||
query: |
|
||||
mutation delete_article {
|
||||
|
||||
@@ -60,15 +60,15 @@
|
||||
data:
|
||||
insert_article:
|
||||
returning:
|
||||
- content: Sample article content
|
||||
id: 1
|
||||
- id: 1
|
||||
title: Article 1
|
||||
- content: Sample article content
|
||||
id: 2
|
||||
content: Sample article content
|
||||
- id: 2
|
||||
title: Article 2
|
||||
- content: Sample article content
|
||||
id: 3
|
||||
content: Sample article content
|
||||
- id: 3
|
||||
title: Article 3
|
||||
content: Sample article content
|
||||
status: 200
|
||||
query:
|
||||
query: |
|
||||
|
||||
@@ -7,30 +7,46 @@
|
||||
returning:
|
||||
- id: 1
|
||||
name: Baz
|
||||
type: river
|
||||
location: &loc1
|
||||
coordinates: [43.75049, 11.03207]
|
||||
type: Point
|
||||
crs: &crs
|
||||
location:
|
||||
crs:
|
||||
type: name
|
||||
properties:
|
||||
name: 'urn:ogc:def:crs:EPSG::4326'
|
||||
name: urn:ogc:def:crs:EPSG::4326
|
||||
type: Point
|
||||
coordinates:
|
||||
- 43.75049
|
||||
- 11.03207
|
||||
type: river
|
||||
- id: 2
|
||||
name: Foo Bar
|
||||
type: park
|
||||
location: &loc2
|
||||
coordinates: [43.76417, 11.25869]
|
||||
location:
|
||||
crs:
|
||||
type: name
|
||||
properties:
|
||||
name: urn:ogc:def:crs:EPSG::4326
|
||||
type: Point
|
||||
crs: *crs
|
||||
coordinates:
|
||||
- 43.76417
|
||||
- 11.25869
|
||||
type: park
|
||||
query:
|
||||
variables:
|
||||
landmarks:
|
||||
- name: Baz
|
||||
type: river
|
||||
location: *loc1
|
||||
location:
|
||||
coordinates: [43.75049, 11.03207]
|
||||
type: Point
|
||||
crs: &crs
|
||||
type: name
|
||||
properties:
|
||||
name: urn:ogc:def:crs:EPSG::4326
|
||||
- name: Foo Bar
|
||||
type: park
|
||||
location: *loc2
|
||||
location:
|
||||
coordinates: [43.76417, 11.25869]
|
||||
type: Point
|
||||
crs: *crs
|
||||
query: |
|
||||
mutation insertLandmark($landmarks: [landmark_insert_input!]!) {
|
||||
insert_landmark(objects: $landmarks) {
|
||||
|
||||
@@ -2,7 +2,7 @@ description: Insert article and it's author via nested mutation
|
||||
url: /v1/graphql
|
||||
status: 200
|
||||
query:
|
||||
query: |
|
||||
query: |-
|
||||
mutation article_author{
|
||||
insert_article(
|
||||
objects: [
|
||||
|
||||
@@ -2,22 +2,22 @@ description: Insert author and it's articles via nested mutation
|
||||
url: /v1/graphql
|
||||
status: 200
|
||||
query:
|
||||
query: |
|
||||
query: |-
|
||||
mutation nested_author_insert {
|
||||
insert_author(
|
||||
objects: [
|
||||
{
|
||||
name: "Author 3",
|
||||
name: "Author 3",
|
||||
articles: {
|
||||
data: [
|
||||
{
|
||||
title: "Article 1 by Author 3",
|
||||
content: "Content for Article 1 by Author 3",
|
||||
title: "Article 1 by Author 3",
|
||||
content: "Content for Article 1 by Author 3",
|
||||
is_published: false
|
||||
},
|
||||
{
|
||||
title: "Article 2 by Author 3",
|
||||
content: "Content for Article 2 by Author 3",
|
||||
title: "Article 2 by Author 3",
|
||||
content: "Content for Article 2 by Author 3",
|
||||
is_published: false
|
||||
}
|
||||
]
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
description: Upserts article data via GraphQL mutation
|
||||
url: /v1/graphql
|
||||
response:
|
||||
data:
|
||||
insert_article:
|
||||
returning:
|
||||
- content: Updated Article 1 content
|
||||
title: Article 1
|
||||
- content: Updated Article 2 content
|
||||
title: Article 2
|
||||
data:
|
||||
insert_article:
|
||||
returning:
|
||||
- title: Article 1
|
||||
content: Updated Article 1 content
|
||||
- title: Article 2
|
||||
content: Updated Article 2 content
|
||||
status: 200
|
||||
query:
|
||||
query: |
|
||||
|
||||
@@ -9,8 +9,8 @@ response:
|
||||
data:
|
||||
insert_article:
|
||||
returning:
|
||||
- content: Sample article content 4
|
||||
title: Article 4
|
||||
- title: Article 4
|
||||
content: Sample article content 4
|
||||
query:
|
||||
query: |
|
||||
mutation insert_article {
|
||||
|
||||
@@ -4,6 +4,7 @@ status: 200
|
||||
response:
|
||||
data:
|
||||
insert_article:
|
||||
affected_rows: 4
|
||||
returning:
|
||||
- author_simple:
|
||||
name: Author 1
|
||||
@@ -17,9 +18,8 @@ response:
|
||||
content: Article content for article by author 2
|
||||
id: 2
|
||||
title: Article by author 2
|
||||
affected_rows: 4
|
||||
query:
|
||||
query: |
|
||||
query: |-
|
||||
mutation article_author_simple{
|
||||
insert_article(
|
||||
objects: [
|
||||
|
||||
@@ -2,12 +2,12 @@ description: Update mutation on author
|
||||
url: /v1/graphql
|
||||
response:
|
||||
data:
|
||||
update_author:
|
||||
affected_rows: 1
|
||||
returning:
|
||||
- articles: []
|
||||
id: 1
|
||||
name: Jane
|
||||
update_author:
|
||||
affected_rows: 1
|
||||
returning:
|
||||
- id: 1
|
||||
name: Jane
|
||||
articles: []
|
||||
status: 200
|
||||
query:
|
||||
query: |
|
||||
|
||||
@@ -4,8 +4,10 @@ status: 200
|
||||
response:
|
||||
data:
|
||||
update_person:
|
||||
affected_rows: 1
|
||||
returning:
|
||||
- details:
|
||||
- id: 2
|
||||
details:
|
||||
- address:
|
||||
country: Denmark
|
||||
city: Copenhagen
|
||||
@@ -15,8 +17,6 @@ response:
|
||||
- address:
|
||||
country: Australia
|
||||
city: Sydney
|
||||
id: 2
|
||||
affected_rows: 1
|
||||
query:
|
||||
variables:
|
||||
value:
|
||||
|
||||
@@ -6,15 +6,14 @@ response:
|
||||
update_person:
|
||||
affected_rows: 1
|
||||
returning:
|
||||
- details:
|
||||
address:
|
||||
city: Sydney
|
||||
country: Australia
|
||||
- id: 1
|
||||
details:
|
||||
name:
|
||||
first: John
|
||||
last: Taylor
|
||||
id: 1
|
||||
|
||||
first: John
|
||||
address:
|
||||
country: Australia
|
||||
city: Sydney
|
||||
query:
|
||||
variables:
|
||||
value:
|
||||
|
||||
@@ -3,13 +3,13 @@ url: /v1/graphql
|
||||
response:
|
||||
data:
|
||||
update_person:
|
||||
affected_rows: 1
|
||||
returning:
|
||||
- details:
|
||||
- id: 2
|
||||
details:
|
||||
- address:
|
||||
country: United Kingdom
|
||||
city: Canterbury
|
||||
id: 2
|
||||
affected_rows: 1
|
||||
status: 200
|
||||
query:
|
||||
query: |
|
||||
|
||||
@@ -4,12 +4,12 @@ status: 200
|
||||
response:
|
||||
data:
|
||||
update_person:
|
||||
affected_rows: 1
|
||||
returning:
|
||||
- details:
|
||||
- id: 1
|
||||
details:
|
||||
name:
|
||||
first: John
|
||||
id: 1
|
||||
affected_rows: 1
|
||||
query:
|
||||
query: |
|
||||
mutation update_person($value: jsonb) {
|
||||
|
||||
@@ -3,13 +3,13 @@ url: /v1/graphql
|
||||
response:
|
||||
data:
|
||||
update_person:
|
||||
returning:
|
||||
- details:
|
||||
name:
|
||||
first: Robert
|
||||
last: Wilson
|
||||
id: 3
|
||||
affected_rows: 1
|
||||
returning:
|
||||
- id: 3
|
||||
details:
|
||||
name:
|
||||
last: Wilson
|
||||
first: Robert
|
||||
status: 200
|
||||
query:
|
||||
query: |
|
||||
|
||||
@@ -3,8 +3,10 @@ url: /v1/graphql
|
||||
response:
|
||||
data:
|
||||
update_person:
|
||||
affected_rows: 1
|
||||
returning:
|
||||
- details:
|
||||
- id: 2
|
||||
details:
|
||||
- university:
|
||||
name: Sydney university
|
||||
- address:
|
||||
@@ -13,8 +15,6 @@ response:
|
||||
- address:
|
||||
country: United Kingdom
|
||||
city: Canterbury
|
||||
id: 2
|
||||
affected_rows: 1
|
||||
status: 200
|
||||
query:
|
||||
variables:
|
||||
|
||||
@@ -3,16 +3,16 @@ url: /v1/graphql
|
||||
response:
|
||||
data:
|
||||
update_article:
|
||||
returning:
|
||||
- content: Article content version 1.0.2
|
||||
version: '1.0.2'
|
||||
is_published: false
|
||||
author:
|
||||
name: Author 1
|
||||
id: 1
|
||||
id: 2
|
||||
title: Article 1
|
||||
affected_rows: 1
|
||||
returning:
|
||||
- id: 2
|
||||
version: 1.0.2
|
||||
title: Article 1
|
||||
content: Article content version 1.0.2
|
||||
author:
|
||||
id: 1
|
||||
name: Author 1
|
||||
is_published: false
|
||||
headers:
|
||||
X-Hasura-Role: user
|
||||
X-Hasura-User-Id: '1'
|
||||
|
||||
@@ -3,18 +3,18 @@ url: /v1/graphql
|
||||
status: 200
|
||||
response:
|
||||
data:
|
||||
article:
|
||||
- author:
|
||||
articles:
|
||||
- author:
|
||||
articles:
|
||||
- author: {id: 1}
|
||||
id: 1
|
||||
id: 1
|
||||
id: 1
|
||||
id: 1
|
||||
id: 1
|
||||
|
||||
article:
|
||||
- id: 1
|
||||
author:
|
||||
id: 1
|
||||
articles:
|
||||
- id: 1
|
||||
author:
|
||||
id: 1
|
||||
articles:
|
||||
- id: 1
|
||||
author:
|
||||
id: 1
|
||||
query:
|
||||
query: |
|
||||
query {
|
||||
|
||||
@@ -7,11 +7,11 @@ response:
|
||||
- id: 1
|
||||
name: Author 1
|
||||
articles:
|
||||
- title: Article 2
|
||||
- id: 2
|
||||
title: Article 2
|
||||
content: Sample article content 2
|
||||
id: 2
|
||||
query:
|
||||
query: |
|
||||
query: |-
|
||||
query {
|
||||
author (where: {name: {_eq: "Author 1"}}) {
|
||||
id
|
||||
@@ -20,7 +20,7 @@ query:
|
||||
where: {is_published: {_eq: true}}
|
||||
) {
|
||||
id
|
||||
title
|
||||
title
|
||||
content
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,10 +4,10 @@ status: 200
|
||||
response:
|
||||
data:
|
||||
author:
|
||||
- name: Author 1
|
||||
id: 1
|
||||
- name: Author 2
|
||||
id: 2
|
||||
- id: 1
|
||||
name: Author 1
|
||||
- id: 2
|
||||
name: Author 2
|
||||
query:
|
||||
query: |
|
||||
query {
|
||||
|
||||
@@ -4,8 +4,8 @@ status: 200
|
||||
response:
|
||||
data:
|
||||
author_by_pk:
|
||||
name: Author 1
|
||||
id: 1
|
||||
name: Author 1
|
||||
query:
|
||||
query: |
|
||||
query {
|
||||
|
||||
@@ -4,12 +4,12 @@ status: 200
|
||||
response:
|
||||
data:
|
||||
author:
|
||||
- name: Author 1
|
||||
id: 1
|
||||
createdAt: '2017-09-21T09:39:44+00:00'
|
||||
- name: Author 2
|
||||
id: 2
|
||||
createdAt: '2017-09-21T09:50:44+00:00'
|
||||
- id: 1
|
||||
name: Author 1
|
||||
createdAt: '2017-09-21T09:39:44+00:00'
|
||||
- id: 2
|
||||
name: Author 2
|
||||
createdAt: '2017-09-21T09:50:44+00:00'
|
||||
query:
|
||||
query: |
|
||||
query {
|
||||
|
||||
@@ -4,8 +4,8 @@ status: 200
|
||||
response:
|
||||
data:
|
||||
author:
|
||||
- name: Author 2
|
||||
id: 2
|
||||
- id: 2
|
||||
name: Author 2
|
||||
query:
|
||||
query: |
|
||||
query {
|
||||
|
||||
@@ -4,35 +4,35 @@ status: 200
|
||||
response:
|
||||
data:
|
||||
article:
|
||||
- content: Sample article content 1
|
||||
- id: 1
|
||||
title: Article 1
|
||||
content: Sample article content 1
|
||||
is_published: false
|
||||
author:
|
||||
id: 1
|
||||
name: Author 1
|
||||
is_registered: true
|
||||
id: 1
|
||||
id: 1
|
||||
title: Article 1
|
||||
- content: Sample article content 3
|
||||
- id: 3
|
||||
title: Article 3
|
||||
content: Sample article content 3
|
||||
is_published: false
|
||||
author:
|
||||
id: 2
|
||||
name: Author 2
|
||||
is_registered: true
|
||||
id: 2
|
||||
id: 3
|
||||
title: Article 3
|
||||
- content: Sample article content 4
|
||||
- id: 4
|
||||
title: Article 4
|
||||
content: Sample article content 4
|
||||
is_published: true
|
||||
author:
|
||||
id: 3
|
||||
name: Author 3
|
||||
is_registered: false
|
||||
id: 3
|
||||
id: 4
|
||||
title: Article 4
|
||||
query:
|
||||
query: |
|
||||
query: |-
|
||||
query {
|
||||
article (
|
||||
where : {_or:
|
||||
where : {_or:
|
||||
[
|
||||
{is_published: {_eq: false}}
|
||||
{author: {is_registered: {_eq: false}}}
|
||||
|
||||
@@ -4,21 +4,21 @@ status: 200
|
||||
response:
|
||||
data:
|
||||
author:
|
||||
- name: Author 3
|
||||
- id: 3
|
||||
name: Author 3
|
||||
articles:
|
||||
- content: Sample article content 4
|
||||
id: 4
|
||||
- id: 4
|
||||
title: Article 4
|
||||
id: 3
|
||||
content: Sample article content 4
|
||||
query:
|
||||
query: |
|
||||
query: |-
|
||||
query {
|
||||
author (where: {id: {_gt: 2}}) {
|
||||
id
|
||||
name
|
||||
articles {
|
||||
id
|
||||
title
|
||||
title
|
||||
content
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,20 +4,20 @@ status: 200
|
||||
response:
|
||||
data:
|
||||
author:
|
||||
- name: Author 2
|
||||
id: 2
|
||||
- id: 2
|
||||
name: Author 2
|
||||
articles:
|
||||
- content: Sample article content 3
|
||||
id: 3
|
||||
- id: 3
|
||||
title: Article 3
|
||||
- name: Author 3
|
||||
id: 3
|
||||
content: Sample article content 3
|
||||
- id: 3
|
||||
name: Author 3
|
||||
articles:
|
||||
- content: Sample article content 4
|
||||
id: 4
|
||||
- id: 4
|
||||
title: Article 4
|
||||
content: Sample article content 4
|
||||
query:
|
||||
query: |
|
||||
query: |-
|
||||
query {
|
||||
author (
|
||||
where: {id: {_gte: 2}}
|
||||
@@ -26,7 +26,7 @@ query:
|
||||
name
|
||||
articles{
|
||||
id
|
||||
title
|
||||
title
|
||||
content
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,16 +6,16 @@ response:
|
||||
author:
|
||||
- name: Author 2
|
||||
articles:
|
||||
- content: Sample article content 3
|
||||
id: 3
|
||||
- id: 3
|
||||
title: Article 3
|
||||
content: Sample article content 3
|
||||
- name: Author 3
|
||||
articles:
|
||||
- content: Sample article content 4
|
||||
id: 4
|
||||
- id: 4
|
||||
title: Article 4
|
||||
content: Sample article content 4
|
||||
query:
|
||||
query: |
|
||||
query: |-
|
||||
query {
|
||||
author (
|
||||
where: {name: {_in: [ "Author 2", "Author 3" ] }}
|
||||
@@ -23,7 +23,7 @@ query:
|
||||
name
|
||||
articles{
|
||||
id
|
||||
title
|
||||
title
|
||||
content
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,17 +4,17 @@ status: 200
|
||||
response:
|
||||
data:
|
||||
author:
|
||||
- name: Author 1
|
||||
id: 1
|
||||
- id: 1
|
||||
name: Author 1
|
||||
articles:
|
||||
- content: Sample article content 1
|
||||
id: 1
|
||||
- id: 1
|
||||
title: Article 1
|
||||
- content: Sample article content 2
|
||||
id: 2
|
||||
content: Sample article content 1
|
||||
- id: 2
|
||||
title: Article 2
|
||||
content: Sample article content 2
|
||||
query:
|
||||
query: |
|
||||
query: |-
|
||||
query {
|
||||
author (
|
||||
where: {id: {_lt: 2}}
|
||||
@@ -23,7 +23,7 @@ query:
|
||||
name
|
||||
articles{
|
||||
id
|
||||
title
|
||||
title
|
||||
content
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,18 +4,18 @@ status: 200
|
||||
response:
|
||||
data:
|
||||
author:
|
||||
- name: Author 2
|
||||
id: 2
|
||||
- id: 2
|
||||
name: Author 2
|
||||
articles:
|
||||
- content: Sample article content 3
|
||||
id: 3
|
||||
- id: 3
|
||||
title: Article 3
|
||||
- name: Author 1
|
||||
id: 1
|
||||
content: Sample article content 3
|
||||
- id: 1
|
||||
name: Author 1
|
||||
articles:
|
||||
- content: Sample article content 2
|
||||
id: 2
|
||||
- id: 2
|
||||
title: Article 2
|
||||
content: Sample article content 2
|
||||
query:
|
||||
query: |
|
||||
query {
|
||||
|
||||
@@ -4,18 +4,18 @@ status: 200
|
||||
response:
|
||||
data:
|
||||
author:
|
||||
- name: Author 2
|
||||
id: 2
|
||||
- id: 2
|
||||
name: Author 2
|
||||
articles: []
|
||||
- name: Author 3
|
||||
id: 3
|
||||
- id: 3
|
||||
name: Author 3
|
||||
articles:
|
||||
- content: Sample article content 4
|
||||
id: 4
|
||||
- id: 4
|
||||
title: Article 4
|
||||
content: Sample article content 4
|
||||
is_published: true
|
||||
query:
|
||||
query: |
|
||||
query: |-
|
||||
query {
|
||||
author (where: {name: {_neq: "Author 1"}}) {
|
||||
id
|
||||
@@ -24,7 +24,7 @@ query:
|
||||
where: {is_published: {_neq: false}}
|
||||
) {
|
||||
id
|
||||
title
|
||||
title
|
||||
content
|
||||
is_published
|
||||
}
|
||||
|
||||
@@ -4,14 +4,14 @@ status: 200
|
||||
response:
|
||||
data:
|
||||
author:
|
||||
- name: Author 1
|
||||
id: 1
|
||||
- id: 1
|
||||
name: Author 1
|
||||
articles:
|
||||
- content: Sample article content 2
|
||||
id: 2
|
||||
- id: 2
|
||||
title: Article 2
|
||||
content: Sample article content 2
|
||||
query:
|
||||
query: |
|
||||
query: |-
|
||||
query {
|
||||
author (
|
||||
where: {name: {_nin: [ "Author 2", "Author 3" ] }}
|
||||
@@ -22,7 +22,7 @@ query:
|
||||
where: { id : { _gt: 1}}
|
||||
) {
|
||||
id
|
||||
title
|
||||
title
|
||||
content
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
- description: Select author and their articles
|
||||
url: /v1/graphql
|
||||
status: 200
|
||||
response: &response
|
||||
response:
|
||||
data:
|
||||
author:
|
||||
- name: Author 2
|
||||
id: 2
|
||||
- id: 2
|
||||
name: Author 2
|
||||
articles:
|
||||
- content: Sample article content 3
|
||||
id: 3
|
||||
- id: 3
|
||||
title: Article 3
|
||||
- name: Author 3
|
||||
id: 3
|
||||
content: Sample article content 3
|
||||
- id: 3
|
||||
name: Author 3
|
||||
articles:
|
||||
- content: Sample article content 4
|
||||
id: 4
|
||||
- id: 4
|
||||
title: Article 4
|
||||
content: Sample article content 4
|
||||
query:
|
||||
query: |
|
||||
query {
|
||||
@@ -26,7 +26,7 @@
|
||||
name
|
||||
articles{
|
||||
id
|
||||
title
|
||||
title
|
||||
content
|
||||
}
|
||||
}
|
||||
@@ -35,9 +35,22 @@
|
||||
url: /v1/graphql
|
||||
status: 200
|
||||
response:
|
||||
<<: *response
|
||||
data:
|
||||
author:
|
||||
- id: 2
|
||||
name: Author 2
|
||||
articles:
|
||||
- id: 3
|
||||
title: Article 3
|
||||
content: Sample article content 3
|
||||
- id: 3
|
||||
name: Author 3
|
||||
articles:
|
||||
- id: 4
|
||||
title: Article 4
|
||||
content: Sample article content 4
|
||||
query:
|
||||
query: |
|
||||
query: |-
|
||||
query {
|
||||
author (
|
||||
where: {id: {_gte: 2}}
|
||||
@@ -46,7 +59,7 @@
|
||||
name
|
||||
articles{
|
||||
id
|
||||
title
|
||||
title
|
||||
content
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,23 +4,23 @@ status: 200
|
||||
response:
|
||||
data:
|
||||
article:
|
||||
- content: Sample article content 2
|
||||
author:
|
||||
name: Author 1
|
||||
id: 1
|
||||
id: 2
|
||||
- id: 2
|
||||
title: Article 2
|
||||
content: Sample article content 2
|
||||
tags:
|
||||
- bestseller
|
||||
- latest
|
||||
- content: Sample article content 3
|
||||
author:
|
||||
name: Author 2
|
||||
id: 2
|
||||
id: 3
|
||||
id: 1
|
||||
name: Author 1
|
||||
- id: 3
|
||||
title: Article 3
|
||||
content: Sample article content 3
|
||||
tags:
|
||||
- latest
|
||||
author:
|
||||
id: 2
|
||||
name: Author 2
|
||||
query:
|
||||
variables:
|
||||
tags:
|
||||
|
||||
@@ -4,14 +4,14 @@ status: 200
|
||||
response:
|
||||
data:
|
||||
article:
|
||||
- content: Sample article content 3
|
||||
author:
|
||||
name: Author 2
|
||||
id: 2
|
||||
id: 3
|
||||
- id: 3
|
||||
title: Article 3
|
||||
content: Sample article content 3
|
||||
tags:
|
||||
- latest
|
||||
author:
|
||||
id: 2
|
||||
name: Author 2
|
||||
query:
|
||||
variables:
|
||||
tags:
|
||||
|
||||
@@ -4,23 +4,23 @@ status: 200
|
||||
response:
|
||||
data:
|
||||
article:
|
||||
- content: Sample article content 2
|
||||
author:
|
||||
name: Author 1
|
||||
id: 1
|
||||
id: 2
|
||||
- id: 2
|
||||
title: Article 2
|
||||
content: Sample article content 2
|
||||
tags:
|
||||
- bestseller
|
||||
- latest
|
||||
- content: Sample article content 3
|
||||
author:
|
||||
name: Author 2
|
||||
id: 2
|
||||
id: 3
|
||||
id: 1
|
||||
name: Author 1
|
||||
- id: 3
|
||||
title: Article 3
|
||||
content: Sample article content 3
|
||||
tags:
|
||||
- latest
|
||||
author:
|
||||
id: 2
|
||||
name: Author 2
|
||||
query:
|
||||
query: |
|
||||
query ($tags: jsonb) {
|
||||
|
||||
@@ -4,12 +4,12 @@ status: 200
|
||||
response:
|
||||
data:
|
||||
author:
|
||||
- name: Author 1
|
||||
id: 1
|
||||
- id: 1
|
||||
name: Author 1
|
||||
articles:
|
||||
- content: Sample article content 2
|
||||
id: 2
|
||||
- id: 2
|
||||
title: Article 2
|
||||
content: Sample article content 2
|
||||
tags:
|
||||
- bestseller
|
||||
- latest
|
||||
|
||||
@@ -8,8 +8,8 @@ response:
|
||||
title: Article 3
|
||||
content: Sample article content 3
|
||||
author:
|
||||
name: Author 2
|
||||
id: 2
|
||||
name: Author 2
|
||||
query:
|
||||
query: |
|
||||
query {
|
||||
|
||||
@@ -8,14 +8,14 @@ response:
|
||||
title: Article 3
|
||||
content: Sample article content 3
|
||||
author:
|
||||
name: Author 2
|
||||
id: 2
|
||||
name: Author 2
|
||||
- id: 2
|
||||
title: Article 2
|
||||
content: Sample article content 2
|
||||
author:
|
||||
name: Author 1
|
||||
id: 1
|
||||
name: Author 1
|
||||
query:
|
||||
query: |
|
||||
query {
|
||||
|
||||
@@ -8,14 +8,14 @@ response:
|
||||
title: Article 2
|
||||
content: Sample article content 2
|
||||
author:
|
||||
name: Author 1
|
||||
id: 1
|
||||
name: Author 1
|
||||
- id: 1
|
||||
title: Article 1
|
||||
content: Sample article content 1
|
||||
author:
|
||||
name: Author 1
|
||||
id: 1
|
||||
name: Author 1
|
||||
query:
|
||||
query: |
|
||||
query {
|
||||
|
||||
@@ -8,8 +8,8 @@ response:
|
||||
title: Article 1
|
||||
content: Sample article content 1
|
||||
author:
|
||||
name: Author 1
|
||||
id: 1
|
||||
name: Author 1
|
||||
query:
|
||||
query: |
|
||||
query {
|
||||
|
||||
@@ -8,8 +8,8 @@ response:
|
||||
title: Article 2
|
||||
content: Sample article content 2
|
||||
author:
|
||||
name: Author 1
|
||||
id: 1
|
||||
name: Author 1
|
||||
query:
|
||||
query: |
|
||||
query {
|
||||
|
||||
@@ -25,14 +25,14 @@
|
||||
response:
|
||||
data:
|
||||
author:
|
||||
- name: Author 1
|
||||
id: 1
|
||||
- id: 1
|
||||
name: Author 1
|
||||
remarks_internal: remark 1
|
||||
- name: Author 2
|
||||
id: 2
|
||||
- id: 2
|
||||
name: Author 2
|
||||
remarks_internal: remark 2
|
||||
- name: Author 3
|
||||
id: 3
|
||||
- id: 3
|
||||
name: Author 3
|
||||
remarks_internal: remark 3
|
||||
query:
|
||||
query: |
|
||||
|
||||
@@ -5,8 +5,8 @@ response:
|
||||
data:
|
||||
createUser:
|
||||
user:
|
||||
username: foobar
|
||||
id: 123
|
||||
username: foobar
|
||||
query:
|
||||
query: |
|
||||
mutation {
|
||||
|
||||
@@ -4,8 +4,8 @@ status: 200
|
||||
response:
|
||||
data:
|
||||
user:
|
||||
username: john
|
||||
id: 2
|
||||
username: john
|
||||
query:
|
||||
query: |
|
||||
query {
|
||||
|
||||
@@ -221,6 +221,7 @@ class TestGraphqlInsertGeoJson(DefaultTestMutations):
|
||||
@pytest.mark.parametrize("transport", ['http', 'websocket'])
|
||||
class TestGraphqlNestedInserts(DefaultTestMutations):
|
||||
|
||||
@pytest.mark.xfail(reason="Incorrect ordering. Refer https://github.com/hasura/graphql-engine/issues/3271")
|
||||
def test_author_with_articles(self, hge_ctx, transport):
|
||||
check_query_f(hge_ctx, self.dir() + "/author_with_articles.yaml")
|
||||
|
||||
@@ -233,6 +234,7 @@ class TestGraphqlNestedInserts(DefaultTestMutations):
|
||||
def test_author_with_articles_author_id_fail(self, hge_ctx, transport):
|
||||
check_query_f(hge_ctx, self.dir() + "/author_with_articles_author_id_fail.yaml")
|
||||
|
||||
@pytest.mark.xfail(reason="Incorrect ordering. Refer https://github.com/hasura/graphql-engine/issues/3271")
|
||||
def test_articles_with_author(self, hge_ctx, transport):
|
||||
check_query_f(hge_ctx, self.dir() + "/articles_with_author.yaml")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user