infrahub-testcontainers 1.2.12__py3-none-any.whl → 1.3.0__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,9 +1,11 @@
1
1
  import os
2
2
  import subprocess # noqa: S404
3
+ import uuid
3
4
  import warnings
4
5
  from pathlib import Path
5
6
 
6
7
  import pytest
8
+ from prefect.client.orchestration import PrefectClient
7
9
 
8
10
  from infrahub_testcontainers import __version__ as infrahub_version
9
11
 
@@ -39,8 +41,8 @@ class TestInfrahubDocker:
39
41
 
40
42
  @pytest.fixture(scope="class")
41
43
  def tmp_directory(self, tmpdir_factory: pytest.TempdirFactory) -> Path:
42
- directory = Path(str(tmpdir_factory.getbasetemp().strpath))
43
- return directory
44
+ name = f"{self.__class__.__name__.lower()}_{uuid.uuid4().hex}"
45
+ return Path(str(tmpdir_factory.mktemp(name)))
44
46
 
45
47
  @pytest.fixture(scope="class")
46
48
  def remote_repos_dir(self, tmp_directory: Path) -> Path:
@@ -105,3 +107,7 @@ class TestInfrahubDocker:
105
107
  @pytest.fixture(scope="class")
106
108
  def task_manager_port(self, infrahub_app: dict[str, int]) -> int:
107
109
  return infrahub_app["task-manager"]
110
+
111
+ @pytest.fixture(scope="class")
112
+ def prefect_client(self, task_manager_port: int) -> PrefectClient:
113
+ return PrefectClient(api=f"http://localhost:{task_manager_port}/api/")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: infrahub-testcontainers
3
- Version: 1.2.12
3
+ Version: 1.3.0
4
4
  Summary: Testcontainers instance for Infrahub to easily build integration tests
5
5
  License: Apache-2.0
6
6
  Author: OpsMill
@@ -15,6 +15,7 @@ Classifier: Programming Language :: Python :: 3.11
15
15
  Classifier: Programming Language :: Python :: 3.12
16
16
  Classifier: Programming Language :: Python :: 3.13
17
17
  Requires-Dist: httpx (>=0.28.1,<0.29.0)
18
+ Requires-Dist: prefect-client (==3.4.1)
18
19
  Requires-Dist: psutil
19
20
  Requires-Dist: pydantic (>=2.10.6,<3.0.0)
20
21
  Requires-Dist: pytest
@@ -1,17 +1,17 @@
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=CpRLoCQjN37Iv9DpMQX2WHgsDObT7_iNfE6OTWL90OE,19559
3
+ infrahub_testcontainers/container.py,sha256=dZE-9IiOU5oqanyJzZMPPHgXTx1L73yXZjVHQoRxJg8,19507
4
4
  infrahub_testcontainers/docker-compose-cluster.test.yml,sha256=noKd7NLr6GQOn1X4qukvpsRvg15unGS7BfPDG4xkKdM,12057
5
- infrahub_testcontainers/docker-compose.test.yml,sha256=NgQF0un3LNUWhY0-uKb56Ky9ZmCJP0dRssUPx4qZp-o,8562
5
+ infrahub_testcontainers/docker-compose.test.yml,sha256=dVbmHdho_AgCRFJ62jNAbtcPd_JMyRWWgfqqMDmIhfc,8565
6
6
  infrahub_testcontainers/haproxy.cfg,sha256=QUkG2Xu-hKoknPOeYKAkBT_xJH6U9CfIS0DTMFZJsnk,1305
7
- infrahub_testcontainers/helpers.py,sha256=a6qRHjeFZetkq0zQj5pgz021AI7XhArMG3ze7ZQuEHk,4288
7
+ infrahub_testcontainers/helpers.py,sha256=3HAygJJmU1vBrD63Abiau6BGypYEeysTqRb6nkcmw7g,4573
8
8
  infrahub_testcontainers/host.py,sha256=Z4_gGoGKKeM_HGVS7SdYL1FTNGyLBk8wzicdSKHpfmM,1486
9
9
  infrahub_testcontainers/measurements.py,sha256=gR-uTasSIFCXrwvnNpIpfsQIopKftT7pBiarCgIShaQ,2214
10
10
  infrahub_testcontainers/models.py,sha256=ASYyvl7d_WQz_i7y8-3iab9hwwmCl3OCJavqVbe8nXU,954
11
11
  infrahub_testcontainers/performance_test.py,sha256=hvwiy6tc_lWniYqGkqfOXVGAmA_IV15VOZqbiD9ezno,6149
12
12
  infrahub_testcontainers/plugin.py,sha256=I3RuZQ0dARyKHuqCf0y1Yj731P2Mwf3BJUehRJKeWrs,5645
13
13
  infrahub_testcontainers/prometheus.yml,sha256=610xQEyj3xuVJMzPkC4m1fRnCrjGpiRBrXA2ytCLa54,599
14
- infrahub_testcontainers-1.2.12.dist-info/METADATA,sha256=V2j6SjILtiss4iTlTwfXbz7wA-QUUzt0VfRRG9hcgKc,989
15
- infrahub_testcontainers-1.2.12.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
16
- infrahub_testcontainers-1.2.12.dist-info/entry_points.txt,sha256=gHOERdtVE0P8dYz6FHkn2KplpbXvCDJQnuWg_IP0-qQ,76
17
- infrahub_testcontainers-1.2.12.dist-info/RECORD,,
14
+ infrahub_testcontainers-1.3.0.dist-info/METADATA,sha256=mBzKNvG8JnYSR1XTMtWSPHr3r3noTPUPj_W9ZK65dHM,1028
15
+ infrahub_testcontainers-1.3.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
16
+ infrahub_testcontainers-1.3.0.dist-info/entry_points.txt,sha256=gHOERdtVE0P8dYz6FHkn2KplpbXvCDJQnuWg_IP0-qQ,76
17
+ infrahub_testcontainers-1.3.0.dist-info/RECORD,,