ATS-MBR-MEM-014Alert staff to memberships about to expire: Acceptance Test Set
MarkdownAlert staff to memberships about to expire: Acceptance Test Set
Coverage
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
- 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
- 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
- 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
- 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
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