fix: serialize Tower migration validation
This commit is contained in:
@@ -248,3 +248,13 @@ def test_temporal_frontend_and_official_operator_contracts_exist() -> None:
|
||||
assert "provision_mol_population_history.py" in dockerfile
|
||||
assert "provision_mol_historical_landuse.py" in dockerfile
|
||||
assert "fake" not in population.lower()
|
||||
|
||||
|
||||
def test_tower_deploy_waits_for_startup_migration_before_live_smoke() -> None:
|
||||
for relative_path in ("scripts/deploy_tower.ps1", "scripts/deploy_tower.sh"):
|
||||
script = (ROOT / relative_path).read_text(encoding="utf-8")
|
||||
wait_position = script.index("wait_for_geointel_health")
|
||||
invocation_position = script.index("\nwait_for_geointel_health", wait_position)
|
||||
smoke_position = script.index("LIVE_SMOKE_CONTAINER=geointel bash scripts/live_migration_smoke.sh")
|
||||
assert "docker inspect --format" in script
|
||||
assert invocation_position < smoke_position
|
||||
|
||||
Reference in New Issue
Block a user