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:
parent
3a441887b8
commit
b168b86006
@ -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
|
||||
}
|
@ -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
|
||||
}
|
@ -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
|
||||
}
|
||||
|
@ -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 {
|
@ -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
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
meta {
|
||||
name: GraphQL API
|
||||
type: graphql
|
||||
seq: 2
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
@ -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
|
||||
}
|
@ -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
|
||||
}
|
@ -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
|
||||
}
|
16
.bruno/sets/get-one-card-from-a-set.bru
Normal file
16
.bruno/sets/get-one-card-from-a-set.bru
Normal 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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user