fix tests
This commit is contained in:
parent
52b5ff87ea
commit
0819503d8b
2 changed files with 17 additions and 0 deletions
|
@ -11,6 +11,22 @@ WORKDIR $SYNAPSE_CONFIG_DIR
|
||||||
RUN chown -R 991:991 . \
|
RUN chown -R 991:991 . \
|
||||||
&& /start.py generate \
|
&& /start.py generate \
|
||||||
&& sed -i 's=/data=/srv=;s=8008=80=;s=#sup=sup=;' homeserver.yaml \
|
&& sed -i 's=/data=/srv=;s=8008=80=;s=#sup=sup=;' homeserver.yaml \
|
||||||
|
&& echo "" >> homeserver.yaml \
|
||||||
|
&& echo "rc_message:" >> homeserver.yaml \
|
||||||
|
&& echo " burst_count: 1000" >> homeserver.yaml \
|
||||||
|
&& echo "rc_registration:" >> homeserver.yaml \
|
||||||
|
&& echo " burst_count: 1000" >> homeserver.yaml \
|
||||||
|
&& echo "rc_registration_token_validity:" >> homeserver.yaml \
|
||||||
|
&& echo " burst_count: 1000" >> homeserver.yaml \
|
||||||
|
&& echo "rc_login:" >> homeserver.yaml \
|
||||||
|
&& echo " address:" >> homeserver.yaml \
|
||||||
|
&& echo " burst_count: 1000" >> homeserver.yaml \
|
||||||
|
&& echo " account:" >> homeserver.yaml \
|
||||||
|
&& echo " burst_count: 1000" >> homeserver.yaml \
|
||||||
|
&& echo " failed_attempts:" >> homeserver.yaml \
|
||||||
|
&& echo " burst_count: 1000" >> homeserver.yaml \
|
||||||
|
&& echo "rc_joins:" >> homeserver.yaml \
|
||||||
|
&& echo " burst_count: 1000" >> homeserver.yaml \
|
||||||
&& python -m synapse.app.homeserver --config-path homeserver.yaml --generate-keys
|
&& python -m synapse.app.homeserver --config-path homeserver.yaml --generate-keys
|
||||||
|
|
||||||
RUN pip install --no-cache-dir markdown matrix-nio httpx coverage
|
RUN pip install --no-cache-dir markdown matrix-nio httpx coverage
|
||||||
|
|
|
@ -127,3 +127,4 @@ class GithubFormatterTest(unittest.IsolatedAsyncioTestCase):
|
||||||
).json(),
|
).json(),
|
||||||
{"status": 401, "ret": "Invalid SHA-256 HMAC digest"},
|
{"status": 401, "ret": "Invalid SHA-256 HMAC digest"},
|
||||||
)
|
)
|
||||||
|
await client.close()
|
||||||
|
|
Loading…
Reference in a new issue