infrahub-testcontainers 1.2.10__py3-none-any.whl → 1.3.0a0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,7 +28,6 @@ INFRAHUB_SERVICES: dict[str, ContainerService] = {
28
28
  }
29
29
 
30
30
  PROJECT_ENV_VARIABLES: dict[str, str] = {
31
- "NEO4J_DOCKER_IMAGE": "neo4j:5.20.0-community",
32
31
  "MESSAGE_QUEUE_DOCKER_IMAGE": "rabbitmq:3.13.7-management",
33
32
  "CACHE_DOCKER_IMAGE": "redis:7.2.4",
34
33
  "INFRAHUB_TESTING_DOCKER_IMAGE": "registry.opsmill.io/opsmill/infrahub",
@@ -50,7 +50,7 @@ services:
50
50
  limits:
51
51
  cpus: ${INFRAHUB_TESTING_DB_CPU_LIMIT:-0.0}
52
52
  memory: ${INFRAHUB_TESTING_DB_MEMORY_LIMIT:-0}
53
- image: ${NEO4J_DOCKER_IMAGE:-neo4j:5.20.0-community}
53
+ image: ${NEO4J_DOCKER_IMAGE:-neo4j:2025.03.0-community}
54
54
  restart: unless-stopped
55
55
  environment:
56
56
  NEO4J_AUTH: neo4j/admin
@@ -1,8 +1,10 @@
1
1
  import os
2
2
  import subprocess # noqa: S404
3
+ import uuid
3
4
  from pathlib import Path
4
5
 
5
6
  import pytest
7
+ from prefect.client.orchestration import PrefectClient
6
8
 
7
9
  from infrahub_testcontainers import __version__ as infrahub_version
8
10
 
@@ -38,8 +40,8 @@ class TestInfrahubDocker:
38
40
 
39
41
  @pytest.fixture(scope="class")
40
42
  def tmp_directory(self, tmpdir_factory: pytest.TempdirFactory) -> Path:
41
- directory = Path(str(tmpdir_factory.getbasetemp().strpath))
42
- return directory
43
+ name = f"{self.__class__.__name__.lower()}_{uuid.uuid4().hex}"
44
+ return Path(str(tmpdir_factory.mktemp(name)))
43
45
 
44
46
  @pytest.fixture(scope="class")
45
47
  def remote_repos_dir(self, tmp_directory: Path) -> Path:
@@ -91,3 +93,7 @@ class TestInfrahubDocker:
91
93
  @pytest.fixture(scope="class")
92
94
  def task_manager_port(self, infrahub_app: dict[str, int]) -> int:
93
95
  return infrahub_app["task-manager"]
96
+
97
+ @pytest.fixture(scope="class")
98
+ def prefect_client(self, task_manager_port: int) -> PrefectClient:
99
+ return PrefectClient(api=f"http://localhost:{task_manager_port}/api/")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: infrahub-testcontainers
3
- Version: 1.2.10
3
+ Version: 1.3.0a0
4
4
  Summary: Testcontainers instance for Infrahub to easily build integration tests
5
5
  Home-page: https://opsmill.com
6
6
  License: Apache-2.0
@@ -1,16 +1,16 @@
1
1
  infrahub_testcontainers/__init__.py,sha256=oPpmesGgYBSdKTg1L37FGwYBeao1EHury5SJGul-CT8,216
2
2
  infrahub_testcontainers/constants.py,sha256=mZ4hLvcf4rKk9wC7EId4MQxAY0sk4V99deB04N0J2bg,85
3
- infrahub_testcontainers/container.py,sha256=-NccmHKJw8rnGY4nSgqIJdGBrX8eObi9kq7q7mQz1zs,12308
4
- infrahub_testcontainers/docker-compose.test.yml,sha256=dePNK3r5DWVysrFr-t838-9LercZQOIJ8ZYOBWv7Mok,8482
3
+ infrahub_testcontainers/container.py,sha256=V_xMdUfzOeHZWc2y7jP5VSwWt6L0jaB4aFvdQeV45LA,12256
4
+ infrahub_testcontainers/docker-compose.test.yml,sha256=N-bz6k7KvjVPAW-acRZ_IxWKIjnWnto_Mq9sOEMDkB8,8485
5
5
  infrahub_testcontainers/haproxy.cfg,sha256=QUkG2Xu-hKoknPOeYKAkBT_xJH6U9CfIS0DTMFZJsnk,1305
6
- infrahub_testcontainers/helpers.py,sha256=zsvBOql5qM2OX1ybPcklqF-nzWYHkZI3Gk3KZhxWOtU,3578
6
+ infrahub_testcontainers/helpers.py,sha256=pVmNjrs42q1lI2klBL-qeaY_UXeZdvwlDQSKR3Tr1EA,3863
7
7
  infrahub_testcontainers/host.py,sha256=Z4_gGoGKKeM_HGVS7SdYL1FTNGyLBk8wzicdSKHpfmM,1486
8
8
  infrahub_testcontainers/measurements.py,sha256=gR-uTasSIFCXrwvnNpIpfsQIopKftT7pBiarCgIShaQ,2214
9
9
  infrahub_testcontainers/models.py,sha256=ASYyvl7d_WQz_i7y8-3iab9hwwmCl3OCJavqVbe8nXU,954
10
10
  infrahub_testcontainers/performance_test.py,sha256=hvwiy6tc_lWniYqGkqfOXVGAmA_IV15VOZqbiD9ezno,6149
11
11
  infrahub_testcontainers/plugin.py,sha256=g24SMg4EAqVe2N8i9F66EV34cNqIdDU4mRP7OeOJO1w,5381
12
12
  infrahub_testcontainers/prometheus.yml,sha256=610xQEyj3xuVJMzPkC4m1fRnCrjGpiRBrXA2ytCLa54,599
13
- infrahub_testcontainers-1.2.10.dist-info/METADATA,sha256=9GFk7L3cUdT_QKESOM3EsBe9EwgvtRsCadJtOFNA9Zg,982
14
- infrahub_testcontainers-1.2.10.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
15
- infrahub_testcontainers-1.2.10.dist-info/entry_points.txt,sha256=gHOERdtVE0P8dYz6FHkn2KplpbXvCDJQnuWg_IP0-qQ,76
16
- infrahub_testcontainers-1.2.10.dist-info/RECORD,,
13
+ infrahub_testcontainers-1.3.0a0.dist-info/METADATA,sha256=oHMmlYdo9mltVh5XFZpAgoPVe-fgbPCv61IZraeMKvg,983
14
+ infrahub_testcontainers-1.3.0a0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
15
+ infrahub_testcontainers-1.3.0a0.dist-info/entry_points.txt,sha256=gHOERdtVE0P8dYz6FHkn2KplpbXvCDJQnuWg_IP0-qQ,76
16
+ infrahub_testcontainers-1.3.0a0.dist-info/RECORD,,