Skip to content

ATS-COM-CAT-009Retrieve purchased digital files: Acceptance Test Set

Markdown

ATS-COM-CAT-009

Retrieve purchased digital files: Acceptance Test Set

Markdown
  • DocumentProposed

Planning

Proves capability
CAP-COM-CAT-009

KindAcceptance test setProduct areaCommerceModuleCatalog and Selling ConfigurationRevision1

Read atservices-commerce c8b66a98react-console baf6dae3

Test Scenarios

3 scenarios proving CAP-COM-CAT-009; 3 bound to an existing test.

01 Member downloads reject foreign, expired and unknown grantsapinegativetest
Proves
BR-CAP-COM-CAT-009-01 BR-CAP-COM-CAT-009-05
Preconditions
Two contacts and an expired grant exist
Steps
Use another contact’s grant, the expired grant and an unknown grant
Expected
Access or expiry refusals apply, and the unknown grant is not found
Data
Entitlement grants
Bound to
services-commerce:modules/catalog/tests/e2e/downloads.e2e.spec.js#refuses an expired grant 409 and another member’s grant 403
services-commerce:modules/catalog/tests/e2e/downloads.e2e.spec.js#answers 404 for a grant of another kind, an unknown grant, and a file the product does not have
Source
services-commerce:modules/catalog/tests/e2e/downloads.e2e.spec.js#refuses an expired grant 409 and another member’s grant 403
02 Download retries preserve finite capacityapitest
Proves
BR-CAP-COM-CAT-009-02
Preconditions
A finite grant and distinct request keys are available
Steps
Consume the allowed uses, repeat a key and request another new use
Expected
Retries retain the prior remaining count and a new request after exhaustion fails
Data
Entitlement grants
Bound to
services-commerce:modules/catalog/tests/e2e/downloads.e2e.spec.js#gives the grant’s owner a signed link and consumes one use per Idempotency-Key (a retry costs nothing), until the grant is exhausted (409)
Source
services-commerce:modules/catalog/tests/e2e/downloads.e2e.spec.js#gives the grant’s owner a signed link and consumes one use per Idempotency-Key (a retry costs nothing), until the grant is exhausted (409)
03 Console support preserves download capacityapitest
Proves
BR-CAP-COM-CAT-009-04
Preconditions
A member has a limited grant
Steps
Request its file as console support
Expected
A signed link returns without consuming member usage
Data
Entitlement grants
Bound to
services-commerce:modules/catalog/tests/e2e/downloads.e2e.spec.js#gives a console user the link without consuming a use
Source
services-commerce:modules/catalog/tests/e2e/downloads.e2e.spec.js#gives a console user the link without consuming a use

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.