-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: set id not taking into account in set search
Signed-off-by: Avior <[email protected]>
- Loading branch information
1 parent
1a52a6f
commit 4cd13b3
Showing
8 changed files
with
165 additions
and
2 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
.bruno/fixes/562-graphql-set-request-is-not-returning-the-correct-value.bru
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
meta { | ||
name: 562 - GraphQL set request is not returning the correct value | ||
type: graphql | ||
seq: 7 | ||
} | ||
|
||
post { | ||
url: {{BASE_URL}}/v2/graphql | ||
body: graphql | ||
auth: none | ||
} | ||
|
||
body:graphql { | ||
query Pouet { | ||
set(id: "{{SET_ID}}") { | ||
id | ||
} | ||
} | ||
|
||
} | ||
|
||
vars:pre-request { | ||
SET_ID: swsh1 | ||
} | ||
|
||
assert { | ||
res.status: eq 200 | ||
res.body.data.set.id: eq {{SET_ID}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
meta { | ||
name: card | ||
type: graphql | ||
seq: 2 | ||
} | ||
|
||
post { | ||
url: {{BASE_URL}}/v2/graphql | ||
body: graphql | ||
auth: none | ||
} | ||
|
||
body:graphql { | ||
query Pouet { | ||
card(id: "{{ID}}") { | ||
id | ||
} | ||
} | ||
} | ||
|
||
vars:pre-request { | ||
ID: swsh1-136 | ||
} | ||
|
||
assert { | ||
res.status: eq 200 | ||
res.body.data.card.id: eq {{ID}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
meta { | ||
name: GraphQL API | ||
name: cards | ||
type: graphql | ||
seq: 1 | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
meta { | ||
name: serie | ||
type: graphql | ||
seq: 5 | ||
} | ||
|
||
post { | ||
url: {{BASE_URL}}/v2/graphql | ||
body: graphql | ||
auth: none | ||
} | ||
|
||
body:graphql { | ||
query Pouet { | ||
serie(id: "{{ID}}") { | ||
id | ||
} | ||
} | ||
|
||
} | ||
|
||
vars:pre-request { | ||
ID: swsh | ||
} | ||
|
||
assert { | ||
res.status: eq 200 | ||
res.body.data.serie.id: eq {{ID}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
meta { | ||
name: series | ||
type: graphql | ||
seq: 6 | ||
} | ||
|
||
post { | ||
url: {{BASE_URL}}/v2/graphql | ||
body: graphql | ||
auth: none | ||
} | ||
|
||
body:graphql { | ||
query Pouet { | ||
series { | ||
id | ||
} | ||
} | ||
|
||
} | ||
|
||
assert { | ||
res.status: eq 200 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
meta { | ||
name: set | ||
type: graphql | ||
seq: 3 | ||
} | ||
|
||
post { | ||
url: {{BASE_URL}}/v2/graphql | ||
body: graphql | ||
auth: none | ||
} | ||
|
||
body:graphql { | ||
query Pouet { | ||
set(id: "{{SET_ID}}") { | ||
id | ||
} | ||
} | ||
|
||
} | ||
|
||
vars:pre-request { | ||
SET_ID: swsh1 | ||
} | ||
|
||
assert { | ||
res.status: eq 200 | ||
res.body.data.set.id: eq {{SET_ID}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
meta { | ||
name: sets | ||
type: graphql | ||
seq: 4 | ||
} | ||
|
||
post { | ||
url: {{BASE_URL}}/v2/graphql | ||
body: graphql | ||
auth: none | ||
} | ||
|
||
body:graphql { | ||
query Pouet { | ||
sets { | ||
id | ||
} | ||
} | ||
|
||
} | ||
|
||
assert { | ||
res.status: eq 200 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters