Oliver Kurz 2020-02-06 16:49:25 +00:00 committed by Git OBS Bridge
parent 402688c118
commit 2aa555d25e

View File

@ -50,22 +50,24 @@ touch %{_sourcedir}/%{pkgname}
%check
# Following tests disabled which would need to be run as 'synapse' user which
# we can not do easily (or at all) within RPM
# Generate a sample config.
%{python_flavor} -m synapse.app.homeserver \
--generate-config \
--server localhost \
--config-path dummy-homeserver.yaml \
--report-stats no
#%{python_flavor} -m synapse.app.homeserver \
# --generate-config \
# --server localhost \
# --config-path dummy-homeserver.yaml \
# --report-stats no
# Start synapse and try to register a user (basic smoke-test).
# register_new_matrix_user doesn't seem to work inside check so we have to
# manually run the module.
synctl start dummy-homeserver.yaml
sleep 2s
%{python_flavor} -m synapse._scripts.register_new_matrix_user \
http://localhost:8008 \
--config dummy-homeserver.yaml \
--admin --user opensuse --password opensuse
synctl stop dummy-homeserver.yaml
#synctl start dummy-homeserver.yaml
#sleep 2s
#%{python_flavor} -m synapse._scripts.register_new_matrix_user \
# http://localhost:8008 \
# --config dummy-homeserver.yaml \
# --admin --user opensuse --password opensuse
#synctl stop dummy-homeserver.yaml
%changelog