implement further integration tests on person and relationship creation

This commit is contained in:
2025-04-22 22:47:37 +02:00
parent 23da2c2186
commit 92c1d29ace
26 changed files with 523 additions and 111 deletions

View File

@@ -0,0 +1,40 @@
meta {
name: create_person_and_relationship_child
type: http
seq: 10
}
post {
url: http://localhost:8080/person_and_relationship/{{id}}
body: json
auth: inherit
}
headers {
Content-Type: application/json
X-User-Id: 2
}
body:json {
{
"person": {
"first_name": "Johannes",
"last_name": "Doe",
"born": "2000-07-01",
"limit": 1000,
"mothers_first_name": "Frances",
"mothers_last_name": "Soft",
"email": "dj@example.com"
},
"type": "child",
"relationship": {
"verified": true,
"notes": "Test notes",
"from": "2023-01-01"
}
}
}
vars:pre-request {
id: 2
}

View File

@@ -0,0 +1,38 @@
meta {
name: create_person_and_relationship_parent
type: http
seq: 11
}
post {
url: http://localhost:8080/person_and_relationship/{{id}}
body: json
auth: inherit
}
headers {
Content-Type: application/json
X-User-Id: 2
}
body:json {
{
"person": {
"first_name": "Ferdinand",
"last_name": "Fritz",
"born": "1940-06-01",
"limit": 1000,
"mothers_first_name": "Feras",
"mothers_last_name": "Frea",
"email": "FFd@example.com"
},
"type": "parent",
"relationship": {
"verified": true
}
}
}
vars:pre-request {
id: 2
}

View File

@@ -0,0 +1,39 @@
meta {
name: create_person_and_relationship_sibling
type: http
seq: 12
}
post {
url: http://localhost:8080/person_and_relationship/{{id}}
body: json
auth: inherit
}
headers {
Content-Type: application/json
X-User-Id: 2
}
body:json {
{
"person": {
"first_name": "Sandra",
"last_name": "Doe",
"born": "1987-07-01",
"limit": 1000,
"mothers_first_name": "Mary",
"mothers_last_name": "Smith",
"email": "SD@example.com"
},
"type": "sibling",
"relationship": {
"verified": true,
"notes": "Good siblings"
}
}
}
vars:pre-request {
id: 2
}

View File

@@ -0,0 +1,19 @@
meta {
name: get_person
type: http
seq: 14
}
get {
url: http://localhost:8080/person/{{id}}
body: none
auth: inherit
}
headers {
X-User-Id: 9
}
vars:pre-request {
id: 2
}

View File

@@ -0,0 +1,29 @@
meta {
name: person_family_tree
type: http
seq: 13
}
post {
url: http://localhost:8080/person
body: json
auth: inherit
}
headers {
X-User-Id: 2
X-User-Name: Alice Wonderland
Content-Type: application/json
}
body:json {
{
"first_name": "Jhon",
"last_name": "Doe",
"born": "1985-07-01",
"limit": 1000,
"mothers_first_name": "Mary",
"mothers_last_name": "Smith",
"email": "jd@example.com"
}
}

View File

@@ -0,0 +1,15 @@
meta {
name: person_family_tree_with_spouses
type: http
seq: 15
}
get {
url: http://localhost:8080/family-tree
body: none
auth: inherit
}
headers {
X-User-Id: 2
}