infrahub-testcontainers 1.5.4__tar.gz → 1.6.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 (18) hide show
  1. infrahub_testcontainers-1.6.0/.gitignore +50 -0
  2. {infrahub_testcontainers-1.5.4 → infrahub_testcontainers-1.6.0}/PKG-INFO +12 -15
  3. {infrahub_testcontainers-1.5.4 → infrahub_testcontainers-1.6.0}/infrahub_testcontainers/container.py +2 -2
  4. {infrahub_testcontainers-1.5.4 → infrahub_testcontainers-1.6.0}/infrahub_testcontainers/docker-compose-cluster.test.yml +1 -1
  5. {infrahub_testcontainers-1.5.4 → infrahub_testcontainers-1.6.0}/infrahub_testcontainers/docker-compose.test.yml +1 -1
  6. infrahub_testcontainers-1.6.0/pyproject.toml +65 -0
  7. infrahub_testcontainers-1.5.4/pyproject.toml +0 -51
  8. {infrahub_testcontainers-1.5.4 → infrahub_testcontainers-1.6.0}/README.md +0 -0
  9. {infrahub_testcontainers-1.5.4 → infrahub_testcontainers-1.6.0}/infrahub_testcontainers/__init__.py +0 -0
  10. {infrahub_testcontainers-1.5.4 → infrahub_testcontainers-1.6.0}/infrahub_testcontainers/constants.py +0 -0
  11. {infrahub_testcontainers-1.5.4 → infrahub_testcontainers-1.6.0}/infrahub_testcontainers/haproxy.cfg +0 -0
  12. {infrahub_testcontainers-1.5.4 → infrahub_testcontainers-1.6.0}/infrahub_testcontainers/helpers.py +0 -0
  13. {infrahub_testcontainers-1.5.4 → infrahub_testcontainers-1.6.0}/infrahub_testcontainers/host.py +0 -0
  14. {infrahub_testcontainers-1.5.4 → infrahub_testcontainers-1.6.0}/infrahub_testcontainers/measurements.py +0 -0
  15. {infrahub_testcontainers-1.5.4 → infrahub_testcontainers-1.6.0}/infrahub_testcontainers/models.py +0 -0
  16. {infrahub_testcontainers-1.5.4 → infrahub_testcontainers-1.6.0}/infrahub_testcontainers/performance_test.py +0 -0
  17. {infrahub_testcontainers-1.5.4 → infrahub_testcontainers-1.6.0}/infrahub_testcontainers/plugin.py +0 -0
  18. {infrahub_testcontainers-1.5.4 → infrahub_testcontainers-1.6.0}/infrahub_testcontainers/prometheus.yml +0 -0
