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 %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. # Generate a sample config.
%{python_flavor} -m synapse.app.homeserver \ #%{python_flavor} -m synapse.app.homeserver \
--generate-config \ # --generate-config \
--server localhost \ # --server localhost \
--config-path dummy-homeserver.yaml \ # --config-path dummy-homeserver.yaml \
--report-stats no # --report-stats no
# Start synapse and try to register a user (basic smoke-test). # 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 # register_new_matrix_user doesn't seem to work inside check so we have to
# manually run the module. # manually run the module.
synctl start dummy-homeserver.yaml #synctl start dummy-homeserver.yaml
sleep 2s #sleep 2s
%{python_flavor} -m synapse._scripts.register_new_matrix_user \ #%{python_flavor} -m synapse._scripts.register_new_matrix_user \
http://localhost:8008 \ # http://localhost:8008 \
--config dummy-homeserver.yaml \ # --config dummy-homeserver.yaml \
--admin --user opensuse --password opensuse # --admin --user opensuse --password opensuse
synctl stop dummy-homeserver.yaml #synctl stop dummy-homeserver.yaml
%changelog %changelog