From 9c202c1dea3467f34590d96f4bfc34d36d3c4c49 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Sat, 9 Jan 2021 17:05:29 +0100 Subject: [PATCH] Run federation tests natively --- src/en/contributing/tests.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/en/contributing/tests.md b/src/en/contributing/tests.md index e4cfa65..8f57cb8 100644 --- a/src/en/contributing/tests.md +++ b/src/en/contributing/tests.md @@ -12,9 +12,18 @@ psql -U lemmy -c "DROP SCHEMA public CASCADE; CREATE SCHEMA public;" ### 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 -./run-tests.bash +127.0.0.1 lemmy-alpha +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 ```