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,30 @@
|
||||
meta {
|
||||
name: "Kobo Bookmark Sync - Enhanced with ContentId Mapping"
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/api/v1/kobo/bookmark
|
||||
body: json({
|
||||
"BookmarkSync": [
|
||||
{
|
||||
"BookmarkId": "bookmark_2",
|
||||
"ContentId": "kobo_xyz789",
|
||||
"BookmarkText": "Important note",
|
||||
"BookmarkType": "bookmark",
|
||||
"DateCreated": "2026-01-31T12:00:00Z"
|
||||
}
|
||||
]
|
||||
})
|
||||
auth: {
|
||||
type: bearer
|
||||
bearer: {{device_token}}
|
||||
}
|
||||
}
|
||||
|
||||
assert {
|
||||
response.status == 200
|
||||
response.body.Status == "Success"
|
||||
response.body.BookmarksSynced >= 0
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
meta {
|
||||
name: "Kobo Initialization - Enhanced with ContentId Mapping"
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/api/v1/kobo/initialization
|
||||
body: none
|
||||
auth: {
|
||||
type: bearer
|
||||
bearer: {{device_token}}
|
||||
}
|
||||
}
|
||||
|
||||
assert {
|
||||
response.status == 200
|
||||
response.body.ContentId exists()
|
||||
response.body.Categories exists()
|
||||
response.body.BookmannUUID exists()
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
meta {
|
||||
name: "Kobo Markup Sync - Enhanced with ContentId Mapping"
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/api/v1/kobo/markup
|
||||
body: json({
|
||||
"ReadingSync": [
|
||||
{
|
||||
"ContentId": "kobo_abc123def456",
|
||||
"PercentRead": 60.0,
|
||||
"RemainingTimeMin": 120,
|
||||
"ReadingEvent": "BookRead",
|
||||
"LastModified": "2026-01-31T12:00:00Z"
|
||||
}
|
||||
],
|
||||
"BookmarkSync": [
|
||||
{
|
||||
"BookmarkId": "bookmark_1",
|
||||
"ContentId": "kobo_abc123def456",
|
||||
"BookmarkText": "Great quote",
|
||||
"BookmarkType": "annotation",
|
||||
"DateCreated": "2026-01-31T12:00:00Z"
|
||||
}
|
||||
],
|
||||
"Metadata": true
|
||||
})
|
||||
auth: {
|
||||
type: bearer
|
||||
bearer: {{device_token}}
|
||||
}
|
||||
}
|
||||
|
||||
assert {
|
||||
response.status == 200
|
||||
response.body.Status == "Success" || response.body.Status == "Partial"
|
||||
response.body.MarkupsSynced >= 0
|
||||
response.body.BookmarksSynced >= 0
|
||||
}
|
||||
Reference in New Issue
Block a user