Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions src/pytest_ansible_network_integration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,15 +317,16 @@ def ansible_project(
_print(f"Playbook path: {playbook_path}")

return AnsibleProject(
playbook=playbook_path,
inventory=inventory_path,
collection_doc_cache=tmp_path / "collection_doc_cache.db",
directory=tmp_path,
role=integration_test_path.name,
inventory=inventory_path,
log_file=Path.home() / "test_logs" / f"{integration_test_path.name}.log",
playbook=playbook_path,
playbook_artifact=Path.home()
/ "test_logs"
/ "{playbook_status}"
/ f"{integration_test_path.name}.json",
role=integration_test_path.name,
)


Expand Down Expand Up @@ -404,12 +405,13 @@ def localhost_project(
_print(f"Playbook path: {playbook_path}")

return AnsibleProject(
playbook=playbook_path,
collection_doc_cache=tmp_path / "collection_doc_cache.db",
directory=tmp_path,
role=integration_test_path.name,
log_file=Path.home() / "test_logs" / f"{integration_test_path.name}.log",
playbook=playbook_path,
playbook_artifact=Path.home()
/ "test_logs"
/ "{playbook_status}"
/ f"{integration_test_path.name}.json",
role=integration_test_path.name,
)
1 change: 1 addition & 0 deletions src/pytest_ansible_network_integration/defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
class AnsibleProject:
"""Ansible project."""

collection_doc_cache: Path
directory: Path
log_file: Path
playbook_artifact: Path
Expand Down