Rename API test collection references: Bookmann → Bookhoard
Bruno API test updates: - Update test assertions: X-Bookmann-* → X-Bookhoard-* - Update variable names and references in test scripts - Update documentation and comments in API tests This is part 4 of the project rename to Bookhoard.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
meta {
|
||||
name: "Bookmann Conflicts API"
|
||||
name: "Bookhoard Conflicts API"
|
||||
type: "collection"
|
||||
environment: {
|
||||
development: {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
meta {
|
||||
name: "Bookmann Device Management API"
|
||||
name: "Bookhoard Device Management API"
|
||||
type: "collection"
|
||||
environment: {
|
||||
development: {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
meta {
|
||||
name: Bookmann Kobo Sync
|
||||
name: Bookhoard Kobo Sync
|
||||
type: collection
|
||||
environment: Bookmann
|
||||
environment: Bookhoard
|
||||
}
|
||||
|
||||
### Kobo Initialization Endpoint
|
||||
|
||||
@@ -37,8 +37,8 @@ Content-Type: application/json
|
||||
|
||||
{
|
||||
"meta": {
|
||||
"name": "Sync from Bookmann to Kobo",
|
||||
"description": "Server-initiated sync pushing progress, bookmarks, and highlights from Bookmann to Kobo device",
|
||||
"documentation": "Two-way sync endpoint. Allows Bookmann server to push updates to Kobo device, including reading progress, bookmarks, and highlights."
|
||||
"name": "Sync from Bookhoard to Kobo",
|
||||
"description": "Server-initiated sync pushing progress, bookmarks, and highlights from Bookhoard to Kobo device",
|
||||
"documentation": "Two-way sync endpoint. Allows Bookhoard server to push updates to Kobo device, including reading progress, bookmarks, and highlights."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,5 +17,5 @@ assert {
|
||||
response.status == 200
|
||||
response.body.ContentId exists()
|
||||
response.body.Categories exists()
|
||||
response.body.BookmannUUID exists()
|
||||
response.body.BookhoardUUID exists()
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ GET {{baseURL}}/api/books/{{bookUUID}}/download
|
||||
{
|
||||
"meta": {
|
||||
"name": "Download EPUB Book",
|
||||
"description": "Download an EPUB book file from Bookmann server (no auth required - for Kobo device download)",
|
||||
"documentation": "Kobo devices can download books directly from Bookmann using this endpoint. The endpoint returns the book file with appropriate Content-Type headers."
|
||||
"description": "Download an EPUB book file from Bookhoard server (no auth required - for Kobo device download)",
|
||||
"documentation": "Kobo devices can download books directly from Bookhoard using this endpoint. The endpoint returns the book file with appropriate Content-Type headers."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"script": {
|
||||
"exec": [
|
||||
"// Test format-specific hash header",
|
||||
"const kepubHash = resp.headers.get('X-Bookmann-KEPUB-SHA256');",
|
||||
"const kepubHash = resp.headers.get('X-Bookhoard-KEPUB-SHA256');",
|
||||
"if (kepubHash) {",
|
||||
" tests['KEPUB hash present'] = true;",
|
||||
" tests['Hash is 64 chars'] = kepubHash.length === 64;",
|
||||
@@ -16,9 +16,9 @@
|
||||
" tests['KEPUB hash present'] = false;",
|
||||
"}",
|
||||
"",
|
||||
"// Verify Bookmann UUID header",
|
||||
"const bookmannUUID = resp.headers.get('X-Bookmann-UUID');",
|
||||
"tests['Bookmann UUID present'] = bookmannUUID !== null;",
|
||||
"// Verify Bookhoard UUID header",
|
||||
"const bookmannUUID = resp.headers.get('X-Bookhoard-UUID');",
|
||||
"tests['Bookhoard UUID present'] = bookmannUUID !== null;",
|
||||
"",
|
||||
"// Verify content type",
|
||||
"const contentType = resp.headers.get('Content-Type');",
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
meta {
|
||||
name: "Bookmann Sync Queue API"
|
||||
name: "Bookhoard Sync Queue API"
|
||||
type: "collection"
|
||||
environment: {
|
||||
development: {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
meta {
|
||||
name: "Bookmann Kobo Sync API"
|
||||
name: "Bookhoard Kobo Sync API"
|
||||
type: "collection"
|
||||
environment: {
|
||||
development: {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
meta {
|
||||
name: "Bookmann KOReader Sync API"
|
||||
name: "Bookhoard KOReader Sync API"
|
||||
type: "collection"
|
||||
environment: {
|
||||
development: {
|
||||
|
||||
Reference in New Issue
Block a user