summaryrefslogtreecommitdiffstats
path: root/ansible_collections/cloud/common/tests/unit/plugins
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:35 +0000
commit7fec0b69a082aaeec72fee0612766aa42f6b1b4d (patch)
treeefb569b86ca4da888717f5433e757145fa322e08 /ansible_collections/cloud/common/tests/unit/plugins
parentReleasing progress-linux version 7.7.0+dfsg-3~progress7.99u1. (diff)
downloadansible-7fec0b69a082aaeec72fee0612766aa42f6b1b4d.tar.xz
ansible-7fec0b69a082aaeec72fee0612766aa42f6b1b4d.zip
Merging upstream version 9.4.0+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/cloud/common/tests/unit/plugins')
-rw-r--r--ansible_collections/cloud/common/tests/unit/plugins/module_utils/turbo/test_turbo_module.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ansible_collections/cloud/common/tests/unit/plugins/module_utils/turbo/test_turbo_module.py b/ansible_collections/cloud/common/tests/unit/plugins/module_utils/turbo/test_turbo_module.py
index 00756a0d3..6401046a0 100644
--- a/ansible_collections/cloud/common/tests/unit/plugins/module_utils/turbo/test_turbo_module.py
+++ b/ansible_collections/cloud/common/tests/unit/plugins/module_utils/turbo/test_turbo_module.py
@@ -4,7 +4,6 @@
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# py38 only, See: https://github.com/PyCQA/pylint/issues/2976
-from posixpath import dirname
from unittest.mock import Mock, ANY # pylint: disable=syntax-error
import time
import pytest
@@ -12,6 +11,8 @@ import socket
import subprocess
import os
import ansible.module_utils.basic
+from pathlib import Path
+import sys
from ansible_collections.cloud.common.plugins.module_utils.turbo.module import (
get_collection_name_from_path,
expand_argument_specs_aliases,
@@ -79,6 +80,9 @@ def test_start_daemon_from_lookup(monkeypatch):
def test_start_daemon_with_no_mock(tmp_path):
+ # This is an ugly fix to get this to pass in CI
+ p = Path.cwd().parents
+ sys.path.insert(0, str(p[2]))
my_socket = tmp_path / "socket"
turbo_socket = turbo_common.AnsibleTurboSocket(socket_path=str(my_socket), ttl=1)
assert turbo_socket.start_server()