@@ -2,16 +2,9 @@ name: mjolnir
22
33up :
44 before :
5- - docker run --rm --network $MX_TEST_NETWORK_NAME --name mjolnir-test-postgres --domainname mjolnir-test-postgres -e POSTGRES_PASSWORD=mjolnir-test -e POSTGRES_USER=mjolnir-tester -e POSTGRES_DB=mjolnir-test-db -d -p 127.0.0.1:8083:5432 postgres
6- # Wait until postgresql is ready
7- - until psql postgres://mjolnir-tester:mjolnir-test@localhost:8083/mjolnir-test-db -c ""; do echo "Waiting for psql..."; sleep 1s; done
8- # Make table in postgres
9- - psql postgres://mjolnir-tester:mjolnir-test@localhost:8083/mjolnir-test-db -c "CREATE TABLE mjolnir (local_part VARCHAR(255), owner VARCHAR(255), management_room TEXT)"
105 # Launch the reverse proxy, listening for connections *only* on the local host.
116 - docker run --rm --network host --name mjolnir-test-reverse-proxy -p 127.0.0.1:8081:80 -v $MX_TEST_CWD/test/nginx.conf:/etc/nginx/nginx.conf:ro -d nginx
127 - yarn install
13- - npx ts-node src/appservice/cli.ts -r -u "http://host.docker.internal:9000"
14- - cp mjolnir-registration.yaml $MX_TEST_SYNAPSE_DIR/data/
158 after :
169 # Wait until Synapse is ready
1710 - until curl localhost:9999 --stderr /dev/null > /dev/null; do echo "Waiting for Synapse..."; sleep 1s; done
2215
2316down :
2417 finally :
25- - docker stop mjolnir-test-postgres || true
2618 - docker stop mjolnir-test-reverse-proxy || true
2719
2820modules :
@@ -44,9 +36,6 @@ homeserver:
4436 enable_registration : true
4537 enable_registration_without_verification : true
4638
47- app_service_config_files :
48- - " /data/mjolnir-registration.yaml"
49-
5039 # We remove rc_message so we can test rate limiting,
5140 # but we keep the others because of https://github.com/matrix-org/synapse/issues/11785
5241 # and we don't want to slow integration tests down.
@@ -81,18 +70,7 @@ homeserver:
8170 msc3823_account_suspension : true
8271
8372
84- # Creating a few users simplifies testing.
73+ # Creating an admin user simplifies testing.
8574users :
8675 - localname : admin
8776 admin : true
88- rooms :
89- - public : true
90- name : " List of users"
91- alias : access-control-list
92- members :
93- - admin
94- - user_in_mjolnir_for_all
95- # This user can use Mjölnir-for-all
96- - localname : user_in_mjolnir_for_all
97- # This user cannot
98- - localname : user_regular
0 commit comments