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 {
|
meta {
|
||||||
name: "Bookmann Conflicts API"
|
name: "Bookhoard Conflicts API"
|
||||||
type: "collection"
|
type: "collection"
|
||||||
environment: {
|
environment: {
|
||||||
development: {
|
development: {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
meta {
|
meta {
|
||||||
name: "Bookmann Device Management API"
|
name: "Bookhoard Device Management API"
|
||||||
type: "collection"
|
type: "collection"
|
||||||
environment: {
|
environment: {
|
||||||
development: {
|
development: {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
meta {
|
meta {
|
||||||
name: Bookmann Kobo Sync
|
name: Bookhoard Kobo Sync
|
||||||
type: collection
|
type: collection
|
||||||
environment: Bookmann
|
environment: Bookhoard
|
||||||
}
|
}
|
||||||
|
|
||||||
### Kobo Initialization Endpoint
|
### Kobo Initialization Endpoint
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ Content-Type: application/json
|
|||||||
|
|
||||||
{
|
{
|
||||||
"meta": {
|
"meta": {
|
||||||
"name": "Sync from Bookmann to Kobo",
|
"name": "Sync from Bookhoard to Kobo",
|
||||||
"description": "Server-initiated sync pushing progress, bookmarks, and highlights from Bookmann to Kobo device",
|
"description": "Server-initiated sync pushing progress, bookmarks, and highlights from Bookhoard to Kobo device",
|
||||||
"documentation": "Two-way sync endpoint. Allows Bookmann server to push updates to Kobo device, including reading progress, bookmarks, and highlights."
|
"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.status == 200
|
||||||
response.body.ContentId exists()
|
response.body.ContentId exists()
|
||||||
response.body.Categories exists()
|
response.body.Categories exists()
|
||||||
response.body.BookmannUUID exists()
|
response.body.BookhoardUUID exists()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ GET {{baseURL}}/api/books/{{bookUUID}}/download
|
|||||||
{
|
{
|
||||||
"meta": {
|
"meta": {
|
||||||
"name": "Download EPUB Book",
|
"name": "Download EPUB Book",
|
||||||
"description": "Download an EPUB book file from Bookmann server (no auth required - for Kobo device download)",
|
"description": "Download an EPUB book file from Bookhoard 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."
|
"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": {
|
"script": {
|
||||||
"exec": [
|
"exec": [
|
||||||
"// Test format-specific hash header",
|
"// 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) {",
|
"if (kepubHash) {",
|
||||||
" tests['KEPUB hash present'] = true;",
|
" tests['KEPUB hash present'] = true;",
|
||||||
" tests['Hash is 64 chars'] = kepubHash.length === 64;",
|
" tests['Hash is 64 chars'] = kepubHash.length === 64;",
|
||||||
@@ -16,9 +16,9 @@
|
|||||||
" tests['KEPUB hash present'] = false;",
|
" tests['KEPUB hash present'] = false;",
|
||||||
"}",
|
"}",
|
||||||
"",
|
"",
|
||||||
"// Verify Bookmann UUID header",
|
"// Verify Bookhoard UUID header",
|
||||||
"const bookmannUUID = resp.headers.get('X-Bookmann-UUID');",
|
"const bookmannUUID = resp.headers.get('X-Bookhoard-UUID');",
|
||||||
"tests['Bookmann UUID present'] = bookmannUUID !== null;",
|
"tests['Bookhoard UUID present'] = bookmannUUID !== null;",
|
||||||
"",
|
"",
|
||||||
"// Verify content type",
|
"// Verify content type",
|
||||||
"const contentType = resp.headers.get('Content-Type');",
|
"const contentType = resp.headers.get('Content-Type');",
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
meta {
|
meta {
|
||||||
name: "Bookmann Sync Queue API"
|
name: "Bookhoard Sync Queue API"
|
||||||
type: "collection"
|
type: "collection"
|
||||||
environment: {
|
environment: {
|
||||||
development: {
|
development: {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
meta {
|
meta {
|
||||||
name: "Bookmann Kobo Sync API"
|
name: "Bookhoard Kobo Sync API"
|
||||||
type: "collection"
|
type: "collection"
|
||||||
environment: {
|
environment: {
|
||||||
development: {
|
development: {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
meta {
|
meta {
|
||||||
name: "Bookmann KOReader Sync API"
|
name: "Bookhoard KOReader Sync API"
|
||||||
type: "collection"
|
type: "collection"
|
||||||
environment: {
|
environment: {
|
||||||
development: {
|
development: {
|
||||||
|
|||||||
Reference in New Issue
Block a user