Solved integration tests

This commit is contained in:
Kevin Veen-Birkenbach 2025-05-15 17:22:58 +02:00
parent 77e32cc5a6
commit c492c824b7
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
37 changed files with 12 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# This file is also used by docker-matrix-compose
# This file is also used by docker-matrix
- name: "Display all database variables"
debug:

View File

@ -0,0 +1 @@
application_id: elk

View File

@ -0,0 +1 @@
application_id: jenkins

View File

@ -1,2 +0,0 @@
---
local_repository_directory: "{{role_path}}/matrix-docker-ansible-deploy"

View File

@ -1,4 +1,4 @@
# Matrix (Ansible - Deprecated)
# Matrix (Deprecated)
## Warning
This role is experimental and may not be actively maintained. Use it with caution in production environments. For a more stable deployment, please consider using the Matrix Compose role or another alternative solution.

View File

@ -0,0 +1,3 @@
---
local_repository_directory: "{{role_path}}/matrix-docker-ansible-deploy"
application_id: "matrix-deprecated" # Just added to catch integration test exceptions. This role is anyhow deprecated.

View File

@ -0,0 +1 @@
application_id: xmpp

View File

@ -148,7 +148,7 @@
- name: setup matrix with flavor 'compose'
include_role:
name: docker-matrix-compose
name: docker-matrix
when: applications.matrix.role == 'compose' and ("matrix" in group_names)
- name: setup open project instances

View File

@ -11,6 +11,9 @@ class TestApplicationIdConsistency(unittest.TestCase):
failed_roles = []
for role_path in ROLES_DIR.iterdir():
if role_path.name in ["docker-compose", "docker-central-database", "docker-repository-setup"]:
continue
if role_path.is_dir() and role_path.name.startswith("docker-"):
expected_id = role_path.name.replace("docker-", "", 1)
vars_file = role_path / "vars" / "main.yml"