add bruno testing

This commit is contained in:
2025-04-19 16:44:51 +02:00
parent c51ec07e51
commit dce8873b63
4 changed files with 85 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
{
"version": "1",
"name": "example-payloads",
"type": "collection",
"ignore": [
"node_modules",
".git"
]
}

View File

@@ -0,0 +1,31 @@
meta {
name: create_person_by_google_id
type: http
seq: 1
}
post {
url: http://localhost:8080/person/google/{{google_id}}
body: json
auth: inherit
}
headers {
Content-Type: application/json
}
body:json {
{
"first_name": "Alice",
"last_name": "Wonderland",
"born": "1990-06-01",
"limit": 100,
"mothers_first_name": "Mary",
"mothers_last_name": "Smith",
"email": "alice@example.com"
}
}
vars:pre-request {
google_id: alice123
}

View File

@@ -0,0 +1,34 @@
meta {
name: create_person_by_google_id_and_invite_code
type: http
seq: 4
}
patch {
url: http://localhost:8080/person/google/{{google_id}}
body: json
auth: inherit
}
headers {
Content-Type: application/json
}
body:json {
{
"invite_code": "INV123456",
"person": {
"first_name": "Bob",
"last_name": "Builder",
"born": "1985-11-25",
"limit": 200,
"mothers_first_name": "Linda",
"mothers_last_name": "Builder",
"email": "bob@example.com"
}
}
}
vars:pre-request {
google_id: bob456
}

View File

@@ -0,0 +1,11 @@
meta {
name: get_person_by_google_id
type: http
seq: 2
}
get {
url: http://localhost:8080/person/google/{{google_id}}
body: none
auth: inherit
}