mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 08:23:45 +00:00
test(multiplayer): harden agones allocation gate
This commit is contained in:
@@ -39,6 +39,11 @@ class ComposeManifestTest(unittest.TestCase):
|
||||
self.assertIn("target: allocator", allocated)
|
||||
self.assertIn("agones-provider", allocated)
|
||||
|
||||
def test_kind_runner_uses_strict_allocation_response_validation(self):
|
||||
runner = (ROOT / "scripts/verify_kind_agones.sh").read_text()
|
||||
self.assertIn("verify_agones_allocation_response.py", runner)
|
||||
self.assertNotIn("p.get(\"port\", 0) > 0", runner)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
@@ -95,7 +95,8 @@ class FleetManifestTest(unittest.TestCase):
|
||||
self.assertIn("Agones lifecycle smoke", runner)
|
||||
self.assertIn("--control-plane-url=", runner)
|
||||
self.assertIn("--allocated-mode", runner)
|
||||
self.assertIn("dynamic UDP port", runner)
|
||||
validator = (ROOT / "scripts/verify_agones_allocation_response.py").read_text()
|
||||
self.assertIn("game UDP port", validator)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user