Files
matrix-docker-ansible-deploy/roles/custom/matrix-bridge-mautrix-gmessages/molecule/default/molecule.yml
T

96 lines
4.5 KiB
YAML

# SPDX-FileCopyrightText: 2026 Slavi Pantaleev
#
# SPDX-License-Identifier: AGPL-3.0-or-later
---
dependency:
name: galaxy
options:
requirements-file: requirements.yml
force: true
driver:
name: docker
platforms:
- name: mautrix-gmessages-${MOLECULE_DISTRO:-ubuntu2604}-default
image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2604}-ansible:latest"
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: true
pre_build_image: true
provisioner:
name: ansible
config_options:
defaults:
callback_result_format: yaml
inventory:
group_vars:
all:
matrix_bridge_mautrix_gmessages_container_network: mautrix-gmessages-molecule
# The stub prepare.yml starts is not a real homeserver, and the scenario carries
# no Google account or paired Android device. That is the third-party boundary.
matrix_bridge_mautrix_gmessages_homeserver_address: http://matrix.molecule.local:8008
matrix_bridge_mautrix_gmessages_homeserver_domain: molecule.local
# Postgres is the normal deployment path. Non-default database and user names make
# the resulting schema evidence that the role composed and supplied this connection.
matrix_bridge_mautrix_gmessages_database_engine: postgres
matrix_bridge_mautrix_gmessages_database_hostname: matrix-postgres-molecule
matrix_bridge_mautrix_gmessages_database_name: molecule_gmessages
matrix_bridge_mautrix_gmessages_database_username: molecule_gmessages
matrix_bridge_mautrix_gmessages_database_password: molecule_pg_password_9d268a
# Test-only fixtures which must reach both config.yaml and registration.yaml.
matrix_bridge_mautrix_gmessages_appservice_token: molecule_gmessages_as_token_c8d734
matrix_bridge_mautrix_gmessages_homeserver_token: molecule_gmessages_hs_token_3a9e51
# All differ from the role defaults, allowing parsed checks to prove role rendering.
matrix_bridge_mautrix_gmessages_appservice_bot_username: molecule-gmessagesbot
matrix_bridge_mautrix_gmessages_command_prefix: "!molecule-gmessages"
matrix_bridge_mautrix_gmessages_logging_level: info
matrix_bridge_mautrix_gmessages_federate_rooms: false
matrix_bridge_mautrix_gmessages_bridge_personal_filtering_spaces: false
matrix_bridge_mautrix_gmessages_backfill_enabled: false
matrix_bridge_mautrix_gmessages_backfill_max_initial_messages: 17
matrix_bridge_mautrix_gmessages_backfill_max_catchup_messages: 29
matrix_bridge_mautrix_gmessages_backfill_unread_hours_threshold: 61
matrix_bridge_mautrix_gmessages_backfill_threads_max_initial_messages: 7
matrix_bridge_mautrix_gmessages_provisioning_shared_secret: molecule_provisioning_secret_455c91
matrix_bridge_mautrix_gmessages_network_displayname_template: "{% raw %}{{or .PhoneNumber .FullName}} (Molecule){% endraw %}"
matrix_bridge_mautrix_gmessages_appservice_username_template: "{% raw %}molecule_gmessages_{{.}}{% endraw %}"
# Traefik is not started. These values exercise both the public address consumed by
# the bridge and the exposure labels consumed by Docker.
matrix_bridge_mautrix_gmessages_exposure_enabled: true
matrix_bridge_mautrix_gmessages_exposure_hostname: gmessages-api.molecule.local
matrix_bridge_mautrix_gmessages_exposure_path_prefix: /bridges/gmessages-api
matrix_bridge_mautrix_gmessages_scheme: http
matrix_bridge_mautrix_gmessages_container_labels_traefik_entrypoints: web
matrix_bridge_mautrix_gmessages_container_labels_additional_labels: |
molecule.gmessages.coverage=enabled
# verify.yml is a separate play, where role defaults are out of scope.
matrix_bridge_mautrix_gmessages_base_path: /matrix/mautrix-gmessages
matrix_bridge_mautrix_gmessages_config_path: /matrix/mautrix-gmessages/config
matrix_bridge_mautrix_gmessages_data_path: /matrix/mautrix-gmessages/data
env:
# Workaround for https://github.com/ansible/molecule/issues/4391
ANSIBLE_ROLES_PATH: ${MOLECULE_PROJECT_DIRECTORY}/../..:/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:${ANSIBLE_HOME:-~/.ansible}/roles
scenario:
test_sequence:
- dependency
- cleanup
- destroy
- syntax
- create
- prepare
- converge
- idempotence
- verify
- cleanup
- destroy
verifier:
name: ansible