Skip to content

TST-CRM-REG-047Local regional API lifecycle

Markdown

TST-CRM-REG-047

Local regional API lifecycle

Markdown
  • DocumentDraft
  • ImplementationImplemented
  • ConformanceNot verified

Product areaCRMModuleRegionsRevision1

Read atservices-crm a8d1364f

Isolation
Suite-owned workspace and records in the prepared test database.
Kind
api-lifecycle
Repository
services-crm
Environment
local
Implementation state
implemented
Latest result
not-run
Conformance
not-verified

Test Files

Implements

ATS-CRM-REG-001-01 ATS-CRM-REG-001-02 ATS-CRM-REG-001-07 ATS-CRM-REG-002-01 ATS-CRM-REG-002-02 ATS-CRM-REG-003-01 ATS-CRM-REG-003-02 ATS-CRM-REG-004-02 ATS-CRM-REG-004-03 ATS-CRM-REG-004-04 ATS-CRM-REG-004-07 ATS-CRM-REG-005-01 ATS-CRM-REG-005-03 ATS-CRM-REG-005-04 ATS-CRM-REG-005-06 ATS-CRM-REG-005-07 ATS-CRM-REG-007-01 ATS-CRM-REG-007-02 ATS-CRM-REG-007-03 ATS-CRM-REG-007-04 ATS-CRM-REG-007-05 ATS-CRM-REG-008-01 ATS-CRM-REG-011-03 ATS-CRM-REG-011-05 ATS-CRM-REG-012-01 ATS-CRM-REG-012-06 ATS-CRM-REG-013-03 ATS-CRM-REG-013-06

Assertions

IdStatementProvenance
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
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#answers 400 naming the field for a name of nothing but spaces
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
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#the regions › answers none of this tenant's regions to another tenant's list
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#answers 409 to a delete of a region in use
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#leaves nothing to read after the delete: a later GET answers 404
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#answers assignment off and no rules before the tenant saves any
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#switches assignment on with an empty rule list, and reads back on with no rules
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#answers 400 for a postal code rule with no ranges
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#drops a country given on a rule that is not a postal code rule, as it drops the other types’ lists
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#answers 400 for a country that is not an ISO 3166-1 alpha-2 code
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#answers the created rule with its ranges, its country upper-cased and its note
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#leaves the rules alone when the body carries none, so switching the settings on keeps them
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#reads the replaced rules and their ranges back exactly as the save answered them
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#appends a created rule at the end of the order
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#lists both rules in the order they are tried
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#closes the gap the delete left, so the rule that remains is at the first position
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#answers 400 for an order that does not name every rule of the tenant
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#puts the rules in the order the body names, renumbering the positions
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
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#the last enabled rule while assignment is on › deletes it
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#the last enabled rule while assignment is on › leaves assignment on, so the console’s switch stays usable with no rule
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
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#answers 404 for a rule the tenant does not have
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
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#the preview › says why, so the console can show it
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#the preview › writes nothing: the tenant still has the rules it had
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#the preview › answers 403 to a context carrying no regions permission at all
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#the preview › answers 400 for a body with no address
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#the preview › answers no region and no rule for an address no rule covers
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#answers a contact posted through the contacts route with no region: the assignment is a reaction to the save
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#gives that contact its region once the change event has been delivered
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#answers the recalculation, completed within the request
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#moves the contact to its region under the new rules
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#answers 404 for a recalculation the tenant does not have
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#the regions › answers 403 when the signed context does not cover the path's tenant
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#the rules, one at a time › answers 200 to a list for a context carrying only the read permission
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#the rules, one at a time › answers 403 to a create for that same read-only context

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.