ATS-MBR-MEM-016Let officers act for their members: Acceptance Test Set
MarkdownLet officers act for their members: Acceptance Test Set
Coverage
Test Scenarios
7 scenarios proving CAP-MBR-MEM-016; 7 bound to an existing test.
01 Officers change only allowed fields of their own membersapinegativetest
- Proves
BR-CAP-MBR-MEM-016-01 - Preconditions
- The well-known FAA workspace fixtures, or a workspace the test builds from them.
- Steps
- Dana changes Jo's e-mail and date of birth; the Atlanta officer changes a member outside Atlanta.
- Expected
- The e-mail goes to CRM; the date of birth is refused naming it and nothing is sent; the outside member is not found.
- Data
- FAA programs, packages, units and members from the integration seed.
- Bound to
- Source
- services-membership:modules/memberships/tests/integration/services/unit-scope.integration.spec.ts#refuses a field outside the list, field_not_allowed naming it, and sends nothing
02 The allowed fields are the union of the granting roles' listsunittest
- Proves
BR-CAP-MBR-MEM-016-02 - Preconditions
- The well-known FAA workspace fixtures, or a workspace the test builds from them.
- Steps
- Decide the fields for one role, two roles, a scoped role with no list, staff with no list, and no grant.
- Expected
- Its list, the union, nothing, everything, nothing.
- Data
- FAA programs, packages, units and members from the integration seed.
- Bound to
- Source
- services-membership:modules/memberships/tests/unit/unit-scope.spec.ts#allows the fields of the role that granted the key for a unit in the chain
04 Officers renew members in scope, grace includedapitest
- Proves
BR-CAP-MBR-MEM-016-04 - Preconditions
- The well-known FAA workspace fixtures, or a workspace the test builds from them.
- Steps
- The Atlanta officer renews Gil, in grace, and Sam, outside Atlanta.
- Expected
- Gil's renewal is placed with the officer as acting user; Sam is not found.
- Data
- FAA programs, packages, units and members from the integration seed.
- Bound to
- Source
- services-membership:modules/memberships/tests/integration/services/unit-scope.integration.spec.ts#places the Atlanta officer’s renewal of Gil, in grace, with the officer as acting user
05 Officers enrol only into their own units, and must name oneapinegativetest
- Proves
BR-CAP-MBR-MEM-016-05 - Preconditions
- The well-known FAA workspace fixtures, or a workspace the test builds from them.
- Steps
- The Atlanta officer enrols into Atlanta, into another chapter and into no unit; staff enrol into no unit.
- Expected
- Atlanta is placed; the other two are refused out_of_scope; staff's is allowed.
- Data
- FAA programs, packages, units and members from the integration seed.
- Bound to
- Source
- services-membership:modules/memberships/tests/integration/services/unit-scope.integration.spec.ts#places an enrolment in the officer’s own chapter
06 Officer orders are prepared like a checkout and are idempotent by requestapitest
- Proves
BR-CAP-MBR-MEM-016-06 - Preconditions
- The well-known FAA workspace fixtures, or a workspace the test builds from them.
- Steps
- The officer enrols a member, retries the same request, and asks for one the preparation refuses.
- Expected
- One order; the retry names it; the refusal answers its code.
- Data
- FAA programs, packages, units and members from the integration seed.
- Bound to
- Source
- services-membership:tests/acceptance/security/MBR-ACC-0465.acceptance.ts#MBR-ACC-0465
07 The financial summary shows officers only their units' linesapitest
- Proves
BR-CAP-MBR-MEM-016-07 - Preconditions
- The well-known FAA workspace fixtures, or a workspace the test builds from them.
- Steps
- Read Jo's summary as the Atlanta officer, a national-scoped officer, staff, and for an identity-bound member.
- Expected
- Atlanta's dues line only; both dues lines without the national package line; every line; the package line by the identity unit.
- Data
- FAA programs, packages, units and members from the integration seed.
- Bound to
- Source
- services-membership:modules/memberships/tests/integration/services/unit-scope.integration.spec.ts#shows the Atlanta officer only the Atlanta dues line