Commit Graph
354 Commits
Author SHA1 Message Date
Gaël Goinvic 91b2a877de add tests for replicas and maxUnaivalable in deployments 2025-06-04 15:25:06 +02:00
Ben Banfield-Zanin 94e352c2a0 Rename synapse-check-config-hook to synapse-check-config for consistency with init-secrets and deployment-markers 2025-05-29 13:45:23 +01:00
Ben Banfield-Zanin 8536694f85 Merge pull request #500 from element-hq/bbz/template-id-everywhere
Consistently use template_id helper for identifying manifests.
2025-05-29 09:36:54 +01:00
Ben Banfield-Zanin 04a7cc6af4 Merge pull request #497 from element-hq/bbz/validation-messages
Improve validation messages for values that are templated.
2025-05-29 09:36:47 +01:00
Ben Banfield-Zanin 335d87c135 Merge pull request #496 from element-hq/bbz/minor-test-improvements
More minor test improvements
2025-05-29 09:36:37 +01:00
Ben Banfield-Zanin e4f87b14a9 Consistently use template_id helper for identifying manifests. 2025-05-28 16:01:36 +01:00
Ben Banfield-Zanin 60ce0b3486 Improve validation messages for values that are templated. 2025-05-28 15:33:32 +01:00
Ben Banfield-Zanin 1eff5cf521 Validate manifests set the namespace correctly. 2025-05-28 14:56:38 +01:00
Ben Banfield-Zanin a3cba6d4ad Validate that covering manifests are named consistently with what they cover. 2025-05-28 14:42:52 +01:00
Gaël Goinvic 91198551e6 Merge pull request #487 from element-hq/gaelg/matrix-tools-markers
matrix-tools: implement deployment-markers command
2025-05-28 15:40:54 +02:00
Ben Banfield-Zanin 64df3fc65e Validate that workload selectors match the labels in the template. 2025-05-28 14:39:13 +01:00
Ben Banfield-Zanin fba881b11b Improve assertions in test_volumes_mounts_exists 2025-05-28 14:37:39 +01:00
Gaël Goinvic 2fccdafcb0 fix configmap markers verifications 2025-05-28 15:16:45 +02:00
Gaël Goinvic 47d53ec698 fix manifests tests 2025-05-28 15:16:44 +02:00
Gaël Goinvic 666a1ff2d4 marker: fix err messages 2025-05-28 15:16:44 +02:00
Gaël Goinvic 09c0db4d68 deployment-markers: use a dedicated command 2025-05-28 15:16:44 +02:00
Gaël Goinvic 4de50b2e04 tests: verify that it fails on wrong upgrade paths 2025-05-28 15:16:44 +02:00
Gaël Goinvic 42daa043bb values files with deploymentMarkers job 2025-05-28 15:16:44 +02:00
Gaël Goinvic 83cbbe37a5 deployment markers: do in pre & post steps 2025-05-28 15:16:44 +02:00
Gaël Goinvic 86017e888a add markers in the deployment and test their values 2025-05-28 15:16:15 +02:00
Ben Banfield-Zanin ef9dd9a417 Run the manifest tests with release_names of 29 characters and assert resulting manifests have valid name lengths. 2025-05-28 11:37:45 +01:00
Ben Banfield-Zanin d2b305c396 Restrict some Synapse worker names such that release_names can be 29 characters long. 2025-05-28 11:37:45 +01:00
Ben Banfield-Zanin 1d6a304c72 Fix routing to the initial-synchrotron worker in HAProxy. 2025-05-28 11:30:54 +01:00
Ben Banfield-Zanin 8d6688490d Ensure the names of Secrets in volume/volumeMounts don't have names that are too long. 2025-05-28 09:22:02 +01:00
Ben Banfield-Zanin 7ac927f8f0 Simplify manifest tests by making template_to_deployable_details an import not a fixture. 2025-05-27 10:22:33 +01:00
Ben Banfield-Zanin b2443c782c Improve error messages in pod images manifest test 2025-05-27 10:21:57 +01:00
Gaël Goinvic 42ccc9b901 mount rendered config file using subPath 2025-05-27 10:41:50 +02:00
Gaël Goinvic 66ac0c62f1 render-config helper for volumeMounts 2025-05-27 10:28:24 +02:00
Ben Banfield-Zanin 221f79691a Merge pull request #484 from element-hq/bbz/image-validation
Image validation via schema
2025-05-27 08:44:42 +01:00
Ben Banfield-Zanin bdb47a504d Validate the image tag and/or digest via the schema 2025-05-23 16:54:10 +01:00
Ben Banfield-Zanin 5138b0becc Make it possible to fetch Helm values from another locatiion while disallowing setting in the manifest tests 2025-05-23 16:46:21 +01:00
Gaël Goinvic e586a69261 test additional config secret 2025-05-23 16:31:41 +02:00
Ben Banfield-Zanin 44d8e0d4d2 Add manifest test to ensure YAML/JSON written to and is valid 2025-05-23 09:13:59 +01:00
Gaël Goinvic bb24184ed6 tests: Verify that volume names in workloads specs are not too long 2025-05-21 14:30:31 +02:00
Ben Banfield-Zanin 04ad3a5ca5 Remove deployable_details fixture as we use all_deployable_details for every test 2025-05-20 09:31:41 +01:00
Ben Banfield-Zanin 9504c6e735 Make deployables_details constant across all tests by including all known DeployableDetails 2025-05-20 09:29:47 +01:00
Ben Banfield-Zanin bc1fe3601c Make it possible to find the expected Ingress hosts without needing to maintain a separate list of values files to test 2025-05-20 09:29:10 +01:00
Ben Banfield-Zanin 5c1a32c0fd Assert we don't set initialDelaySeconds by default for any probes anymore 2025-05-16 15:31:58 +01:00
Ben Banfield-Zanin e335610b70 Make probe thresholds and frequencies explicit 2025-05-16 15:18:01 +01:00
Ben Banfield-Zanin 367a4d91ee Fix Element Web built-in config not being override-able 2025-05-16 14:44:53 +01:00
Ben Banfield-Zanin 3f44fb87f3 Introduce a test that Pod resources are all configurable 2025-05-16 14:11:31 +01:00
Ben Banfield-Zanin dfb5e2c999 Make the manifest tests aware of Synapse workers to unify test coverage 2025-05-16 14:05:09 +01:00
Ben Banfield-Zanin 5480d0fc32 Remove iterate_deployables_image_parts as it was only used in 1 place 2025-05-16 14:00:49 +01:00
Ben Banfield-Zanin 71e187c055 Rename all_values -> values in set_helm_values as it is confused with the merge of base_values + values 2025-05-16 13:59:24 +01:00
Ben Banfield-Zanin b89a876f79 Unify tests that cover specific workload manifests 2025-05-16 11:54:07 +01:00
Ben Banfield-Zanin 86012dd405 Correctly link sidecar resources again 2025-05-13 16:21:09 +01:00
Ben Banfield-Zanin 32a7f34be4 Make startupProbes configurable 2025-05-13 13:46:22 +01:00
Ben Banfield-Zanin 33a4bb170e Make readinessProbes configurable 2025-05-13 13:46:22 +01:00
Ben Banfield-Zanin 82ed273924 Make livenessProbes configurable 2025-05-13 13:46:17 +01:00
Ben Banfield-Zanin 84099ae05b Make it possible to link a specific container to a Sidecar in the manifest tests 2025-05-13 13:45:08 +01:00