@@ -46,6 +46,12 @@ class Phase15OpsTests(unittest.TestCase):
|
||||
finally:
|
||||
server.shutdown(); server.server_close(); thread.join(timeout=2)
|
||||
|
||||
def test_web_healthcheck_uses_image_runtime(self):
|
||||
compose = (ROOT / "docker-compose.yml").read_text()
|
||||
self.assertIn("python", compose)
|
||||
self.assertIn("urllib.request.urlopen('http://127.0.0.1:8080/healthz'", compose)
|
||||
self.assertNotIn('test: ["CMD", "wget", "--spider"', compose)
|
||||
|
||||
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