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,37 @@
|
||||
meta {
|
||||
name: "KOReader Sync Progress - Enhanced with SHA-256"
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/api/v1/koreader/sync/progress
|
||||
body: json({
|
||||
"sync_mode": "immediate",
|
||||
"books": [
|
||||
{
|
||||
"uuid": "{{book_uuid}}",
|
||||
"sha256": "{{book_sha256}}",
|
||||
"file_path": "/mnt/onboard/The%20Hobbit.epub",
|
||||
"percentage": 0.65,
|
||||
"chapter": 5,
|
||||
"page": 142,
|
||||
"total_pages": 310,
|
||||
"epubcfi": "/6/4[chap1ref]!/4/2/1:0",
|
||||
"last_read": "2026-01-31T12:00:00Z",
|
||||
"title": "The Hobbit",
|
||||
"authors": ["J.R.R. Tolkien"]
|
||||
}
|
||||
]
|
||||
})
|
||||
auth: {
|
||||
type: bearer
|
||||
bearer: {{koreader_device_token}}
|
||||
}
|
||||
}
|
||||
|
||||
assert {
|
||||
response.status == 200 || response.status == 202
|
||||
response.body.sync_status exists()
|
||||
response.body.books_synced >= 0
|
||||
}
|
||||
Reference in New Issue
Block a user