@@ -57,6 +57,13 @@ class Phase15OpsTests(unittest.TestCase):
|
||||
self.assertIn('CMD ["python", "-m", "app.main"', dockerfile)
|
||||
self.assertNotIn('CMD ["python", "/app/app/main.py"', dockerfile)
|
||||
|
||||
def test_ci_smoke_checks_run_inside_compose_services(self):
|
||||
workflow = (ROOT / ".github/workflows/ci.yml").read_text()
|
||||
self.assertIn("docker compose exec -T api", workflow)
|
||||
self.assertIn("docker compose exec -T web", workflow)
|
||||
self.assertNotIn("curl --fail http://localhost:8000/api/v1/health/live", workflow)
|
||||
self.assertNotIn("curl --fail http://localhost:8080/healthz", workflow)
|
||||
|
||||
def test_backup_restore_integrity_and_checksum(self):
|
||||
with TemporaryDirectory() as tmp:
|
||||
root = Path(tmp); db = root / "prospects.db"; backups = root / "backups"
|
||||
|
||||
Reference in New Issue
Block a user