fix(api): include repo ansible roles path
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import inspect
|
||||
import os
|
||||
from datetime import UTC, datetime, timedelta
|
||||
from pathlib import Path
|
||||
from types import SimpleNamespace
|
||||
@@ -1418,6 +1419,9 @@ def test_ansible_check_mode_command_uses_check_diff_and_selected_ssh_transport(t
|
||||
assert str(repair_key) in spec.command[-1]
|
||||
assert str(known_hosts) in spec.command[-1]
|
||||
assert "apply" not in " ".join(spec.command)
|
||||
assert str((playbook_root / "roles").resolve()) in spec.env[
|
||||
"ANSIBLE_ROLES_PATH"
|
||||
].split(os.pathsep)
|
||||
|
||||
|
||||
def test_ansible_apply_command_uses_controlled_apply_without_check(tmp_path: Path) -> None:
|
||||
@@ -1448,6 +1452,9 @@ def test_ansible_apply_command_uses_controlled_apply_without_check(tmp_path: Pat
|
||||
assert "ansible_ssh_private_key_file" in spec.command[-1]
|
||||
assert str(repair_key) in spec.command[-1]
|
||||
assert str(known_hosts) in spec.command[-1]
|
||||
assert str((playbook_root / "roles").resolve()) in spec.env[
|
||||
"ANSIBLE_ROLES_PATH"
|
||||
].split(os.pathsep)
|
||||
|
||||
|
||||
def test_ansible_controlled_apply_builds_auto_repair_receipt() -> None:
|
||||
|
||||
Reference in New Issue
Block a user