matrix-org / synapse-s3-storage-provider

Synapse storage provider to fetch and store media in Amazon S3
Apache License 2.0
132 stars 36 forks source link

Integration test s3 storage provider against latest synapse release #72

Closed michaelkaye closed 2 years ago

michaelkaye commented 2 years ago

Integration test the current s3 media provider by loading it into a synapse running in github actions.

I did this because I needed to be able to load and test a new module using the synapse action I wrote, and thought I should make sure I can test it on an existing module first, before trying to develop a new module using it, so decided to write an integration test for this module.

The test uses a GHA to setup a synapse with the module installed, then sets up a matching minio to fake being S3, runs a script that attempts to login and upload/download media, finally validating that the downloaded file and the file stored in minio match the uploaded file.

michaelkaye commented 2 years ago

Have adjusted to "my access key" per brendan's comment.

NB: i don't have merge rights so please merge at your leisure.

babolivier commented 2 years ago

Thanks Michael! CI seems happy so I'm going to merge it.