infrahub-testcontainers 1.2.12__tar.gz → 1.3.0__tar.gz

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.
Files changed (16) hide show
  1. {infrahub_testcontainers-1.2.12 → infrahub_testcontainers-1.3.0}/PKG-INFO +2 -1
  2. {infrahub_testcontainers-1.2.12 → infrahub_testcontainers-1.3.0}/infrahub_testcontainers/container.py +0 -1
  3. {infrahub_testcontainers-1.2.12 → infrahub_testcontainers-1.3.0}/infrahub_testcontainers/docker-compose.test.yml +1 -1
  4. {infrahub_testcontainers-1.2.12 → infrahub_testcontainers-1.3.0}/infrahub_testcontainers/helpers.py +8 -2
  5. {infrahub_testcontainers-1.2.12 → infrahub_testcontainers-1.3.0}/pyproject.toml +4 -3
  6. {infrahub_testcontainers-1.2.12 → infrahub_testcontainers-1.3.0}/README.md +0 -0
  7. {infrahub_testcontainers-1.2.12 → infrahub_testcontainers-1.3.0}/infrahub_testcontainers/__init__.py +0 -0
  8. {infrahub_testcontainers-1.2.12 → infrahub_testcontainers-1.3.0}/infrahub_testcontainers/constants.py +0 -0
  9. {infrahub_testcontainers-1.2.12 → infrahub_testcontainers-1.3.0}/infrahub_testcontainers/docker-compose-cluster.test.yml +0 -0
  10. {infrahub_testcontainers-1.2.12 → infrahub_testcontainers-1.3.0}/infrahub_testcontainers/haproxy.cfg +0 -0
  11. {infrahub_testcontainers-1.2.12 → infrahub_testcontainers-1.3.0}/infrahub_testcontainers/host.py +0 -0
  12. {infrahub_testcontainers-1.2.12 → infrahub_testcontainers-1.3.0}/infrahub_testcontainers/measurements.py +0 -0
  13. {infrahub_testcontainers-1.2.12 → infrahub_testcontainers-1.3.0}/infrahub_testcontainers/models.py +0 -0
  14. {infrahub_testcontainers-1.2.12 → infrahub_testcontainers-1.3.0}/infrahub_testcontainers/performance_test.py +0 -0
  15. {infrahub_testcontainers-1.2.12 → infrahub_testcontainers-1.3.0}/infrahub_testcontainers/plugin.py +0 -0
  16. {infrahub_testcontainers-1.2.12 → infrahub_testcontainers-1.3.0}/infrahub_testcontainers/prometheus.yml +0 -0
@@ -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
@@ -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,11 +1,11 @@
1
1
  [project]
2
2
  name = "infrahub-testcontainers"
3
- version = "1.2.12"
3
+ version = "1.3.0"
4
4
  requires-python = ">=3.9"
5
5
 
6
6
  [tool.poetry]
7
7
  name = "infrahub-testcontainers"
8
- version = "1.2.12"
8
+ version = "1.3.0"
9
9
  description = "Testcontainers instance for Infrahub to easily build integration tests"
10
10
  authors = ["OpsMill <info@opsmill.com>"]
11
11
  readme = "README.md"
@@ -33,12 +33,13 @@ infrahub_testcontainers = ["docker-compose.test.yml", "docker-compose-cluster.te
33
33
  "pytest-infrahub-performance-test" = "infrahub_testcontainers.plugin"
34
34
 
35
35
  [tool.poetry.dependencies]
36
- python = "^3.9"
36
+ python = "^3.9, < 3.14"
37
37
  testcontainers = "~4.8"
38
38
  psutil = "*"
39
39
  pytest = "*"
40
40
  httpx = "^0.28.1"
41
41
  pydantic = "^2.10.6"
42
+ prefect-client = "3.4.1"
42
43
 
43
44
  [tool.poetry.group.dev.dependencies]
44
45
  rich = "^13.9.4"