0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-12-16 18:53:43 +01:00
dendrite/cmd/mediaapi-integration-tests/TESTS.md
2019-05-21 21:56:55 +01:00

1.5 KiB

Media API Tests

Implemented

  • functional
    • upload
      • normal case
    • download
      • local file
        • existing
        • non-existing
      • remote file
        • existing
    • thumbnail
      • original file formats
        • JPEG
      • local file
        • existing
      • remote file
        • existing
      • cache
        • cold
        • hot
      • pre-generation according to configuration
        • scale
        • crop
      • dynamic generation
        • cold cache
        • larger than original
        • scale

TODO

  • functional
    • upload
      • file too large
      • 0-byte file?
      • invalid filename
      • invalid content-type
    • download
      • invalid origin
      • invalid media id
    • thumbnail
      • original file formats
        • GIF
        • PNG
        • BMP
        • SVG
        • PDF
        • TIFF
        • WEBP
      • local file
        • non-existing
      • remote file
        • non-existing
      • pre-generation according to configuration
        • manual verification + hash check for regressions?
      • dynamic generation
        • hot cache
        • limit on dimensions?
        • 0x0
        • crop
  • load
    • 100 parallel requests
      • same file
      • different local files
      • different remote files
      • pre-generated thumbnails
      • non-pre-generated thumbnails