matrix-public-archive/test
Eric Eastwood 9fc71a3412
Remove `matrix-bot-sdk` usage in tests (#15)
Remove `matrix-bot-sdk` usage in tests because it didn't have timestamp massaging `?ts` and it's not really necessary to rely on since we can just call the API directly 🤷. `matrix-bot-sdk` is also very annoying having to build rust crypto packages.

We're now using direct `fetch` requests against the Matrix API and lightweight `client` object.

All 3 current tests pass 
2022-06-09 20:44:57 -05:00
..
dockerfiles Remove `matrix-bot-sdk` usage in tests (#15) 2022-06-09 20:44:57 -05:00
fixtures Remove `matrix-bot-sdk` usage in tests (#15) 2022-06-09 20:44:57 -05:00
.eslintrc.json WIP: start of tests 2022-02-22 16:06:29 -06:00
README.md Remove `matrix-bot-sdk` usage in tests (#15) 2022-06-09 20:44:57 -05:00
client-utils.js Remove `matrix-bot-sdk` usage in tests (#15) 2022-06-09 20:44:57 -05:00
docker-compose.yml Federated homeservers in Docker for e2e tests 2022-02-22 20:25:24 -06:00
e2e-tests.js Remove `matrix-bot-sdk` usage in tests (#15) 2022-06-09 20:44:57 -05:00

README.md

$ 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
$ 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