fluffychat/scripts/integration-prepare-homeserver.sh
TheOneWithTheBraid 3e3858d729 feat: introduce extended integration tests
- test both FLOSS and non-floss builds
- test on Synapse, Dendrite and Conduit
- remove Synapse-specific test
- add static Release mode app launch test

Signed-off-by: TheOneWithTheBraid <the-one@with-the-braid.cf>
2022-07-17 18:27:23 +02:00

8 lines
705 B
Bash
Executable File

#!/usr/bin/env bash
IP_ADDRESS="$(drill docker | grep -m 1 -P "\d+\.\d+\.\d+.\d+" | awk -F ' ' '{print $NF}')"
sed -i "s/10.0.2.2/$IP_ADDRESS/g" integration_test/users.dart
curl -XPOST -d '{"username":"alice", "password":"AliceInWonderland", "inhibit_login":true, "auth": {"type":"m.login.dummy"}}' "http://$IP_ADDRESS:8008/_matrix/client/r0/register"
curl -XPOST -d '{"username":"bob", "password":"JoWirSchaffenDas", "inhibit_login":true, "auth": {"type":"m.login.dummy"}}' "http://$IP_ADDRESS:8008/_matrix/client/r0/register"
curl -XPOST -d '{"username":"trudy", "password":"HaveIBeenPwned", "inhibit_login":true, "auth": {"type":"m.login.dummy"}}' "http://$IP_ADDRESS:8008/_matrix/client/r0/register"