Skip to content

Commit a64cf8b

Browse files
committed
Get container logs
1 parent d2cc4f4 commit a64cf8b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/integration/test_repository.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,13 @@ def infrahub_version(self) -> str:
2020
async def test_add_repository(self, client: InfrahubClient, remote_repos_dir, infrahub_compose):
2121
src_directory = get_fixtures_dir() / "integration/mock_repo"
2222
repo = GitRepo(name="mock_repo", src_directory=src_directory, dst_directory=remote_repos_dir)
23+
print()
2324
print(infrahub_compose._run_command(cmd=["ls", "-la", str(remote_repos_dir)]))
25+
print()
2426
print(infrahub_compose.get_config())
27+
print()
28+
print(infrahub_compose.get_logs("task-worker"))
29+
print()
2530
# print(infrahub_compose._run_command(cmd="echo $INFRAHUB_TESTING_LOCAL_REMOTE_GIT_DIRECTORY"))
2631
print(infrahub_compose.exec_in_container(["ls", "-la", "/remote"], "task-worker"))
2732
commit = repo._repo.git[repo._repo.git.head()]

0 commit comments

Comments
 (0)