mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-13 22:39:06 +02:00
implement relationship integration tests
This commit is contained in:
29
apps/db-adapter/manual-testing/create_relationship_child.bru
Normal file
29
apps/db-adapter/manual-testing/create_relationship_child.bru
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user