Skip to content

Commit 06d15cf

Browse files
committed
Add debugging for integration test
1 parent 0996934 commit 06d15cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integration/test_repository.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ class TestInfrahubRepository(TestInfrahubDockerClient):
1717
def infrahub_version(self) -> str:
1818
return "1.1.0"
1919

20-
async def test_add_repository(self, client: InfrahubClient, remote_repos_dir):
20+
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(infrahub_compose.services)
24+
print(infrahub_compose.exec_in_container(["ls", "/remote"], "task-worker"))
2325
commit = repo._repo.git[repo._repo.git.head()]
2426
assert len(list(repo._repo.git.get_walker())) == 1
2527
assert commit.message.decode("utf-8") == "First commit"

0 commit comments

Comments
 (0)