Skip to content

Commit abf13d5

Browse files
committed
Add collection odc cache path
1 parent be67047 commit abf13d5

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/pytest_ansible_network_integration/__init__.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -317,15 +317,16 @@ def ansible_project(
317317
_print(f"Playbook path: {playbook_path}")
318318

319319
return AnsibleProject(
320-
playbook=playbook_path,
321-
inventory=inventory_path,
320+
collection_doc_cache=tmp_path / "collection_doc_cache.db",
322321
directory=tmp_path,
323-
role=integration_test_path.name,
322+
inventory=inventory_path,
324323
log_file=Path.home() / "test_logs" / f"{integration_test_path.name}.log",
324+
playbook=playbook_path,
325325
playbook_artifact=Path.home()
326326
/ "test_logs"
327327
/ "{playbook_status}"
328328
/ f"{integration_test_path.name}.json",
329+
role=integration_test_path.name,
329330
)
330331

331332

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

406407
return AnsibleProject(
407-
playbook=playbook_path,
408+
collection_doc_cache=tmp_path / "collection_doc_cache.db",
408409
directory=tmp_path,
409-
role=integration_test_path.name,
410410
log_file=Path.home() / "test_logs" / f"{integration_test_path.name}.log",
411+
playbook=playbook_path,
411412
playbook_artifact=Path.home()
412413
/ "test_logs"
413414
/ "{playbook_status}"
414415
/ f"{integration_test_path.name}.json",
416+
role=integration_test_path.name,
415417
)

src/pytest_ansible_network_integration/defs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
class AnsibleProject:
3131
"""Ansible project."""
3232

33+
collection_doc_cache: Path
3334
directory: Path
3435
log_file: Path
3536
playbook_artifact: Path

0 commit comments

Comments
 (0)