Dmitriy Rabotyagov 611d36434c Replace functional tests with molecule
As effort to sunset tests repo, we replace functional test that were
running for the role with a molecule.
Due to docker limitations, I had to comment out swap tests, as while
it's possible to create a container with swap, I didn't find a way to
`swapon` from inside of the container.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/938571
Change-Id: I80297a01ff6e820591325529c3457302e021469a
2025-01-08 16:27:39 +01:00

37 lines
766 B
YAML

---
dependency:
name: galaxy
options:
requirements-file: requirements.yml
force: ${GALAXY_FORCE:-false}
driver:
name: docker
platforms:
- name: "systemd-mount-${MOLECULE_SCENARIO_NAME}"
image: "${DOCKER_REGISTRY:-quay.io/gotmax23}/${DOCKER_IMAGE_TAG:-debian-systemd:bookworm}"
command: ${DOCKER_COMMAND:-""}
pre_build_image: true
privileged: true
systemd: true
groups:
- mount_hosts
volumes:
- /tmp/systemd_mount_nfs:/srv/nfs/test:rw
provisioner:
name: ansible
lint:
name: ansible-lint
playbooks:
prepare: ../../tests/prepare.yml
converge: ../../tests/test.yml
verify: ../../tests/verify.yml
config_options:
defaults:
inject_facts_as_vars: false
scenario:
name: default