ATS-CRM-REG-005Maintain individual rules alongside the shared policy: Acceptance Test Set
MarkdownMaintain individual rules alongside the shared policy: Acceptance Test Set
Coverage
Test Scenarios
7 scenarios proving CAP-CRM-REG-005; 6 bound to an existing test.
01 Insertion supports append and earlier placementapitest
- Proves
BR-CAP-CRM-REG-005-01 - Preconditions
- Two rules occupy consecutive positions.
- Steps
- Create without a position and then create at the first position.
- Expected
- The first appends; the second precedes the others, which retain a consecutive order.
- Data
- A two-entry assignment policy.
- Bound to
- Source
- services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#appends a created rule at the end of the order
02 Individual editing checks its versionapinegativeproposed
- Proves
BR-CAP-CRM-REG-005-02 - Preconditions
- A rule has version two.
- Steps
- Replace with version one, omit the replacement version and patch with the current version test.
- Expected
- The stale and missing versions are rejected while the current patch succeeds.
- Data
- A single policy entry.
- Source
- FND-CRM-REG-022
04 Reorder requires the complete distinct setapinegativetest
- Proves
BR-CAP-CRM-REG-005-05 - Preconditions
- Two identified rules exist.
- Steps
- Submit incomplete, duplicate and unknown-containing orders, then the valid reversed order.
- Expected
- Invalid orders identify their problems and preserve order; the valid order reverses the sequence.
- Data
- A two-entry assignment policy.
- Bound to
- Source
- services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#answers 400 for an order that does not name every rule of the tenant
06 Enabled assignment tolerates removal of its final ruleapitest
- Proves
BR-CAP-CRM-REG-005-09 - Preconditions
- The policy has one enabled rule.
- Steps
- Disable and then remove that rule.
- Expected
- The requests succeed and assignment remains enabled with no rules.
- Data
- A single policy entry.
- Bound to
- Source
- services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#the last enabled rule while assignment is on › disables it, leaving the tenant assignment on with nothing to match
07 Rule reads cannot cross workspacesapinegativetest
- Proves
BR-CAP-CRM-REG-005-11 - Preconditions
- Separate workspaces hold rules.
- Steps
- List through the other workspace and request an unknown rule.
- Expected
- No foreign rule appears and the unknown read returns not found.
- Data
- Two distinct customer workspaces.
- Bound to
- Source
- services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#the rules, one at a time › answers none of this tenant's rules to another tenant's list