Adding molecule unit tests

This commit is contained in:
Ian Roddis
2026-03-23 15:15:27 -03:00
parent 72f171e88f
commit 0bf5dd0024
75 changed files with 2092 additions and 2 deletions
+4 -1
View File
@@ -19,6 +19,7 @@
community.docker.docker_compose_v2:
project_src: "{{ nextcloud_data_dir }}"
state: present
when: not (molecule_test_mode | default(false))
- name: Wait for Nextcloud to be ready
ansible.builtin.command:
@@ -28,6 +29,7 @@
retries: 30
delay: 10
changed_when: false
when: not (molecule_test_mode | default(false))
- name: Copy tenant logo into Nextcloud container volume
ansible.builtin.copy:
@@ -43,9 +45,10 @@
- { key: name, value: "{{ tenant_name }}" }
- { key: color, value: "{{ tenant_primary_color | default('#2563eb') }}" }
changed_when: false
when: not (molecule_test_mode | default(false))
- name: Configure Nextcloud theming — logo
ansible.builtin.command:
cmd: docker exec -u www-data nextcloud php occ theming:config logo /var/www/html/sovereign-logo.png
when: tenant_logo_local_path | default('') != ''
when: tenant_logo_local_path | default('') != '' and not (molecule_test_mode | default(false))
changed_when: false