Symlink the role into tests
Ansible Core 2.19 has a different set of default paths to look for roles so molecule test is failing now. Let's create a symlink of the role into the tests repo for the test playbook to find content of the role easily. Depends-On: https://review.opendev.org/c/zuul/zuul-jobs/+/979136 Change-Id: Iad52e7191d23d3f6d02cec260cb85c0bc4a894b4 Signed-off-by: Dmitriy Rabotyagov <dmitriy.rabotyagov@cleura.com>
This commit is contained in:
@@ -9,7 +9,7 @@ platforms:
|
||||
- name: rabbitmq01
|
||||
groups:
|
||||
- rabbitmq_all
|
||||
image: "${DOCKER_REGISTRY:-quay.io/gotmax23}/${DOCKER_IMAGE_TAG:-debian-systemd:bookworm}"
|
||||
image: "${DOCKER_REGISTRY:-quay.io/gotmax23}/${DOCKER_IMAGE_TAG:-debian-systemd:trixie}"
|
||||
command: ${DOCKER_COMMAND:-""}
|
||||
privileged: true
|
||||
pre_build_image: true
|
||||
@@ -23,7 +23,7 @@ platforms:
|
||||
- name: rabbitmq02
|
||||
groups:
|
||||
- rabbitmq_all
|
||||
image: "${DOCKER_REGISTRY:-quay.io/gotmax23}/${DOCKER_IMAGE_TAG:-debian-systemd:bookworm}"
|
||||
image: "${DOCKER_REGISTRY:-quay.io/gotmax23}/${DOCKER_IMAGE_TAG:-debian-systemd:trixie}"
|
||||
command: ${DOCKER_COMMAND:-""}
|
||||
privileged: true
|
||||
pre_build_image: true
|
||||
@@ -37,7 +37,7 @@ platforms:
|
||||
- name: rabbitmq03
|
||||
groups:
|
||||
- rabbitmq_all
|
||||
image: "${DOCKER_REGISTRY:-quay.io/gotmax23}/${DOCKER_IMAGE_TAG:-debian-systemd:bookworm}"
|
||||
image: "${DOCKER_REGISTRY:-quay.io/gotmax23}/${DOCKER_IMAGE_TAG:-debian-systemd:trixie}"
|
||||
command: ${DOCKER_COMMAND:-""}
|
||||
privileged: true
|
||||
pre_build_image: true
|
||||
@@ -67,10 +67,10 @@ provisioner:
|
||||
lint:
|
||||
name: ansible-lint
|
||||
playbooks:
|
||||
prepare: prepare.yml
|
||||
prepare: ../../tests/prepare.yml
|
||||
converge: ../../tests/test.yml
|
||||
verify: ../../tests/test-rabbitmq-functional.yml
|
||||
cleanup: cleanup.yml
|
||||
cleanup: ../../tests/cleanup.yml
|
||||
config_options:
|
||||
defaults:
|
||||
inject_facts_as_vars: false
|
||||
|
||||
1
tests/roles/rabbitmq_server
Symbolic link
1
tests/roles/rabbitmq_server
Symbolic link
@@ -0,0 +1 @@
|
||||
../../
|
||||
@@ -17,4 +17,4 @@
|
||||
hosts: rabbitmq_all
|
||||
user: root
|
||||
roles:
|
||||
- "{{ playbook_dir | dirname | basename }}"
|
||||
- "rabbitmq_server"
|
||||
|
||||
Reference in New Issue
Block a user