Skip to content

Commit 1d93cbf

Browse files
Fix integration test CI: use auth'd media (#135)
1 parent 002149d commit 1d93cbf

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ jobs:
1515
with:
1616
python-version: "3.x"
1717
- name: Run synapse
18-
uses: michaelkaye/setup-matrix-synapse@v1.0.1
18+
uses: michaelkaye/setup-matrix-synapse@v1.0.5
1919
with:
20-
uploadLogs: true
20+
# This is turned off as it currently breaks runs. Can be re-enabled once
21+
# `setup-matrix-synapse` updates its `@actions/artifact` to
22+
# v2.x. See https://github.com/michaelkaye/setup-matrix-synapse/issues/102
23+
uploadLogs: false
2124
httpPort: 8008
2225
customModules: "synapse-s3-storage-provider"
2326
customConfig: |
@@ -58,7 +61,7 @@ jobs:
5861
server_name=`echo $mxc | sed 's^mxc://\(.*\)/.*^\1^'`
5962
media_id=`echo $mxc | sed 's^mxc://.*/\(.*\)^\1^'`
6063
#Downloading uploaded file
61-
curl -q -o round_trip http://127.0.0.1:8008/_matrix/media/v3/download/${server_name}/${media_id}/
64+
curl -q -o round_trip -H "Authorization: Bearer $access_token" http://127.0.0.1:8008/_matrix/client/v1/media/download/${server_name}/${media_id}
6265
#Verify file against original
6366
diff round_trip s3_storage_provider.py
6467
#Verify file against minio data store

0 commit comments

Comments
 (0)