ATS-CRM-REG-001Maintain the region catalogue: Acceptance Test Set
MarkdownMaintain the region catalogue: Acceptance Test Set
Coverage
Test Scenarios
9 scenarios proving CAP-CRM-REG-001; 7 bound to an existing test.
01 Identifier validation preserves the legacy grammarapinegativetest
- Proves
BR-CAP-CRM-REG-001-01 - Preconditions
- Regional creation is authorized.
- Steps
- Submit an identifier with a space and another combining permitted punctuation.
- Expected
- The invalid identifier receives a field-specific refusal; the valid identifier is accepted.
- Data
- An invalid spaced identifier and valid identifiers covering the accepted grammar.
- Bound to
- Source
- services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#answers 400 for an id with a space, naming the characters an id may hold
02 Blank names prevent creationapinegativetest
- Proves
BR-CAP-CRM-REG-001-02 - Preconditions
- The caller can create regions.
- Steps
- Submit creation without a name and with a name containing only spaces.
- Expected
- Both requests fail name validation and persist nothing.
- Data
- The authorized workspace requires no additional records.
- Bound to
- Source
- services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#answers 400 for a body with no name
04 Replacement requires a current versionapinegativeproposed
- Proves
BR-CAP-CRM-REG-001-05 - Preconditions
- The saved region has version two.
- Steps
- Replace using version one, omit the version, then use version two.
- Expected
- The requests respectively conflict, fail validation and save at version three.
- Data
- A regional definition with an intervening edit.
- Source
- FND-CRM-REG-022
07 Reads are workspace-specificapinegativetest
- Proves
BR-CAP-CRM-REG-001-08 - Preconditions
- A caller can access two workspaces.
- Steps
- Read and list one workspace’s region through the other workspace.
- Expected
- The single read returns not found and the list excludes the foreign region.
- Data
- Two distinct customer workspaces.
- Bound to
- Source
- services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#the regions › answers 404 for this tenant's region read in another tenant, to a context that covers both
08 An ambiguous create response does not duplicate the regionunittest
- Proves
BR-CAP-CRM-REG-001-10 - Preconditions
- The drawer already chose the creation identifier.
- Steps
- Lose the first response and retry creation.
- Expected
- Lookup recovers the original region and no duplicate is created.
- Data
- A request double that loses the initial response.
- Bound to
- Source
- react-console:lib/configuration/regions.test.ts#the regions api writes (D-05, D-35, D-43) › creates a region under the id the drawer chose and finds it when the answer was lost