mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-13 22:39:06 +02:00
implement integration test for relationship update and delete
This commit is contained in:
23
apps/db-adapter/manual-testing/delete_relationship.bru
Normal file
23
apps/db-adapter/manual-testing/delete_relationship.bru
Normal file
@@ -0,0 +1,23 @@
|
||||
meta {
|
||||
name: delete_relationship
|
||||
type: http
|
||||
seq: 21
|
||||
}
|
||||
|
||||
patch {
|
||||
url: http://localhost:8080/relationship/1/2
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
headers {
|
||||
X-User-ID: 1
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"relationship": {
|
||||
"verified": true
|
||||
}
|
||||
}
|
||||
}
|
19
apps/db-adapter/manual-testing/verify_relationship.bru
Normal file
19
apps/db-adapter/manual-testing/verify_relationship.bru
Normal file
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: verify_relationship
|
||||
type: http
|
||||
seq: 20
|
||||
}
|
||||
|
||||
patch {
|
||||
url: http://localhost:8080/relationship/1/2
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"relationship": {
|
||||
"verified": false
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user