Skip to content

Commit 84297d8

Browse files
Heikel BouzayeneHeikel Bouzayene
Heikel Bouzayene
authored and
Heikel Bouzayene
committed
update integration test file
1 parent 885908d commit 84297d8

File tree

1 file changed

+4
-84
lines changed

1 file changed

+4
-84
lines changed

tests/execution/graphql-conformance-018.md

Lines changed: 4 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type Query {
1414

1515
type User {
1616
id: ID!
17-
name: String! @modify(name: "newName")
17+
name: String!
1818
city: String
1919
}
2020
```
@@ -23,7 +23,7 @@ type User {
2323
- request:
2424
method: POST
2525
url: http://upstream/graphql
26-
textBody: '{ "query": "query { user(id: 4) { city newName } }" }'
26+
textBody: '{ "query": "query { user(id: 4) { city name } }" }'
2727
expectedHits: 1
2828
response:
2929
status: 200
@@ -32,98 +32,18 @@ type User {
3232
user:
3333
city: Globe
3434
newName: Tailcall
35-
- request:
36-
method: POST
37-
url: http://upstream/graphql
38-
textBody: '{ "query": "query { user(id: 4) { city newName id } }" }'
39-
expectedHits: 1
40-
response:
41-
status: 200
42-
body:
43-
data:
44-
user:
45-
city: Globe
46-
newName: Tailcall
47-
id: 4
48-
- request:
49-
method: POST
50-
url: http://upstream/graphql
51-
textBody: '{ "query": "query { user(id: 4) { id newName city } }" }'
52-
expectedHits: 1
53-
response:
54-
status: 200
55-
body:
56-
data:
57-
user:
58-
id: 4
59-
newName: Tailcall
60-
city: Globe
6135
```
6236

6337
```yml @test
6438
# Positive: basic 1
6539
- method: POST
66-
url: http://localhost:8080/graphql
40+
url: http://localhost:8001/graphql
6741
body:
6842
query: |
6943
{
7044
user(id: 4) {
71-
city
72-
newName
73-
}
74-
}
75-
# Positive: basic 2
76-
- method: POST
77-
url: http://localhost:8080/graphql
78-
body:
79-
query: |
80-
query {
81-
user(id: 4) {
82-
city
83-
newName
84-
id
85-
}
86-
}
87-
# Positive: basic 2 re ordered
88-
- method: POST
89-
url: http://localhost:8080/graphql
90-
body:
91-
query: |
92-
query {
93-
user(id: 4) {
94-
id
95-
newName
96-
city
97-
}
98-
}
99-
# Negative: without selection
100-
- method: POST
101-
url: http://localhost:8080/graphql
102-
body:
103-
query: |
104-
query {
105-
user(id: 4)
106-
# Negative: non existent fields
107-
- method: POST
108-
url: http://localhost:8080/graphql
109-
body:
110-
query: |
111-
query {
112-
user(id: 4) {
113-
id
114-
email_address
115-
}
116-
117-
# Negative: missing input
118-
- method: POST
119-
url: http://localhost:8080/graphql
120-
body:
121-
query: |
122-
query {
123-
user {
124-
id
12545
newName
126-
city
46+
email
12747
}
12848
}
12949
```

0 commit comments

Comments
 (0)