551b4e72d1
Fix https://github.com/matrix-org/matrix-public-archive/issues/59 Other updates: - Update tests to use `/roomid/room1/date/2022/01/03` format instead of trying to retrofit the weird alias stuff on there. Which also makes the fancy to actual URL utilities much more simple. - Update to specify `archiveMessageLimit` in the test case because pages have different number of events depending on if we are against a boundary, hidden events, etc. |
||
---|---|---|
.. | ||
dockerfiles | ||
fixtures | ||
server/matrix-utils | ||
shared/lib | ||
test-utils | ||
.eslintrc.json | ||
README.md | ||
docker-compose.yml | ||
e2e-tests.js |
README.md
Testing
Setup
If you haven't setup matrix-public-archive
yet, see the Setup section in the root README.md
Sorry, this isn't automated yet when you run the tests 🙇
$ docker pull matrixdotorg/synapse:latest
$ docker build -t matrix-public-archive-test-homeserver -f test/dockerfiles/Synapse.Dockerfile test/dockerfiles/
$ docker-compose --project-name matrix_public_archive_test -f test/docker-compose.yml up -d --no-recreate
Running the tests
$ npm run test
Or if you want to keep matrix-public-archive
server running after the tests run and explore the output from the interactive URL's printed on the screen, use:
$ npm run test-interactive
Developer utility
$ docker ps --all | grep test_hs
$ docker logs -f --tail 10 matrix_public_archive_test_hs1_1
$ docker logs -f --tail 10 matrix_public_archive_test_hs2_1
$ docker stop matrix_public_archive_test_hs1_1 matrix_public_archive_test_hs2_1
$ docker rm matrix_public_archive_test_hs1_1 matrix_public_archive_test_hs2_1