diff --git a/README.md b/README.md index 794f9ad..ee9fa07 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ The following should be present on the target system | matrix_synapse_dh_path | "{{ matrix_synapse_base_path }}/tls/{{ matrix_server_name }}.dh" | | matrix_synapse_baseurl | "https://{{ matrix_server_name }}" | | matrix_synapse_signing_key_path | "{{ matrix_synapse_base_path }}/ssl/{{ matrix_server_name }}.signing.key" | -| matrix_synapse_version | "v0.99.1.1" | +| matrix_synapse_version | "v0.99.3" | | matrix_synapse_log_days_keep | 30 | | matrix_synapse_deployment_method | pip | Either pip or docker [¹](#footnote_1) | | matrix_synapse_supervision_method | systemd | Either systemd, runit or docker [¹](#footnote_1) | diff --git a/defaults/main.yml b/defaults/main.yml index b9269c5..6742314 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -7,7 +7,7 @@ matrix_synapse_secrets_path: "{{ matrix_synapse_base_path }}/secrets" matrix_synapse_dh_path: "{{ matrix_synapse_base_path }}/tls/{{ matrix_server_name }}.dh" matrix_synapse_baseurl: "https://{{ matrix_server_name }}" matrix_synapse_signing_key_path: "{{ matrix_synapse_base_path }}/tls/{{ matrix_server_name }}.signing.key" -matrix_synapse_version: "v0.99.2" +matrix_synapse_version: "v0.99.3" matrix_synapse_log_days_keep: 30 matrix_synapse_skip_tls: false matrix_synapse_pid_file: "{{ matrix_synapse_base_path }}/synapse.pid" diff --git a/tests/test-docker.yml b/tests/test-docker.yml index 98d52ef..9a8117d 100644 --- a/tests/test-docker.yml +++ b/tests/test-docker.yml @@ -1,6 +1,17 @@ --- - hosts: all become: true + tasks: + - name: Check if the api returns the correct version + uri: + url: "http://localhost:8008/_matrix/federation/v1/version" + return_content: true + register: api_version + + - name: Check returned api version + fail: > + Return value is not as expected {{ api_version }} + when: matrix_synapse_version != "v"~(api_version.content | from_json).server.version vars: dbname: synapse dbuser: synapse_user diff --git a/tests/test-pip.yml b/tests/test-pip.yml index f690b19..28d24f7 100644 --- a/tests/test-pip.yml +++ b/tests/test-pip.yml @@ -5,6 +5,17 @@ dbname: synapse dbuser: synapse_user dbpw: synapse_password + tasks: + - name: Check if the api returns the correct version + uri: + url: "http://localhost:8008/_matrix/federation/v1/version" + return_content: true + register: api_version + + - name: Check returned api version + fail: > + Return value is not as expected {{ api_version }} + when: matrix_synapse_version != "v"~(api_version.content | from_json).server.version roles: - role: geerlingguy.pip - role: geerlingguy.postgresql