infrahub-testcontainers 1.2.10__tar.gz → 1.3.0a0__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 (15) hide show
  1. {infrahub_testcontainers-1.2.10 → infrahub_testcontainers-1.3.0a0}/PKG-INFO +1 -1
  2. {infrahub_testcontainers-1.2.10 → infrahub_testcontainers-1.3.0a0}/infrahub_testcontainers/container.py +0 -1
  3. {infrahub_testcontainers-1.2.10 → infrahub_testcontainers-1.3.0a0}/infrahub_testcontainers/docker-compose.test.yml +1 -1
  4. {infrahub_testcontainers-1.2.10 → infrahub_testcontainers-1.3.0a0}/infrahub_testcontainers/helpers.py +8 -2
  5. {infrahub_testcontainers-1.2.10 → infrahub_testcontainers-1.3.0a0}/pyproject.toml +2 -2
  6. {infrahub_testcontainers-1.2.10 → infrahub_testcontainers-1.3.0a0}/README.md +0 -0
  7. {infrahub_testcontainers-1.2.10 → infrahub_testcontainers-1.3.0a0}/infrahub_testcontainers/__init__.py +0 -0
  8. {infrahub_testcontainers-1.2.10 → infrahub_testcontainers-1.3.0a0}/infrahub_testcontainers/constants.py +0 -0
  9. {infrahub_testcontainers-1.2.10 → infrahub_testcontainers-1.3.0a0}/infrahub_testcontainers/haproxy.cfg +0 -0
  10. {infrahub_testcontainers-1.2.10 → infrahub_testcontainers-1.3.0a0}/infrahub_testcontainers/host.py +0 -0
  11. {infrahub_testcontainers-1.2.10 → infrahub_testcontainers-1.3.0a0}/infrahub_testcontainers/measurements.py +0 -0
  12. {infrahub_testcontainers-1.2.10 → infrahub_testcontainers-1.3.0a0}/infrahub_testcontainers/models.py +0 -0
  13. {infrahub_testcontainers-1.2.10 → infrahub_testcontainers-1.3.0a0}/infrahub_testcontainers/performance_test.py +0 -0
  14. {infrahub_testcontainers-1.2.10 → infrahub_testcontainers-1.3.0a0}/infrahub_testcontainers/plugin.py +0 -0
  15. {infrahub_testcontainers-1.2.10 → infrahub_testcontainers-1.3.0a0}/infrahub_testcontainers/prometheus.yml +0 -0
@@ -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
@@ -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,11 +1,11 @@
1
1
  [project]
2
2
  name = "infrahub-testcontainers"
3
- version = "1.2.10"
3
+ version = "1.3.0a0"
4
4
  requires-python = ">=3.9"
5
5
 
6
6
  [tool.poetry]
7
7
  name = "infrahub-testcontainers"
8
- version = "1.2.10"
8
+ version = "1.3.0a0"
9
9
  description = "Testcontainers instance for Infrahub to easily build integration tests"
10
10
  authors = ["OpsMill <info@opsmill.com>"]
11
11
  readme = "README.md"