Skip to content

feat: add S3 and Azure Blob storage backend test pages - #8

Open
tomdesair wants to merge 7 commits into
masterfrom
feature/multi-storage-backend-test-pages
Open

tomdesair wants to merge 7 commits into
masterfrom
feature/multi-storage-backend-test-pages

Conversation

@tomdesair

Copy link
Copy Markdown
Owner

Summary

This PR adds two new dedicated test pages and upload endpoints for S3 Object Storage and Azure Blob Storage alongside the existing Disk Storage backend in the Spring Boot demo application:

Key Changes

  • Properties: Configured and documented settings for Disk, S3 (tus.s3.*), and Azure Blob (tus.azure.*) in application.properties.
  • Services: Instantiated 3 separate TusFileUploadService beans in App.java.
  • Controller: Mapped upload endpoints for /test/api/upload, /test-s3/api/upload, and /test-azure/api/upload in FileUploadController.java.
  • Tomcat Valve: Updated TusInterimResponseTomcatValve.java to support multi-service HTTP 104 interim response emission.
  • Frontend: Updated uppy-fileupload.js to dynamically resolve data-endpoint from .DashboardContainer.
  • Documentation: Updated README.md with detailed backend testing instructions (Docker MinIO & Azurite) and a Production Considerations section.
  • Testing: Added MockMvc tests covering all routes and endpoints in FileUploadControllerTest and TusInterimResponseTomcatValveTest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant