test(federation): M2 E2E peer-add enrollment flow (FED-M2-10) #500
Reference in New Issue
Block a user
Delete Branch "feat/federation-m2-e2e"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
peer addenrollment flowpeer add <url>on Server A yields anactivepeer record with a valid cert + keyTest.createTestingModulewithFederationModuleimported andAdminGuardoverridden to allow all requestsWhat is tested
The test executes the full
peer addenrollment flow in five steps:GrantsService/EnrollmentServicedirectlyPOST /api/admin/federation/peers/keypairasserts 201 with peerId and csrPemPOST /api/federation/enrollment/:tokenwith CSR asserts 200 with certPem and certChainPemPATCH /api/admin/federation/peers/:peerId/certasserts 200Gate env vars
How to run
Quality gates
All passed locally:
Closes #461