ATS-CRM-REG-007Check an address against the saved policy: Acceptance Test Set
MarkdownCheck an address against the saved policy: Acceptance Test Set
Coverage
Test Scenarios
5 scenarios proving CAP-CRM-REG-007; 5 bound to an existing test.
01 Preview explains the winning ruleapitest
- Proves
BR-CAP-CRM-REG-007-01 - Preconditions
- Saved postal coverage includes Boston.
- Steps
- Preview an address within that coverage.
- Expected
- The answer identifies the region and winning rule with an explanation of its kind and position.
- Data
- A single policy entry.
- Bound to
- Source
- services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#the preview › answers the region the address would be given and the rule that decides it
03 Preview is read-authorized workapinegativetest
- Proves
BR-CAP-CRM-REG-007-04 - Preconditions
- One caller has regional read and another has no regional keys.
- Steps
- Preview the same address as each caller.
- Expected
- The reader receives a result and the unauthorized caller receives a refusal.
- Data
- Two identities with distinct authority.
- Bound to
- Source
- services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#the preview › answers 403 to a context carrying no regions permission at all
05 Preview explains lack of coverageapitest
- Proves
BR-CAP-CRM-REG-007-06 - Preconditions
- The policy has no fallback.
- Steps
- Preview an uncovered address.
- Expected
- The response has neither target nor winning rule and explains the absence of a match.
- Data
- Previously persisted geographic coverage.
- Bound to
- Source
- services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#the preview › answers no region and no rule for an address no rule covers