Skip to content

Commit

Permalink
Molecule tests refactory
Browse files Browse the repository at this point in the history
This customizations are made:
- Dropped support for EL8 and EL9 due to EOL
- Dropped support for Debian Bullseye due to EOL
- Debian stable support added
- Replaced python image with debian, due to inconsistent Python versions
- Changed molecule driver to containers
  - works with Podman and Docker
  • Loading branch information
wsmirnow committed Dec 19, 2024
1 parent e8749c1 commit 9f038b6
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 23 deletions.
5 changes: 3 additions & 2 deletions .dev_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ ansible
ansible-lint
yamllint
molecule
molecule-docker
molecule-podman
molecule-plugins
molecule-plugins[docker]
molecule-plugins[podman]
2 changes: 1 addition & 1 deletion .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ jobs:
run: pip3 install -r .dev_requirements.txt

- name: test playbook
run: molecule test --driver-name docker
run: molecule test
env:
PY_COLORS: '1'
2 changes: 1 addition & 1 deletion molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Converge
hosts: all
vars:
opencast_version_major: 12
opencast_version_major: 17
opencast_repository_enabled_release: true
opencast_repository_enabled_testing: true
tasks:
Expand Down
30 changes: 12 additions & 18 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,35 @@
---
dependency:
name: galaxy
enabled: false
driver:
name: podman
name: containers
platforms:
- name: oc_repository_centos_7
image: docker.io/library/centos:7
pre_build_image: true
- name: oc_repository_centos_8
image: quay.io/centos/centos:stream8
- name: oc_repository_centos_9
image: quay.io/centos/centos:stream9
pre_build_image: false
command: /sbin/init
tmpfs:
- /run
- /tmp
"/run": "rw,noexec,nosuid,nodev"
"/tmp": "exec"
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- name: oc_repository_centos_9
image: quay.io/centos/centos:stream9
- name: oc_repository_debian
image: docker.io/debian:stable
pre_build_image: false
command: /sbin/init
tmpfs:
- /run
- /tmp
"/run": "rw,noexec,nosuid,nodev"
"/tmp": "exec"
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- name: oc_repository_debian
image: docker.io/library/python:bullseye
pre_build_image: true
- name: oc_repository_ubuntu
image: docker.io/ubuntu:latest
pre_build_image: false
privileged: true
command: /sbin/init
tmpfs:
- /run
- /tmp
"/run": "rw,noexec,nosuid,nodev"
"/tmp": "exec"
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
lint: |
Expand Down
2 changes: 1 addition & 1 deletion molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
hosts: all
gather_facts: true
vars:
opencast_version_major: 12
opencast_version_major: 17
tasks:
- name: Test if opencast is available
ansible.builtin.package:
Expand Down

0 comments on commit 9f038b6

Please sign in to comment.