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