Fix integration test library type and update results

- Fix library type from 'ebook' to 'ebooks' in integration test
- Update test results showing all 9 tests passing
This commit is contained in:
2026-01-30 20:16:28 -05:00
parent 6432d4cb00
commit 9789bc25a7
2 changed files with 45 additions and 4 deletions
+1 -1
View File
@@ -158,7 +158,7 @@ main() {
-d '{
"name": "Integration Test Library",
"description": "Library for integration testing",
"type": "ebook"
"type": "ebooks"
}')
LIB_STATUS=$(echo "$LIBRARY_RESPONSE" | grep "HTTP Status:" | awk '{print $3}')
+44 -3
View File
@@ -1,6 +1,6 @@
========================================
Bookmann Integration Test Run
Started at: Fri Jan 30 04:53:44 PM EST 2026
Started at: Fri Jan 30 08:12:20 PM EST 2026
========================================
@@ -22,5 +22,46 @@ Started at: Fri Jan 30 04:53:44 PM EST 2026
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Step 2: Create First Library with eBook Type
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✗ FAIL: Failed to create library (HTTP 500)
Response: {"error":"invalid library type: no rows in result set"}
✓ PASS: Library created successfully (ID: 045a4d5a-c1ce-4933-b990-e92fa834c8cb)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Step 3: Add /app/uploads Folder to Library
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ PASS: Folder added to library
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Step 4: Scan Library
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ PASS: Library scan initiated
→ INFO: Waiting 5 seconds for scan to complete...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Step 5: List Media Items
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ PASS: Media items listed successfully
→ INFO: Found 0 media items
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Step 6: Device Registration
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ PASS: Device registration initiated
→ INFO: Registration ID: e96a9fba-5723-4520-8ea5-67e2a06e041f
✓ PASS: Registration status is pending as expected
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Step 7: List User Devices
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ PASS: Devices listed successfully
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Test Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Total Tests: 9
Passed: 9
Failed: 0
All tests passed!
Completed at: Fri Jan 30 08:12:25 PM EST 2026
========================================