Skip to content

ATS-MBR-MEM-014Alert staff to memberships about to expire: Acceptance Test Set

Markdown

ATS-MBR-MEM-014

Alert staff to memberships about to expire: Acceptance Test Set

Markdown
  • DocumentProposed

Planning

Proves capability
CAP-MBR-MEM-014

KindAcceptance test setProduct areaMembershipModuleMemberships, Applications and Membership BillingRevision1

Read atservices-membership 5994c270react-console baf6dae3

Test Scenarios

8 scenarios proving CAP-MBR-MEM-014; 7 bound to an existing test.

01 Only unrenewed principal terms ending inside the horizon are expiringapitest
Proves
BR-CAP-MBR-MEM-014-01
Preconditions
The well-known FAA workspace fixtures, or a workspace the test builds from them.
Steps
Sweep with terms ending inside and outside the horizon, a renewed one, and with a wider workspace horizon.
Expected
Items open only for unrenewed terms inside the horizon; the wider horizon reaches further.
Data
FAA programs, packages, units and members from the integration seed.
Bound to
services-membership:modules/memberships/tests/integration/services/expiring-memberships.integration.spec.ts#publishes an open item for a membership whose term ends inside the horizon
Source
services-membership:modules/memberships/tests/integration/services/expiring-memberships.integration.spec.ts#publishes an open item for a membership whose term ends inside the horizon
02 The horizon is the workspace's own business datesunittest
Proves
BR-CAP-MBR-MEM-014-02
Preconditions
The well-known FAA workspace fixtures, or a workspace the test builds from them.
Steps
Compute the window across a year end and either side of the workspace's midnight.
Expected
Both ends included, on the workspace's dates, moving at its midnight.
Data
FAA programs, packages, units and members from the integration seed.
Bound to
services-membership:modules/memberships/tests/unit/expiring-memberships.spec.ts#is the business date through the date plus the horizon, both inclusive
services-membership:modules/memberships/tests/unit/expiring-memberships.spec.ts#starts on the tenant’s business date, not the UTC date
services-membership:modules/memberships/tests/unit/expiring-memberships.spec.ts#moves to the next day once the tenant’s midnight passes
Source
services-membership:modules/memberships/tests/unit/expiring-memberships.spec.ts#is the business date through the date plus the horizon, both inclusive
03 Each alert is labelled, carries its facts and goes to the renewals responsibilityunittest
Proves
BR-CAP-MBR-MEM-014-03
Preconditions
The well-known FAA workspace fixtures, or a workspace the test builds from them.
Steps
Build the item for a named member and for one CRM names no one for.
Expected
Keyed by the membership, labelled by name or number, with the declared facts, addressed to the default responsibility.
Data
FAA programs, packages, units and members from the integration seed.
Bound to
services-membership:modules/memberships/tests/unit/expiring-memberships.spec.ts#is keyed by the membership and about it, labelled with the member’s name
services-membership:modules/memberships/tests/unit/expiring-memberships.spec.ts#is labelled by the membership number when CRM names no one
Source
services-membership:modules/memberships/tests/unit/expiring-memberships.spec.ts#is keyed by the membership and about it, labelled with the member’s name
04 Alerts are scoped by the member's units, then the workspaceapitest
Proves
BR-CAP-MBR-MEM-014-04
Preconditions
The well-known FAA workspace fixtures, or a workspace the test builds from them.
Steps
Publish items for a chapter member and a member of no unit.
Expected
The chapter member's item is scoped chapter, zone, region, then workspace; the other by the workspace alone.
Data
FAA programs, packages, units and members from the integration seed.
Bound to
services-membership:modules/memberships/tests/integration/services/expiring-memberships.integration.spec.ts#scopes the item by the membership’s chapter and its ancestors, most specific first, then the tenant
services-membership:modules/memberships/tests/unit/expiring-memberships.spec.ts#is scoped by the tenant alone when the membership has no unit
Source
services-membership:modules/memberships/tests/integration/services/expiring-memberships.integration.spec.ts#scopes the item by the membership’s chapter and its ancestors, most specific first, then the tenant
05 An alert is due on the last day and expires thirty days laterapitest
Proves
BR-CAP-MBR-MEM-014-05
Preconditions
The well-known FAA workspace fixtures, or a workspace the test builds from them.
Steps
Publish an item and read its instants.
Expected
Due at the start of the term's last day in the workspace's zone; expiring thirty days later.
Data
FAA programs, packages, units and members from the integration seed.
Bound to
services-membership:modules/memberships/tests/integration/services/expiring-memberships.integration.spec.ts#is due at the start of the term’s last day and expires thirty days after it
Source
services-membership:modules/memberships/tests/integration/services/expiring-memberships.integration.spec.ts#is due at the start of the term’s last day and expires thirty days after it
06 The daily sweep refreshes and clears its alertsapitest
Proves
BR-CAP-MBR-MEM-014-06
Preconditions
The well-known FAA workspace fixtures, or a workspace the test builds from them.
Steps
Run two passes, the second after the term leaves the horizon.
Expected
The second pass refreshes the same item, then clears it; each pass is stamped.
Data
FAA programs, packages, units and members from the integration seed.
Bound to
services-membership:modules/memberships/tests/integration/services/expiring-memberships.integration.spec.ts#refreshes the same item’s facts on the next pass rather than opening another
services-membership:modules/memberships/tests/integration/services/expiring-memberships.integration.spec.ts#resolves the item cleared on the next pass once its term leaves the horizon
Source
services-membership:modules/memberships/tests/integration/services/expiring-memberships.integration.spec.ts#refreshes the same item’s facts on the next pass rather than opening another
07 Renewal and termination resolve the alert in their own transactionsapitest
Proves
BR-CAP-MBR-MEM-014-07
Preconditions
The well-known FAA workspace fixtures, or a workspace the test builds from them.
Steps
Renew one expiring member and terminate another.
Expected
The first item is resolved renewed and the second terminated, in the writes' transactions.
Data
FAA programs, packages, units and members from the integration seed.
Bound to
Source
services-membership:modules/memberships/tests/integration/services/expiring-memberships.integration.spec.ts#resolves the item renewed in the staff renewal’s transaction
08 A refused alert fails its business write, and nothing is published while switched offapinegativeproposed
Proves
BR-CAP-MBR-MEM-014-09
Preconditions
The well-known FAA workspace fixtures, or a workspace the test builds from them.
Steps
Switch publishing off and renew; switch it on with an unregistered definition and renew.
Expected
Off: the renewal succeeds and nothing is published. On and refused: the renewal fails with the refusal.
Data
FAA programs, packages, units and members from the integration seed.
Source
services-membership:docs/attention.md#3. When items are published and resolved

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.