ATS-MBR-MEM-019Report on membership now and month by month: Acceptance Test Set
MarkdownReport on membership now and month by month: Acceptance Test Set
Coverage
Test Scenarios
11 scenarios proving CAP-MBR-MEM-019; 11 bound to an existing test.
01 The live datasets answer today's status, type, episodes and unitsapitest
- Proves
BR-CAP-MBR-MEM-019-01 - Preconditions
- The well-known FAA workspace fixtures, or a workspace the test builds from them.
- Steps
- Query the memberships and affiliation views as the application role.
- Expected
- Today's status, current type, episode count, primary unit by type and every unit with its ancestors once.
- Data
- FAA programs, packages, units and members from the integration seed.
- Bound to
- Source
- services-membership:modules/memberships/tests/integration/db/membership-functions.integration.spec.ts#answers the query layer’s picks from memberships_for_queries: status today, current type, episode count
02 A month's snapshot is known at the month's endapitest
- Proves
BR-CAP-MBR-MEM-019-02 - Preconditions
- The well-known FAA workspace fixtures, or a workspace the test builds from them.
- Steps
- Plan, dispatch and run September for a workspace with a member entered in October.
- Expected
- September is planned once, published as known at its end in the workspace's zone, and does not hold the October member.
- Data
- FAA programs, packages, units and members from the integration seed.
- Bound to
- Source
- services-membership:modules/snapshots/tests/integration/snapshot-pipeline.integration.spec.ts#plans September’s first version for the tenant, once
03 Each member row is described by its term, and ties by their tree thenapitest
- Proves
BR-CAP-MBR-MEM-019-03 - Preconditions
- The well-known FAA workspace fixtures, or a workspace the test builds from them.
- Steps
- Generate September for FAA.
- Expected
- Each row describes the covering, latest or next term; Jo's two chapters are filed with the Eastern Region among their ancestors.
- Data
- FAA programs, packages, units and members from the integration seed.
- Bound to
- Source
- services-membership:modules/snapshots/tests/integration/membership-snapshot.integration.spec.ts#describes each member row by its term: the covering one, else the latest before, else the first after
04 Counts group the rows and count the month's movementsapitest
- Proves
BR-CAP-MBR-MEM-019-04 - Preconditions
- The well-known FAA workspace fixtures, or a workspace the test builds from them.
- Steps
- Generate a month with joins, renewals, lapses and reinstatements.
- Expected
- Groups by type, package, status, grace and origin, with each movement counted.
- Data
- FAA programs, packages, units and members from the integration seed.
- Bound to
- Source
- services-membership:modules/snapshots/tests/integration/membership-snapshot.integration.spec.ts#counts the member rows by type, package, status, grace and origin
06 Reruns reproduce a month or restate it by exactly the correctionsapitest
- Proves
BR-CAP-MBR-MEM-019-06 - Preconditions
- The well-known FAA workspace fixtures, or a workspace the test builds from them.
- Steps
- Rerun September with the original instant and with a later one after a correction.
- Expected
- Identical rows, then rows differing only by the corrected member; each published as the next version.
- Data
- FAA programs, packages, units and members from the integration seed.
- Bound to
- Source
- services-membership:modules/snapshots/tests/integration/membership-snapshot.integration.spec.ts#writes identical member, affiliation and count rows with the original known_at
07 The workspace chooses what each month freezesapitest
- Proves
BR-CAP-MBR-MEM-019-07 - Preconditions
- The well-known FAA workspace fixtures, or a workspace the test builds from them.
- Steps
- Configure a captured rank and a reconstructed membership field, reorder them and drop one.
- Expected
- The run freezes the configured characteristics; a dropped one is deactivated.
- Data
- FAA programs, packages, units and members from the integration seed.
- Bound to
- Source
- services-membership:tests/e2e/s10-historical-dimension.e2e.spec.ts#configures rank__c as a captured dimension of the tenant’s snapshots
08 Captured values are taken once and carried forwardunittest
- Proves
BR-CAP-MBR-MEM-019-08 - Preconditions
- The well-known FAA workspace fixtures, or a workspace the test builds from them.
- Steps
- Plan the capture for the latest month, a rerun of a published month, and a back-fill of an older month.
- Expected
- Read live, carried forward, not captured.
- Data
- FAA programs, packages, units and members from the integration seed.
- Bound to
- Source
- services-membership:modules/snapshots/tests/unit/dimension-plan.spec.ts#reads the live contact for the first capture of the latest completed month
10 A month is filed under its own month-end treeapitest
- Proves
BR-CAP-MBR-MEM-019-10 - Preconditions
- The well-known FAA workspace fixtures, or a workspace the test builds from them.
- Steps
- Restate September after Atlanta moved in October.
- Expected
- Atlanta is still under the Eastern Region in September.
- Data
- FAA programs, packages, units and members from the integration seed.
- Bound to
- Source
- services-membership:tests/e2e/s09-restructuring.e2e.spec.ts#still files Atlanta under the Eastern Region in a September restated after the move: the period end’s tree
11 Snapshot rows are purged only from a workspace being deletedapinegativetest
- Proves
BR-CAP-MBR-MEM-019-13 - Preconditions
- The well-known FAA workspace fixtures, or a workspace the test builds from them.
- Steps
- Purge a live workspace, then one being deleted.
- Expected
- The first is refused before any row goes; the second removes the rows in batches.
- Data
- FAA programs, packages, units and members from the integration seed.
- Bound to
- Source
- services-membership:modules/snapshots/tests/integration/membership-snapshot.integration.spec.ts#refuses to purge the tenant while Platform holds it active, before any row is removed (DEF-MBR-0010)