1
0
mirror of https://github.com/tcgdex/cards-database.git synced 2025-04-22 10:52:10 +00:00

chore: Update Bruno tests (#473)

This commit is contained in:
Florian Bouillon 2024-01-08 01:33:47 +01:00 committed by GitHub
parent 3a441887b8
commit b168b86006
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 38 additions and 32 deletions

View File

@ -1,5 +1,5 @@
meta {
name: get Card list
name: Get the cards list
type: http
seq: 1
}
@ -18,10 +18,11 @@ query {
~name: furret
}
assert {
res.status: eq 200
res.body.length: eq 4
}
docs {
Fully describe the card list request, it also has every parameters it can
}
assert {
res.status: eq 200
}

View File

@ -1,5 +1,5 @@
meta {
name: get one card
name: Get one card
type: http
seq: 2
}
@ -12,4 +12,5 @@ get {
assert {
res.status: eq 200
res.body.id: eq swsh3-136
}

View File

@ -1,5 +1,5 @@
meta {
name: invalid sorting
name: 466 - Invalid Sorting
type: http
seq: 1
}
@ -16,7 +16,7 @@ assert {
}
docs {
Validate the issue seen in
Validate the issue seen in
https://github.com/tcgdex/cards-database/issues/466
}

View File

@ -1,7 +1,7 @@
meta {
name: Validate that we can run OPTIONS
name: 467 - Validate that we can run OPTIONS
type: http
seq: 1
seq: 3
}
options {

View File

@ -1,5 +1,5 @@
meta {
name: 471-invalid-set-sorting
name: 471 - Invalid Set Sorting
type: http
seq: 2
}
@ -16,7 +16,7 @@ assert {
}
docs {
Validate the issue seen in
Validate the issue seen in
https://github.com/tcgdex/cards-database/issues/471
}

View File

@ -1,7 +1,7 @@
meta {
name: GraphQL API
type: graphql
seq: 2
seq: 1
}
post {

View File

@ -1,15 +0,0 @@
meta {
name: get one card from a set
type: http
seq: 1
}
get {
url: {{BASE_URL}}/v2/en/cards/swsh3
body: none
auth: none
}
assert {
res.status: eq 200
}

View File

@ -1,5 +1,5 @@
meta {
name: get list of sets
name: Get a list of sets
type: http
seq: 3
}
@ -20,4 +20,6 @@ query {
assert {
res.status: eq 200
res.body[0].id: eq swsh3
res.body.length: eq 1
}

View File

@ -1,5 +1,5 @@
meta {
name: get a set
name: Get a set
type: http
seq: 2
}
@ -12,4 +12,5 @@ get {
assert {
res.status: eq 200
res.body.id: eq swsh3
}

View File

@ -0,0 +1,16 @@
meta {
name: Get one card from a set
type: http
seq: 1
}
get {
url: {{BASE_URL}}/v2/en/sets/swsh3/136
body: none
auth: none
}
assert {
res.status: eq 200
res.body.id: eq swsh3-136
}