@@ -0,0 +1,50 @@
1
+ .coverage
2
+ coverage.xml
3
+ *junit*
4
+ *.pyc
5
+ *.env
6
+ script.py
7
+ **/*.local.*
8
+ local/*
9
+ .vscode/settings.json
10
+ node_modules/*
11
+ development/docker-compose.override.yml
12
+ development/docker-compose.dev-override.yml
13
+ .DS_Store
14
+ .python-version
15
+ .venv/*
16
+ .ruff_cache
17
+ **/.ruff_cache
18
+ **/.idea/**
19
+ dist/*
20
+
21
+ # As we might run collect command from this repo
22
+ support_logs_*
23
+
24
+ # Direnv files (https://direnv.net/)
25
+ .direnv/
26
+ .envrc
27
+
28
+ docs/build
29
+
30
+ storage/*
31
+ sandbox/*
32
+ .coverage.*
33
+ python_sdk/dist/*
34
+ .benchmarks/*
35
+
36
+ # Test reports
37
+ **/*.csv
38
+ !backend/tests/unit/**/data_export/*.csv
39
+
40
+ # Generated files
41
+ generated/
42
+ query_performance_results/
43
+ sync/dist/
44
+ helm/charts/
45
+ helm/Chart.lock
46
+
47
+ python_testcontainers/dist/*
48
+ python_testcontainers/infrahub_testcontainers.egg-info/*
49
+
50
+ schema/node_modules/*
@@ -1,29 +1,26 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: infrahub-testcontainers
3
- Version: 1.5.4
3
+ Version: 1.6.0
4
4
  Summary: Testcontainers instance for Infrahub to easily build integration tests
5
- License: Apache-2.0
6
- Author: OpsMill
7
- Author-email: info@opsmill.com
8
- Requires-Python: >=3.9
5
+ Project-URL: Homepage, https://opsmill.com
6
+ Project-URL: Repository, https://github.com/opsmill/infrahub
7
+ Author-email: OpsMill <info@opsmill.com>
8
+ License-Expression: Apache-2.0
9
9
  Classifier: Intended Audience :: Developers
10
- Classifier: License :: OSI Approved :: Apache Software License
11
10
  Classifier: Programming Language :: Python :: 3
12
- Classifier: Programming Language :: Python :: 3.9
13
11
  Classifier: Programming Language :: Python :: 3.10
14
12
  Classifier: Programming Language :: Python :: 3.11
15
13
  Classifier: Programming Language :: Python :: 3.12
16
14
  Classifier: Programming Language :: Python :: 3.13
17
- Requires-Dist: httpx (>=0.28.1,<0.29.0)
18
- Requires-Dist: prefect-client (==3.4.23)
15
+ Classifier: Programming Language :: Python :: 3.14
16
+ Requires-Python: >=3.10
17
+ Requires-Dist: httpx<0.28
18
+ Requires-Dist: prefect-client==3.5.0
19
19
  Requires-Dist: psutil
20
- Requires-Dist: pydantic (>=2.10.6,<3.0.0)
20
+ Requires-Dist: pydantic<3,>=2.10.6
21
21
  Requires-Dist: pytest
22
- Requires-Dist: testcontainers (>=4.8,<4.9)
23
- Project-URL: Homepage, https://opsmill.com
24
- Project-URL: Repository, https://github.com/opsmill/infrahub
22
+ Requires-Dist: testcontainers<4.9,>=4.8
25
23
  Description-Content-Type: text/markdown
26
24
 
27
25
 
28
26
  # Infrahub Testcontainers
29
-
@@ -33,7 +33,7 @@ PROJECT_ENV_VARIABLES: dict[str, str] = {
33
33
  "MESSAGE_QUEUE_DOCKER_IMAGE": "rabbitmq:3.13.7-management",
34
34
  "CACHE_DOCKER_IMAGE": "redis:7.2.11",
35
35
  "INFRAHUB_TESTING_DOCKER_IMAGE": "registry.opsmill.io/opsmill/infrahub",
36
- "INFRAHUB_TESTING_DOCKER_ENTRYPOINT": f"gunicorn --config backend/infrahub/serve/gunicorn_config.py -w {os.environ.get('INFRAHUB_TESTING_WEB_CONCURRENCY', 4)} --logger-class infrahub.serve.log.GunicornLogger infrahub.server:app", # noqa: E501
36
+ "INFRAHUB_TESTING_DOCKER_ENTRYPOINT": f"gunicorn --config backend/infrahub/serve/gunicorn_config.py -w {os.environ.get('INFRAHUB_TESTING_WEB_CONCURRENCY', '4')} --logger-class infrahub.serve.log.GunicornLogger infrahub.server:app", # noqa: E501
37
37
  "INFRAHUB_TESTING_IMAGE_VERSION": infrahub_version,
38
38
  "INFRAHUB_TESTING_PRODUCTION": "false",
39
39
  "INFRAHUB_TESTING_DB_ADDRESS": "database",
@@ -149,7 +149,7 @@ class InfrahubDockerCompose(DockerCompose):
149
149
  PROJECT_ENV_VARIABLES.update(
150
150
  {
151
151
  "INFRAHUB_TESTING_DOCKER_IMAGE": "registry.opsmill.io/opsmill/infrahub-enterprise",
152
- "INFRAHUB_TESTING_DOCKER_ENTRYPOINT": f"gunicorn --config community/backend/infrahub/serve/gunicorn_config.py -w {os.environ.get('INFRAHUB_TESTING_WEB_CONCURRENCY', 4)} --logger-class infrahub.serve.log.GunicornLogger infrahub_enterprise.server:app", # noqa: E501
152
+ "INFRAHUB_TESTING_DOCKER_ENTRYPOINT": f"gunicorn --config community/backend/infrahub/serve/gunicorn_config.py -w {os.environ.get('INFRAHUB_TESTING_WEB_CONCURRENCY', '4')} --logger-class infrahub.serve.log.GunicornLogger infrahub_enterprise.server:app", # noqa: E501
153
153
  "INFRAHUB_TESTING_WORKFLOW_DEFAULT_WORKER_TYPE": "infrahubentasync",
154
154
  "INFRAHUB_TESTING_PREFECT_UI_ENABLED": "false",
155
155
  "NEO4J_DOCKER_IMAGE": "neo4j:2025.03.0-enterprise",
@@ -196,7 +196,7 @@ services:
196
196
 
197
197
  WEB_CONCURRENCY: ${INFRAHUB_TESTING_TASKMGR_API_WORKERS:-1}
198
198
  healthcheck:
199
- test: /usr/local/bin/httpx http://localhost:4200/api/health || exit 1
199
+ test: curl -s -f -o /dev/null http://localhost:4200/api/health || exit 1
200
200
  interval: 5s
201
201
  timeout: 5s
202
202
  retries: 20
@@ -107,7 +107,7 @@ services:
107
107
 
108
108
  WEB_CONCURRENCY: ${INFRAHUB_TESTING_TASKMGR_API_WORKERS:-1}
109
109
  healthcheck:
110
- test: /usr/local/bin/httpx http://localhost:4200/api/health || exit 1
110
+ test: curl -s -f -o /dev/null http://localhost:4200/api/health || exit 1
111
111
  interval: 5s
112
112
  timeout: 5s
113
113
  retries: 20
@@ -0,0 +1,65 @@
1
+ [project]
2
+ name = "infrahub-testcontainers"
3
+ version = "1.6.0"
4
+ requires-python = ">=3.10"
5
+
6
+ description = "Testcontainers instance for Infrahub to easily build integration tests"
7
+ authors = [{ name = "OpsMill", email = "info@opsmill.com" }]
8
+ readme = "README.md"
9
+ license = "Apache-2.0"
10
+ classifiers = [
11
+ "Intended Audience :: Developers",
12
+ "Programming Language :: Python :: 3",
13
+ "Programming Language :: Python :: 3.10",
14
+ "Programming Language :: Python :: 3.11",
15
+ "Programming Language :: Python :: 3.12",
16
+ "Programming Language :: Python :: 3.13",
17
+ "Programming Language :: Python :: 3.14",
18
+ ]
19
+
20
+ dependencies = [
21
+ "testcontainers>=4.8,<4.9",
22
+ "psutil",
23
+ "pytest",
24
+ "httpx<0.28",
25
+ "pydantic>=2.10.6,<3",
26
+ "prefect-client==3.5.0",
27
+ ]
28
+
29
+ [project.urls]
30
+ Homepage = "https://opsmill.com"
31
+ Repository = "https://github.com/opsmill/infrahub"
32
+
33
+ [project.entry-points.pytest11]
34
+ pytest-infrahub-performance-test = "infrahub_testcontainers.plugin"
35
+
36
+ [dependency-groups]
37
+ dev = [
38
+ "rich>=13.9.4,<14",
39
+ "pytest-cov==7.0.0",
40
+ "pytest-xdist>=3.4,<3.5",
41
+ ]
42
+
43
+ [tool.ruff]
44
+ line-length = 120
45
+ target-version = "py39"
46
+
47
+ [tool.hatch.build.targets.sdist]
48
+ include = [
49
+ "infrahub_testcontainers",
50
+ "infrahub_testcontainers/docker-compose.test.yml",
51
+ "infrahub_testcontainers/haproxy.cfg",
52
+ "infrahub_testcontainers/prometheus.yml",
53
+ ]
54
+
55
+ [tool.hatch.build.targets.wheel]
56
+ include = [
57
+ "infrahub_testcontainers",
58
+ "infrahub_testcontainers/docker-compose.test.yml",
59
+ "infrahub_testcontainers/haproxy.cfg",
60
+ "infrahub_testcontainers/prometheus.yml",
61
+ ]
62
+
63
+ [build-system]
64
+ requires = ["hatchling"]
65
+ build-backend = "hatchling.build"
@@ -1,51 +0,0 @@
1
- [project]
2
- name = "infrahub-testcontainers"
3
- version = "1.5.4"
4
- requires-python = ">=3.9"
5
-
6
- [tool.poetry]
7
- name = "infrahub-testcontainers"
8
- version = "1.5.4"
9
- description = "Testcontainers instance for Infrahub to easily build integration tests"
10
- authors = ["OpsMill <info@opsmill.com>"]
11
- readme = "README.md"
12
- license = "Apache-2.0"
13
- homepage = "https://opsmill.com"
14
- repository = "https://github.com/opsmill/infrahub"
15
- packages = [{ include = "infrahub_testcontainers" }]
16
- classifiers = [
17
- "Intended Audience :: Developers",
18
- "Programming Language :: Python :: 3",
19
- "Programming Language :: Python :: 3.9",
20
- "Programming Language :: Python :: 3.10",
21
- "Programming Language :: Python :: 3.11",
22
- "Programming Language :: Python :: 3.12",
23
- "Programming Language :: Python :: 3.13",
24
- ]
25
-
26
- include = ["infrahub_testcontainers/docker-compose.test.yml", "infrahub_testcontainers/docker-compose-cluster.test.yml", "infrahub_testcontainers/haproxy.cfg", "infrahub_testcontainers/prometheus.yml"]
27
-
28
-
29
- [tool.setuptools.package-data]
30
- infrahub_testcontainers = ["docker-compose.test.yml", "docker-compose-cluster.test.yml", "haproxy.cfg", "prometheus.yml"]
31
-
32
- [tool.poetry.plugins."pytest11"]
33
- "pytest-infrahub-performance-test" = "infrahub_testcontainers.plugin"
34
-
35
- [tool.poetry.dependencies]
36
- python = "^3.9, < 3.14"
37
- testcontainers = "~4.8"
38
- psutil = "*"
39
- pytest = "*"
40
- httpx = "^0.28.1"
41
- pydantic = "^2.10.6"
42
- prefect-client = "3.4.23"
43
-
44
- [tool.poetry.group.dev.dependencies]
45
- rich = "^13.9.4"
46
- pytest-cov = "7.0.0"
47
- pytest-xdist = "~3.4"
48
-
49
- [tool.ruff]
50
- line-length = 120
51
- target-version = "py39"