Sprint 2 | Admin | Book C.R.U.D | PDF File Validations
-
If the book exists, update the book's entry file
-
Handle invalid or corrupted PDF files
-
Return appropriate error messages for invalid uploads or books not found
Given a valid PDF file containing a book with special divider characters is sent to the upload endpoint
When the PDF file is uploaded to the service
Then the service should process the PDF and identify sections based on the divider characters
And check if the book exists in the database
And if the book exists, the service updates the book's existing entry with the newly generated PDF file
Given a PDF file for a non-existent or invalid book is sent to the upload endpoint
When the PDF file is uploaded to the service
Then the service should return an error response indicating the book was not found in the system
Given an invalid or corrupted PDF file is sent to the upload endpoint
When the file is uploaded to the service
Then the service should return an error response indicating the PDF file could not be processed