Skip to content

ATS-MBR-MEM-011Define what applications are for and read the applications: Capability Test Specification

Markdown

ATS-MBR-MEM-011

Define what applications are for and read the applications: Capability Test Specification

Markdown
  • DocumentProposed

KindAcceptance test setProduct areaMembershipModuleMemberships, Applications and Membership BillingRevision2

Read atservices-membership 5994c270react-console baf6dae3

Coverage

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

Test Scenarios

7 scenarios proving CAP-MBR-MEM-011; 4 bound to an existing test.

01 An application process records what it is forruleapitest
Proves
BR-CAP-MBR-MEM-011-01
Preconditions
The well-known FAA workspace fixtures, or a workspace the test builds from them.
Steps
[ { "do": "Create a complete process, read it back, change it at the version read and clear its optional fields.", "expect": "Every value reads back as sent; review defaults to on.", "provenance": "test", "source": [ "services-membership:tests/acceptance/commerce/MBR-ACC-0346.acceptance.ts#MBR-ACC-0346" ] } ]
Expected
Every value reads back as sent; review defaults to on.
Data
FAA programs, packages, units and members from the integration seed.
Bound to
Source
services-membership:tests/acceptance/commerce/MBR-ACC-0346.acceptance.ts#MBR-ACC-0346
02 A process's window and packages are checked, naming the fieldvalidationapinegativetest
Proves
BR-CAP-MBR-MEM-011-02
Preconditions
The well-known FAA workspace fixtures, or a workspace the test builds from them.
Steps
[ { "do": "Save a window that closes before it opens, a package the workspace lacks and a package of another program.", "expect": "Each is refused 400 naming closes_on or the package entry.", "provenance": "test", "source": [ "services-membership:tests/e2e/database-refusals.e2e.spec.ts#refuses a window that closes before it opens 400 naming closes_on", "services-membership:tests/e2e/database-refusals.e2e.spec.ts#refuses a package the workspace does not have 400 naming package_ids[1]", "services-membership:tests/e2e/database-refusals.e2e.spec.ts#refuses a package of another program 400 naming package_ids[0] and the program" ] } ]
Expected
Each is refused 400 naming closes_on or the package entry.
Data
FAA programs, packages, units and members from the integration seed.
Bound to
Source
services-membership:tests/e2e/database-refusals.e2e.spec.ts#refuses a window that closes before it opens 400 naming closes_on
03 Outcome parameters are limited in content and sizeboundaryapinegativetest
Proves
BR-CAP-MBR-MEM-011-03
Preconditions
The well-known FAA workspace fixtures, or a workspace the test builds from them.
Steps
[ { "do": "Save outcome parameters with an unknown key, and over 2 KB.", "expect": "Both are refused.", "provenance": "test", "source": [ "services-membership:tests/acceptance/commerce/MBR-ACC-0347.acceptance.ts#MBR-ACC-0347" ] } ]
Expected
Both are refused.
Data
FAA programs, packages, units and members from the integration seed.
Bound to
Source
services-membership:tests/acceptance/commerce/MBR-ACC-0347.acceptance.ts#MBR-ACC-0347
04 The list answers the same packages as the single readruleapitest
Proves
BR-CAP-MBR-MEM-011-04
Preconditions
The well-known FAA workspace fixtures, or a workspace the test builds from them.
Steps
[ { "do": "List processes and read one.", "expect": "Each listed process carries its packages in order, as the read does.", "provenance": "test", "source": [ "services-membership:tests/e2e/application-processes-api.e2e.spec.ts#answers each listed process with the packages it offers, in their order, as the read of the process does" ] } ]
Expected
Each listed process carries its packages in order, as the read does.
Data
FAA programs, packages, units and members from the integration seed.
Bound to
Source
services-membership:tests/e2e/application-processes-api.e2e.spec.ts#answers each listed process with the packages it offers, in their order, as the read of the process does
05 Apply the configured review process to checkoutinteractionapiproposed
Proves
BR-CAP-MBR-MEM-009-11 BR-CAP-MBR-MEM-011-01
Preconditions
An active application process reviews the selected package.
Steps
[ { "do": "Prepare checkout before approval, then record a matching approval and prepare with its application.", "expect": "The first preparation needs approval; the approved application permits preparation of the same offer.", "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:tests/acceptance/commerce/MBR-ACC-0346.acceptance.ts#MBR-ACC-0346" ] } ]
Expected
The first preparation needs approval; the approved application permits preparation of the same offer.
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:tests/acceptance/commerce/MBR-ACC-0346.acceptance.ts#MBR-ACC-0346
06 Connect a reviewed offer to its decision and orderinteractionapiproposed
Proves
BR-CAP-MBR-MEM-011-01 BR-CAP-MBR-MEM-012-05 BR-CAP-MBR-MEM-012-06
Preconditions
A saved process offers a package and a typed application refers to that process.
Steps
[ { "do": "Read the offered package, deliver approval, inspect the recorded application and prepared order.", "expect": "The recorded decision places the selected offered package and chosen chapter dues once.", "provenance": "proposed", "source": [ "services-membership:tests/acceptance/commerce/MBR-ACC-0346.acceptance.ts#MBR-ACC-0346", "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 recorded decision places the selected offered package and chosen chapter dues once.
Data
An isolated workspace with the specified membership, package, chapter and partner-port fixtures.
Source
services-membership:tests/acceptance/commerce/MBR-ACC-0346.acceptance.ts#MBR-ACC-0346,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
07 Apply member reach when reading attached applicationsinteractionapiproposed
Proves
BR-CAP-MBR-MEM-011-04 BR-CAP-MBR-MEM-015-04
Preconditions
An officer reaches one member and not another; each has an application, and a third application has no member.
Steps
[ { "do": "Read and list applications with the officer and a workspace-wide reader.", "expect": "The officer receives only reachable member applications; the unattached application is available only to the workspace-wide reader.", "provenance": "proposed", "source": [ "services-membership:tests/e2e/application-processes-api.e2e.spec.ts#answers each listed process with the packages it offers, in their order, as the read of the process does", "services-membership:modules/memberships/tests/integration/services/unit-scope.integration.spec.ts#reads Jo for the Atlanta officer, the Savannah affiliation marked out of scope" ] } ]
Expected
The officer receives only reachable member applications; the unattached application is available only to the workspace-wide reader.
Data
An isolated workspace with the specified membership, package, chapter and partner-port fixtures.
Source
services-membership:tests/e2e/application-processes-api.e2e.spec.ts#answers each listed process with the packages it offers, in their order, as the read of the process does,services-membership:modules/memberships/tests/integration/services/unit-scope.integration.spec.ts#reads Jo for the Atlanta officer, the Savannah affiliation marked out of scope

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.