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. Change-Id: I39b99208b4991c44e0cc9c489e7b34d80ab94855 Signed-off-by: Dmitriy Rabotyagov <dmitriy.rabotyagov@cleura.com>
This commit is contained in:
@@ -9,7 +9,7 @@ driver:
|
||||
|
||||
platforms:
|
||||
- name: "haproxy-${MOLECULE_SCENARIO_NAME}"
|
||||
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:-""}
|
||||
pre_build_image: true
|
||||
privileged: true
|
||||
|
||||
@@ -8,6 +8,9 @@ collections:
|
||||
- name: community.crypto
|
||||
source: https://github.com/ansible-collections/community.crypto
|
||||
type: git
|
||||
- name: https://opendev.org/openstack/openstack-ansible-plugins
|
||||
type: git
|
||||
version: master
|
||||
- name: ansible.utils
|
||||
source: https://github.com/ansible-collections/ansible.utils
|
||||
type: git
|
||||
|
||||
1
tests/roles/haproxy_server
Symbolic link
1
tests/roles/haproxy_server
Symbolic link
@@ -0,0 +1 @@
|
||||
../../
|
||||
@@ -18,4 +18,4 @@
|
||||
vars_files:
|
||||
- test-vars.yml
|
||||
roles:
|
||||
- "{{ playbook_dir | dirname | basename }}"
|
||||
- haproxy_server
|
||||
|
||||
@@ -9,4 +9,4 @@
|
||||
- haproxy_service_name: test_absent_service
|
||||
state: absent
|
||||
roles:
|
||||
- "{{ playbook_dir | dirname | basename }}"
|
||||
- haproxy_server
|
||||
|
||||
Reference in New Issue
Block a user