ATS-MBR-MEM-004Withhold membership through suspension and restore its standing: Acceptance Test Set
MarkdownWithhold membership through suspension and restore its standing: Acceptance Test Set
Coverage
Test Scenarios
4 scenarios proving CAP-MBR-MEM-004; 2 bound to an existing test.
01 Reject invalid or repeated suspension transitionsapinegativetest
- Proves
BR-CAP-MBR-MEM-004-01 - Preconditions
- A principal membership has a current version, and the workspace contains both suspension and termination reasons.
- Steps
- Submit a wrong-kind reason and a stale version; repeat a valid suspension, then attempt restoration after it has already been restored.
- Expected
- Invalid reasons, stale versions and repeated transitions are refused.
- Data
- Principal memberships, both kinds of reason and callers with suspension authority.
- Bound to
- Source
- services-membership:tests/acceptance/memberships/MBR-ACC-0174.acceptance.ts#MBR-ACC-0174: A membership is suspended over its terms and restored to whatever the terms give, once each way, with no detections while suspended and the history showing the suspension
02 Override dated standing while suspension remains setapitest
- Proves
BR-CAP-MBR-MEM-004-02 BR-CAP-MBR-MEM-004-03 - Preconditions
- A membership spans multiple periods and another has expired into grace.
- Steps
- Suspend, inspect dated standing, run a sweep while suspended, and restore using a reason.
- Expected
- Suspension overrides dated reads and suppresses detections; restoration returns the term-derived standing.
- Data
- Dated principal memberships and a sweep fixture spanning the expiry boundary.
- Bound to
- Source
- services-membership:tests/acceptance/memberships/MBR-ACC-0174.acceptance.ts#MBR-ACC-0174: A membership is suspended over its terms and restored to whatever the terms give, once each way, with no detections while suspended and the history showing the suspension
03 Carry suspension and restoration to dependent membershipsapiproposed
- Proves
BR-CAP-MBR-MEM-004-04 - Preconditions
- An organization’s membership has linked flow-down children.
- Steps
- Suspend the corporate parent, restore it, and inspect every linked child and lifecycle log.
- Expected
- Each child follows both changes and has its own corresponding lifecycle events.
- Data
- An organizational principal membership with linked children.
- Source
- services-membership:modules/memberships/services/operations/staff-operations.ts:suspendChildren