Skip to content

ATS-MBR-MEM-012Act on an application's decision: Capability Test Specification

Markdown

ATS-MBR-MEM-012

Act on an application's decision: Capability Test Specification

Markdown
  • DocumentProposed

Planning

Proves capability
CAP-MBR-MEM-012

Design

Executed by
TST-MBR-MEM-002, TST-MBR-MEM-003

KindAcceptance test setProduct areaMembershipModuleMemberships, Applications and Membership BillingRevision2

Read atservices-membership 5994c270react-console baf6dae3

Coverage

  • Rule gap: FND-MBR-MEM-094
  • Transition gap: FND-MBR-MEM-094
  • Validation covered
  • Permission gap: FND-MBR-MEM-094
  • Edge gap: FND-MBR-MEM-094
  • Failure covered
  • Boundary gap: FND-MBR-MEM-094
  • Concurrency covered
  • Invariant gap: FND-MBR-MEM-094
  • Interaction covered

Test Scenarios

9 scenarios proving CAP-MBR-MEM-012; 6 bound to an existing test.

01 Decisions about other applications' subjects are refusedvalidationunitnegativetest
Proves
BR-CAP-MBR-MEM-012-01
Preconditions
The well-known FAA workspace fixtures, or a workspace the test builds from them.
Steps
[ { "do": "Deliver a golden decision document, and one about another application's subject kind.", "expect": "The golden one parses; the other is refused.", "provenance": "test", "source": [ "services-membership:modules/applications/tests/unit/submissions-contracts.spec.ts#parses the golden delivery document", "services-membership:modules/applications/tests/unit/submissions-contracts.spec.ts#refuses a decision about a subject kind that is not Membership’s" ] } ]
Expected
The golden one parses; the other is refused.
Data
FAA programs, packages, units and members from the integration seed.
Bound to
Source
services-membership:modules/applications/tests/unit/submissions-contracts.spec.ts#parses the golden delivery document
02 Decision codes map onto the engine's kindsruleunittest
Proves
BR-CAP-MBR-MEM-012-02
Preconditions
The well-known FAA workspace fixtures, or a workspace the test builds from them.
Steps
[ { "do": "Map each join and membership code.", "expect": "As the rule lists.", "provenance": "test", "source": [ "services-membership:modules/applications/tests/unit/submissions-contracts.spec.ts#maps a join’s codes onto the engine’s kinds", "services-membership:modules/applications/tests/unit/submissions-contracts.spec.ts#maps renew, reinstate and change onto approved for a membership" ] } ]
Expected
As the rule lists.
Data
FAA programs, packages, units and members from the integration seed.
Bound to
Source
services-membership:modules/applications/tests/unit/submissions-contracts.spec.ts#maps a join’s codes onto the engine’s kinds
03 A decision is recorded once, superseded explicitly and never by a stale oneconcurrencyunittest
Proves
BR-CAP-MBR-MEM-012-03 INV-DOM-MBR-MEM-004-06
Preconditions
The well-known FAA workspace fixtures, or a workspace the test builds from them.
Steps
[ { "do": "Record a decision, redeliver it, deliver one naming it as superseded, and deliver a stale one.", "expect": "Recorded, answered as recorded, replaced, ignored.", "provenance": "test", "source": [ "services-membership:modules/applications/tests/unit/submissions-contracts.spec.ts#records a first decision", "services-membership:modules/applications/tests/unit/submissions-contracts.spec.ts#answers a redelivered decision as recorded", "services-membership:modules/applications/tests/unit/submissions-contracts.spec.ts#records a decision that supersedes the recorded one", "services-membership:modules/applications/tests/unit/submissions-contracts.spec.ts#ignores a decision a later one has replaced" ] } ]
Expected
Recorded, answered as recorded, replaced, ignored.
Data
FAA programs, packages, units and members from the integration seed.
Bound to
Source
services-membership:modules/applications/tests/unit/submissions-contracts.spec.ts#records a first decision
04 The decision leaves the application in its kind's statustransitionunittest
Proves
BR-CAP-MBR-MEM-012-04
Preconditions
The well-known FAA workspace fixtures, or a workspace the test builds from them.
Steps
[ { "do": "Deliver approval, rejection, revision required, withdrawal and closing outcomes to the pure status mapping.", "expect": "The mapping returns decided for approval and rejection, awaiting applicant for revision, withdrawn for withdrawal and closed for closing.", "provenance": "test", "source": [ "services-membership:modules/applications/tests/unit/submissions-contracts.spec.ts#leaves the application decided, awaiting the applicant or withdrawn by the decision’s kind" ] } ]
Expected
The mapping returns decided for approval and rejection, awaiting applicant for revision, withdrawn for withdrawal and closed for closing.
Data
FAA programs, packages, units and members from the integration seed.
Bound to
Source
services-membership:modules/applications/tests/unit/submissions-contracts.spec.ts#leaves the application decided, awaiting the applicant or withdrawn by the decision’s kind
05 An approval orders the dues once and acknowledgesinteractionapitest
Proves
BR-CAP-MBR-MEM-012-05 BR-CAP-MBR-MEM-012-06
Preconditions
The well-known FAA workspace fixtures, or a workspace the test builds from them.
Steps
[ { "do": "Deliver Nia's approval with Atlanta chosen, then redeliver it.", "expect": "One order for the package and Atlanta's dues is placed and recorded; the purchase stays pending; the redelivery calls neither port.", "provenance": "test", "source": [ "services-membership:modules/applications/tests/integration/decision-handler.integration.spec.ts#records an approval, places the dues order through the port (package and chapter dues), and acknowledges it", "services-membership:modules/applications/tests/integration/decision-handler.integration.spec.ts#leaves the approved purchase pending in Membership until Commerce fulfils it", "services-membership:modules/applications/tests/integration/decision-handler.integration.spec.ts#answers a redelivered decision as recorded and calls neither port again" ] } ]
Expected
One order for the package and Atlanta's dues is placed and recorded; the purchase stays pending; the redelivery calls neither port.
Data
FAA programs, packages, units and members from the integration seed.
Bound to
Source
services-membership:modules/applications/tests/integration/decision-handler.integration.spec.ts#records an approval, places the dues order through the port (package and chapter dues), and acknowledges it
06 A rejection releases the reserved term and keeps the membershiptransitionapiproposed
Proves
BR-CAP-MBR-MEM-012-07
Preconditions
The well-known FAA workspace fixtures, or a workspace the test builds from them.
Steps
[ { "do": "Reject an application whose purchase was placed; withdraw and close others.", "expect": "Each pending term is cancelled with its reservation; the memberships remain.", "provenance": "proposed", "source": "services-membership:modules/applications/tests/integration/decision-handler.integration.spec.ts#cancels the pending term of a rejected application whose purchase was placed" } ]
Expected
Each pending term is cancelled with its reservation; the memberships remain.
Data
FAA programs, packages, units and members from the integration seed.
Source
services-membership:modules/applications/tests/integration/decision-handler.integration.spec.ts#cancels the pending term of a rejected application whose purchase was placed
07 A decision for an unknown submission is not acknowledgedfailureapinegativetest
Proves
BR-CAP-MBR-MEM-012-09
Preconditions
The well-known FAA workspace fixtures, or a workspace the test builds from them.
Steps
[ { "do": "Deliver a decision for a submission Membership has no application of.", "expect": "Answered unknown_submission and not acknowledged.", "provenance": "test", "source": [ "services-membership:modules/applications/tests/integration/decision-handler.integration.spec.ts#does not acknowledge a decision for a submission it holds no application of" ] } ]
Expected
Answered unknown_submission and not acknowledged.
Data
FAA programs, packages, units and members from the integration seed.
Bound to
Source
services-membership:modules/applications/tests/integration/decision-handler.integration.spec.ts#does not acknowledge a decision for a submission it holds no application of
08 Use decided application contacts for assigned coverageinteractionapiproposed
Proves
BR-CAP-MBR-MEM-006-06 BR-CAP-MBR-MEM-012-05 BR-CAP-MBR-MEM-012-06
Preconditions
A corporate application carries selected people and a package with an assigned-seat cap.
Steps
[ { "do": "Record the application approval, fulfil its purchase, and derive children from the selected people.", "expect": "The decided application supplies the assignment candidates and the resulting assigned holdings respect the selected cap.", "provenance": "proposed", "source": [ "services-membership:modules/memberships/services/flowdown/organization-children.ts:wantedPeople", "services-membership:modules/applications/tests/integration/decision-handler.integration.spec.ts#records an approval, places the dues order through the port (package and chapter dues), and acknowledges it" ] } ]
Expected
The decided application supplies the assignment candidates and the resulting assigned holdings respect the selected cap.
Data
An isolated workspace with the specified membership, package, chapter and partner-port fixtures.
Source
services-membership:modules/memberships/services/flowdown/organization-children.ts:wantedPeople,services-membership:modules/applications/tests/integration/decision-handler.integration.spec.ts#records an approval, places the dues order through the port (package and chapter dues), and acknowledges it
09 Keep an approved purchase pending until fulfilmentinteractionapiproposed
Proves
BR-CAP-MBR-MEM-009-11 BR-CAP-MBR-MEM-012-05 BR-CAP-MBR-MEM-012-06
Preconditions
A typed application selects a package and dues-bearing chapter.
Steps
[ { "do": "Deliver approval, inspect the placed purchase, redeliver approval, then fulfil the authorization.", "expect": "The decision creates one pending purchase; only fulfilment commits coverage, and decision replay creates no second order.", "provenance": "proposed", "source": [ "services-membership:modules/applications/tests/integration/decision-handler.integration.spec.ts#answers requires_approval for the package the process reviews when no decided application is named", "services-membership:modules/applications/tests/integration/decision-handler.integration.spec.ts#records an approval, places the dues order through the port (package and chapter dues), and acknowledges it" ] } ]
Expected
The decision creates one pending purchase; only fulfilment commits coverage, and decision replay creates no second order.
Data
An isolated workspace with the specified membership, package, chapter and partner-port fixtures.
Source
services-membership:modules/applications/tests/integration/decision-handler.integration.spec.ts#answers requires_approval for the package the process reviews when no decided application is named,services-membership:modules/applications/tests/integration/decision-handler.integration.spec.ts#records an approval, places the dues order through the port (package and chapter dues), and acknowledges it

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.