Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • VIR - backend VIR - backend
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VIR - Visual Interactive Reading
  • VIR - backendVIR - backend
  • Issues
  • #11

Closed
Open
Created Oct 11, 2024 by Luiz Felipe Porto Lara De Oliveira@luiz.oliveiraMaintainer3 of 3 tasks completed3/3 tasks

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

Scenario: Upload PDF for an existing book

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

Scenario: Upload PDF for a non-existent book

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

Scenario: Upload invalid or corrupted PDF file

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

Edited Oct 19, 2024 by Isabella Zarosa Cunha
Assignee
Assign to
Time tracking