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
  • #10

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 | GIF Validations

  • Check if the book related to the GIFs already exists in the database
  • Handle invalid or corrupted GIFs
  • Return appropriate error messages for invalid uploads or books not found

Scenario: Upload GIFs for an existing book

Given a valid GIFs containing GIFs for an existing book is sent to the upload endpoint
When the GIFs is uploaded to the service
Then the service should extract the metadata to identify the book
And check if the book exists in the database
And if the book exists, the service should send to the repository a command to update all gifs related to the book


Scenario: Upload GIFs for a non-existent book

Given a GIFs for a non-existent or invalid book is sent to the upload endpoint
When the GIFs 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 GIFs

Given an invalid or corrupted GIFs is sent to the upload endpoint
When the file is uploaded to the service
Then the service should return an error response indicating the GIFs could not be processed

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