Smoke tests for the Synapse snap
First, build and install the snap:
$ sudo apt install git snapcraft
$ git clone https://github.com/matrix-org/package-synapse-snap
$ cd package-synapse-snap
$ snapcraft
$ sudo snap install *.snap --dangerous
Set up a homeserver:
$ synapse.homeserver --generate-config --server-name machine1.local --config-path homeserver.yaml --report-stats=yes
A config file has been generated in 'homeserver.yaml' for server name 'machine1.local' with corresponding SSL keys and self-signed certificates. Please review this file and customise it to your needs.
If this server name is incorrect, you will need to regenerate the SSL certificates
Start the server:
$ synapse.synctl start
Starting ...
[...]
started synapse.app.homeserver('homeserver.yaml')
Register a user:
$ synapse.register-new-matrix-user -c homeserver.yaml https://localhost:8448
New user localpart [$user]:
Password:
Confirm password:
Make admin [no]:
Login to the demo web client:
1. Open the browser.
2. Go to https://localhost:8448
3. Enter your `$user` as the `Matrix ID`.
4. Enter your `$password`.
5. Click the `Login` button.
* Check that you are now in the main page.
Start a chat:
1. In the main page, enter `@$user:test-chat` in the `Start chat` textfield.
2. Click the `Start` button.
* Check that the chat was added to the `Recent conversations` list.
Join a chat:
1. In the `Recent conversations` list, click the chat just added.
* Check that you are now in the chat page.
2. Send a message to the chat.
Tested in an clean ubuntu xenial virtual machine with kvm.
Starting a chat shows an error dialog. This is written to the log:
This doesn't seem to break anything. I can access the chat.