feat(pool): add mTLS worker transport and heartbeat agent

This commit is contained in:
冰朔 2026-09-11 14:58:19 +08:00
commit c40c3fdb61
3 changed files with 52 additions and 7 deletions

View file

@ -11,4 +11,7 @@ class EntryServiceTests(unittest.TestCase):
def test_state_has_authority_false(self):
value=M.read_state(); self.assertFalse(value['authority_granted'])
def test_worker_certificate_identity_is_required_by_contract(self):
self.assertIn('MTLS_CLIENT_CERT_REQUIRED', open(ROOT/'server-tools/persona-compute-pool/entry_service.py').read())
if __name__=='__main__': unittest.main()