| @@ -49,6 +49,7 @@ provisioner: | |||||
| matrix_bridge_mautrix_bluesky_appservice_bot_username: molecule-blueskybot | matrix_bridge_mautrix_bluesky_appservice_bot_username: molecule-blueskybot | ||||
| matrix_bridge_mautrix_bluesky_appservice_bot_displayname: Molecule Bluesky Bot | matrix_bridge_mautrix_bluesky_appservice_bot_displayname: Molecule Bluesky Bot | ||||
| matrix_bridge_mautrix_bluesky_appservice_bot_avatar: mxc://molecule.local/blueskyAvatarFixture | matrix_bridge_mautrix_bluesky_appservice_bot_avatar: mxc://molecule.local/blueskyAvatarFixture | ||||
| matrix_bridge_mautrix_bluesky_network_displayname_template: "{% raw %}{{ .Username }}{% endraw %} via Molecule" | |||||
| matrix_bridge_mautrix_bluesky_bridge_command_prefix: "!molecule-bluesky" | matrix_bridge_mautrix_bluesky_bridge_command_prefix: "!molecule-bluesky" | ||||
| matrix_bridge_mautrix_bluesky_bridge_permissions: | matrix_bridge_mautrix_bluesky_bridge_permissions: | ||||
| "*": relay | "*": relay | ||||
| @@ -179,6 +179,7 @@ | |||||
| - name: Assert the rendered configuration carries non-default bridge behavior | - name: Assert the rendered configuration carries non-default bridge behavior | ||||
| ansible.builtin.assert: | ansible.builtin.assert: | ||||
| that: | that: | ||||
| - mautrix_bluesky_config.network.displayname_template == matrix_bridge_mautrix_bluesky_network_displayname_template | |||||
| - mautrix_bluesky_config.bridge.command_prefix == matrix_bridge_mautrix_bluesky_bridge_command_prefix | - mautrix_bluesky_config.bridge.command_prefix == matrix_bridge_mautrix_bluesky_bridge_command_prefix | ||||
| - mautrix_bluesky_config.bridge.permissions['*'] == 'relay' | - mautrix_bluesky_config.bridge.permissions['*'] == 'relay' | ||||
| - mautrix_bluesky_config.bridge.permissions[matrix_bridge_mautrix_bluesky_homeserver_domain] == 'admin' | - mautrix_bluesky_config.bridge.permissions[matrix_bridge_mautrix_bluesky_homeserver_domain] == 'admin' | ||||
| @@ -7,10 +7,8 @@ network: | |||||
| get_proxy_url: null | get_proxy_url: null | ||||
| # Displayname template for Bluesky users. | # Displayname template for Bluesky users. | ||||
| # {% raw %} | |||||
| # {{ .DisplayName }} is replaced with the display name of the Bluesky user. | |||||
| # {{ .Username }} is replaced with the username of the Bluesky user. | |||||
| # {% endraw %} | |||||
| # {% raw %}{{ .DisplayName }}{% endraw %} is replaced with the display name of the Bluesky user. | |||||
| # {% raw %}{{ .Username }}{% endraw %} is replaced with the username of the Bluesky user. | |||||
| displayname_template: {{ matrix_bridge_mautrix_bluesky_network_displayname_template | to_json }} | displayname_template: {{ matrix_bridge_mautrix_bluesky_network_displayname_template | to_json }} | ||||
| # Maximum number of conversations to sync on startup | # Maximum number of conversations to sync on startup | ||||