fix: make sure old versions of pytest find helper

Signed-off-by: gardar <gardar@users.noreply.github.com>
This commit is contained in:
gardar 2024-09-27 13:32:19 +00:00
parent 3b679c9161
commit 4e98e1f597
No known key found for this signature in database
GPG key ID: 00872BAF59D98753
4 changed files with 6 additions and 1 deletions

View file

@ -63,6 +63,8 @@ verifier:
name: testinfra name: testinfra
additional_files_or_dirs: additional_files_or_dirs:
- "../../../../../.testinfra/testinfra_helpers.py" - "../../../../../.testinfra/testinfra_helpers.py"
env:
PYTHONPATH: "${MOLECULE_PROJECT_DIRECTORY}/../../.testinfra:${PYTHONPATH}"
provisioner: provisioner:
playbooks: playbooks:
converge: "${MOLECULE_PROJECT_DIRECTORY}/../../.config/molecule/converge.yml" converge: "${MOLECULE_PROJECT_DIRECTORY}/../../.config/molecule/converge.yml"

View file

@ -1,3 +1,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import os import os
import testinfra import testinfra

View file

@ -3,6 +3,7 @@ __metaclass__ = type
import yaml import yaml
from testinfra_helpers import get_target_hosts from testinfra_helpers import get_target_hosts
import os
import pytest import pytest
testinfra_hosts = get_target_hosts() testinfra_hosts = get_target_hosts()

View file

@ -13,7 +13,6 @@
ansible.builtin.get_url: ansible.builtin.get_url:
url: "https://raw.githubusercontent.com/prometheus/snmp_exporter/v{{ snmp_exporter_version }}/snmp.yml" url: "https://raw.githubusercontent.com/prometheus/snmp_exporter/v{{ snmp_exporter_version }}/snmp.yml"
dest: /etc/snmp_exporter/snmp.yml dest: /etc/snmp_exporter/snmp.yml
validate_certs: false
owner: root owner: root
group: root group: root
mode: 0644 mode: 0644