implement relationship integration tests

This commit is contained in:
2025-04-24 15:08:34 +02:00
parent b5342a19ca
commit c8d68c5cc7
28 changed files with 323 additions and 83 deletions

View File

@@ -0,0 +1,29 @@
meta {
name: create_relationship_child
type: http
seq: 16
}
post {
url: http://localhost:8080/relationship
body: json
auth: inherit
}
headers {
Content-Type: application/json
X-User-Id: 2
}
body:json {
{
"id1": 7,
"id2": 6,
"type": "child",
"relationship": {
"verified": true,
"notes": "Test notes",
"from": "2022-01-01"
}
}
}

View File

@@ -0,0 +1,29 @@
meta {
name: create_relationship_parent
type: http
seq: 17
}
post {
url: http://localhost:8080/relationship
body: json
auth: inherit
}
headers {
Content-Type: application/json
X-User-Id: 2
}
body:json {
{
"id1": 6,
"id2": 7,
"type": "parent",
"relationship": {
"verified": false,
"notes": "Test notes asdasdasda",
"from": "2021-01-01"
}
}
}

View File

@@ -0,0 +1,29 @@
meta {
name: create_relationship_sibling
type: http
seq: 18
}
post {
url: http://localhost:8080/relationship
body: json
auth: inherit
}
headers {
Content-Type: application/json
X-User-Id: 2
}
body:json {
{
"id1": 7,
"id2": 8,
"type": "sibling",
"relationship": {
"verified": true,
"notes": "OwO",
"from": "2024-01-01"
}
}
}

View File

@@ -0,0 +1,29 @@
meta {
name: create_relationship_spouse
type: http
seq: 19
}
post {
url: http://localhost:8080/relationship
body: json
auth: inherit
}
headers {
Content-Type: application/json
X-User-Id: 2
}
body:json {
{
"id1": 7,
"id2": 8,
"type": "sibling",
"relationship": {
"verified": true,
"notes": "OwO",
"from": "2024-01-01"
}
}
}