infrahub-testcontainers 1.2.9rc0__tar.gz → 1.2.11__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.9rc0 → infrahub_testcontainers-1.2.11}/PKG-INFO +1 -1
  2. {infrahub_testcontainers-1.2.9rc0 → infrahub_testcontainers-1.2.11}/infrahub_testcontainers/docker-compose.test.yml +3 -3
  3. {infrahub_testcontainers-1.2.9rc0 → infrahub_testcontainers-1.2.11}/infrahub_testcontainers/performance_test.py +6 -3
  4. {infrahub_testcontainers-1.2.9rc0 → infrahub_testcontainers-1.2.11}/pyproject.toml +2 -2
  5. {infrahub_testcontainers-1.2.9rc0 → infrahub_testcontainers-1.2.11}/README.md +0 -0
  6. {infrahub_testcontainers-1.2.9rc0 → infrahub_testcontainers-1.2.11}/infrahub_testcontainers/__init__.py +0 -0
  7. {infrahub_testcontainers-1.2.9rc0 → infrahub_testcontainers-1.2.11}/infrahub_testcontainers/constants.py +0 -0
  8. {infrahub_testcontainers-1.2.9rc0 → infrahub_testcontainers-1.2.11}/infrahub_testcontainers/container.py +0 -0
  9. {infrahub_testcontainers-1.2.9rc0 → infrahub_testcontainers-1.2.11}/infrahub_testcontainers/haproxy.cfg +0 -0
  10. {infrahub_testcontainers-1.2.9rc0 → infrahub_testcontainers-1.2.11}/infrahub_testcontainers/helpers.py +0 -0
  11. {infrahub_testcontainers-1.2.9rc0 → infrahub_testcontainers-1.2.11}/infrahub_testcontainers/host.py +0 -0
  12. {infrahub_testcontainers-1.2.9rc0 → infrahub_testcontainers-1.2.11}/infrahub_testcontainers/measurements.py +0 -0
  13. {infrahub_testcontainers-1.2.9rc0 → infrahub_testcontainers-1.2.11}/infrahub_testcontainers/models.py +0 -0
  14. {infrahub_testcontainers-1.2.9rc0 → infrahub_testcontainers-1.2.11}/infrahub_testcontainers/plugin.py +0 -0
  15. {infrahub_testcontainers-1.2.9rc0 → infrahub_testcontainers-1.2.11}/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.9rc0
3
+ Version: 1.2.11
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
@@ -57,14 +57,14 @@ services:
57
57
  NEO4J_dbms_security_procedures_unrestricted: "apoc.*"
58
58
  NEO4J_dbms_security_auth__minimum__password__length: 4
59
59
  NEO4J_ACCEPT_LICENSE_AGREEMENT: "yes"
60
- NEO4J_dbms_memory_heap_initial__size: ${INFRAHUB_TESTING_DB_HEAP_INITIAL_SIZE}
61
- NEO4J_dbms_memory_heap_max__size: ${INFRAHUB_TESTING_DB_HEAP_MAX_SIZE}
60
+ NEO4J_server_memory_heap_initial__size: ${INFRAHUB_TESTING_DB_HEAP_INITIAL_SIZE}
61
+ NEO4J_server_memory_heap_max__size: ${INFRAHUB_TESTING_DB_HEAP_MAX_SIZE}
62
62
  volumes:
63
63
  - "database_data:/data"
64
64
  - "database_logs:/logs"
65
65
  - "./${INFRAHUB_TESTING_LOCAL_DB_BACKUP_DIRECTORY}:${INFRAHUB_TESTING_INTERNAL_DB_BACKUP_DIRECTORY}"
66
66
  healthcheck:
67
- test: wget http://localhost:7474 || exit 1
67
+ test: wget -O /dev/null http://localhost:7474 || exit 1
68
68
  interval: 2s
69
69
  timeout: 10s
70
70
  retries: 20
@@ -158,9 +158,12 @@ class InfrahubPerformanceTest:
158
158
  "kind": PERFORMANCE_TEST_KIND,
159
159
  "payload_format": PERFORMANCE_TEST_VERSION,
160
160
  "data": data,
161
- "checksum": hashlib.sha256(json.dumps(data).encode()).hexdigest(),
161
+ "checksum": hashlib.sha256(json.dumps(data, separators=(",", ":")).encode()).hexdigest(),
162
162
  }
163
163
 
164
164
  with httpx.Client() as client:
165
- response = client.post(self.results_url, json=payload)
166
- response.raise_for_status()
165
+ try:
166
+ response = client.post(self.results_url, json=payload)
167
+ response.raise_for_status()
168
+ except Exception as exc:
169
+ print(exc)
@@ -1,11 +1,11 @@
1
1
  [project]
2
2
  name = "infrahub-testcontainers"
3
- version = "1.2.9rc0"
3
+ version = "1.2.11"
4
4
  requires-python = ">=3.9"
5
5
 
6
6
  [tool.poetry]
7
7
  name = "infrahub-testcontainers"
8
- version = "1.2.9rc0"
8
+ version = "1.2.11"
9
9
  description = "Testcontainers instance for Infrahub to easily build integration tests"
10
10
  authors = ["OpsMill <info@opsmill.com>"]
11
11
  readme = "README.md"