Skip to content

ATS-MBR-MEM-004Withhold membership through suspension and restore its standing: Acceptance Test Set

Markdown

ATS-MBR-MEM-004

Withhold membership through suspension and restore its standing: Acceptance Test Set

Markdown
  • DocumentProposed

Planning

Proves capability
CAP-MBR-MEM-004

KindAcceptance test setProduct areaMembershipModuleMemberships, Applications and Membership BillingRevision1

Read atservices-membership 5994c270react-console baf6dae3

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
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
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
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
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
04 Refuse direct intervention on a dependent membershipapinegativeproposed
Proves
BR-CAP-MBR-MEM-004-05
Preconditions
A flow-down membership belongs to a principal parent.
Steps
Attempt to suspend the dependent membership directly.
Expected
The request is rejected and identifies its source parent.
Data
A parent and a linked child membership.
Source
services-membership:modules/memberships/services/operations/staff-operations.ts:refuseChild

The Markdown files under specs/ in rhythmsoftware/rhythm-v2-docs are the canonical source of truth. This reader is a generated, read-only projection of them.