Merge pull request #1 from LemmyNet/federation-tests

Run federation tests natively
This commit is contained in:
Dessalines 2021-01-11 20:26:53 -05:00 committed by GitHub
commit acd211710c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,9 +12,18 @@ psql -U lemmy -c "DROP SCHEMA public CASCADE; CREATE SCHEMA public;"
### Federation ### Federation
Install the [Docker development dependencies](docker_development.md), and execute: Install the [Local development dependencies](local_development.md), and add the following lines to `/etc/hosts`:
``` ```
cd docker/federation 127.0.0.1 lemmy-alpha
./run-tests.bash 127.0.0.1 lemmy-beta
127.0.0.1 lemmy-gamma
127.0.0.1 lemmy-delta
127.0.0.1 lemmy-epsilon
```
Then use the following script to run the tests:
```
cd api_tests
./run-federation-test.bash
``` ```