mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 18:13:42 +00:00
feat(multiplayer): harden allocator rollout
This commit is contained in:
@@ -38,6 +38,16 @@ class KubernetesPolicyTest(unittest.TestCase):
|
||||
self.assertIn(required, deployment)
|
||||
self.assertNotRegex(deployment, r"(?im)^\s*(password|token|private.?key):\s*[^\n]+$")
|
||||
|
||||
def test_allocator_rollout_keeps_capacity_and_has_health_probes(self):
|
||||
deployment = self.read("allocator-deployment.yaml")
|
||||
for required in (
|
||||
"type: RollingUpdate", "maxUnavailable: 0", "maxSurge: 1",
|
||||
"terminationGracePeriodSeconds: 10",
|
||||
"readinessProbe:", "livenessProbe:",
|
||||
"path: /metrics", "port: metrics",
|
||||
):
|
||||
self.assertIn(required, deployment)
|
||||
|
||||
def test_allocator_network_policy_has_only_metrics_data_agones_and_dns_flows(self):
|
||||
policies = self.read("network-policies.yaml")
|
||||
allocator = policies.split("name: allocator-allowed-flows", 1)[-1]
|
||||
|
||||
Reference in New Issue
Block a user