mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 00:14:00 +00:00
test(multiplayer): add allocated compose smoke flow
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
from pathlib import Path
|
||||
import unittest
|
||||
|
||||
|
||||
ROOT = Path(__file__).parents[2]
|
||||
|
||||
|
||||
class ComposeManifestTest(unittest.TestCase):
|
||||
def test_allocated_fixture_is_independent_of_legacy_smoke(self):
|
||||
allocated = (ROOT / "compose.allocated-smoke.yml").read_text()
|
||||
legacy = (ROOT / "compose.phase6-smoke.yml").read_text()
|
||||
self.assertIn("target: testkit-api", allocated)
|
||||
self.assertIn('"18080:8080"', allocated)
|
||||
self.assertNotIn("compose.phase6-smoke.yml", allocated)
|
||||
self.assertNotIn("18080:8080", legacy)
|
||||
self.assertNotIn("max-matches", allocated)
|
||||
|
||||
def test_allocated_runner_checks_durable_retry_and_shutdown(self):
|
||||
runner = (ROOT / "scripts/verify_allocated_compose.sh").read_text()
|
||||
for marker in (
|
||||
"/v1/servers/compose-server/result",
|
||||
"compose-result-key-123456",
|
||||
"result_receipts",
|
||||
"/v1/servers/compose-server/shutdown",
|
||||
"SERVER_SHUTDOWN",
|
||||
"down --volumes --remove-orphans",
|
||||
):
|
||||
self.assertIn(marker, runner)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user