infrahub-testcontainers 1.2.11__tar.gz → 1.3.0b1__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.
- {infrahub_testcontainers-1.2.11 → infrahub_testcontainers-1.3.0b1}/PKG-INFO +4 -4
- {infrahub_testcontainers-1.2.11 → infrahub_testcontainers-1.3.0b1}/infrahub_testcontainers/container.py +0 -1
- {infrahub_testcontainers-1.2.11 → infrahub_testcontainers-1.3.0b1}/infrahub_testcontainers/docker-compose.test.yml +1 -1
- {infrahub_testcontainers-1.2.11 → infrahub_testcontainers-1.3.0b1}/infrahub_testcontainers/helpers.py +8 -2
- {infrahub_testcontainers-1.2.11 → infrahub_testcontainers-1.3.0b1}/pyproject.toml +2 -2
- {infrahub_testcontainers-1.2.11 → infrahub_testcontainers-1.3.0b1}/README.md +0 -0
- {infrahub_testcontainers-1.2.11 → infrahub_testcontainers-1.3.0b1}/infrahub_testcontainers/__init__.py +0 -0
- {infrahub_testcontainers-1.2.11 → infrahub_testcontainers-1.3.0b1}/infrahub_testcontainers/constants.py +0 -0
- {infrahub_testcontainers-1.2.11 → infrahub_testcontainers-1.3.0b1}/infrahub_testcontainers/haproxy.cfg +0 -0
- {infrahub_testcontainers-1.2.11 → infrahub_testcontainers-1.3.0b1}/infrahub_testcontainers/host.py +0 -0
- {infrahub_testcontainers-1.2.11 → infrahub_testcontainers-1.3.0b1}/infrahub_testcontainers/measurements.py +0 -0
- {infrahub_testcontainers-1.2.11 → infrahub_testcontainers-1.3.0b1}/infrahub_testcontainers/models.py +0 -0
- {infrahub_testcontainers-1.2.11 → infrahub_testcontainers-1.3.0b1}/infrahub_testcontainers/performance_test.py +0 -0
- {infrahub_testcontainers-1.2.11 → infrahub_testcontainers-1.3.0b1}/infrahub_testcontainers/plugin.py +0 -0
- {infrahub_testcontainers-1.2.11 → infrahub_testcontainers-1.3.0b1}/infrahub_testcontainers/prometheus.yml +0 -0
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: infrahub-testcontainers
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.0b1
|
|
4
4
|
Summary: Testcontainers instance for Infrahub to easily build integration tests
|
|
5
|
-
Home-page: https://opsmill.com
|
|
6
5
|
License: Apache-2.0
|
|
7
6
|
Author: OpsMill
|
|
8
7
|
Author-email: info@opsmill.com
|
|
9
|
-
Requires-Python: >=3.9
|
|
8
|
+
Requires-Python: >=3.9
|
|
10
9
|
Classifier: Intended Audience :: Developers
|
|
11
10
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
11
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -20,6 +19,7 @@ Requires-Dist: psutil
|
|
|
20
19
|
Requires-Dist: pydantic (>=2.10.6,<3.0.0)
|
|
21
20
|
Requires-Dist: pytest
|
|
22
21
|
Requires-Dist: testcontainers (>=4.8,<4.9)
|
|
22
|
+
Project-URL: Homepage, https://opsmill.com
|
|
23
23
|
Project-URL: Repository, https://github.com/opsmill/infrahub
|
|
24
24
|
Description-Content-Type: text/markdown
|
|
25
25
|
|
|
@@ -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:
|
|
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
|
-
|
|
42
|
-
return
|
|
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 =
|
|
3
|
+
version = "1.3.0b1"
|
|
4
4
|
requires-python = ">=3.9"
|
|
5
5
|
|
|
6
6
|
[tool.poetry]
|
|
7
7
|
name = "infrahub-testcontainers"
|
|
8
|
-
version =
|
|
8
|
+
version = "1.3.0b1"
|
|
9
9
|
description = "Testcontainers instance for Infrahub to easily build integration tests"
|
|
10
10
|
authors = ["OpsMill <info@opsmill.com>"]
|
|
11
11
|
readme = "README.md"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{infrahub_testcontainers-1.2.11 → infrahub_testcontainers-1.3.0b1}/infrahub_testcontainers/host.py
RENAMED
|
File without changes
|
|
File without changes
|
{infrahub_testcontainers-1.2.11 → infrahub_testcontainers-1.3.0b1}/infrahub_testcontainers/models.py
RENAMED
|
File without changes
|
|
File without changes
|
{infrahub_testcontainers-1.2.11 → infrahub_testcontainers-1.3.0b1}/infrahub_testcontainers/plugin.py
RENAMED
|
File without changes
|
|
File without changes
|