test(bruno): Add API tests for Kobo, Koreader, OPDS, collections
- Add Kobo bookmark/markup sync tests - Add Koreader progress/bookmark sync tests - Add OPDS feed tests - Add collection tests - Add sync tests for book linking
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
meta {
|
||||
name: "Link Unlinked Book - Manual Resolution"
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/api/sync/link-book
|
||||
body: json({
|
||||
"unlinked_book_id": "{{unlinked_book_id}}",
|
||||
"media_item_id": "{{media_item_id}}",
|
||||
"confidence_score": 1.0
|
||||
})
|
||||
auth: {
|
||||
type: bearer
|
||||
bearer: {{user_token}}
|
||||
}
|
||||
}
|
||||
|
||||
assert {
|
||||
response.status == 200
|
||||
response.body.status == "linked"
|
||||
response.body.unlinked_book_id exists()
|
||||
response.body.media_item_id exists()
|
||||
response.body.message exists()
|
||||
}
|
||||
Reference in New Issue
Block a user