This repository was archived by the owner on Mar 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
This repository was archived by the owner on Mar 20, 2024. It is now read-only.
Rewrite tests for v2 #62
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requesthacktoberfesthelp wantedExtra attention is neededExtra attention is needed
Description
Due the re-write of of the middleware to version 2, the old tests had to be disabled
The latest working versions of the tests is here
Here's an overview
Caching
Collection types
✓ should let uncached requests go through
✓ following request should be cached
✓ following request should have response status 304
✓ caches based on headers
✓ doesnt cache models not present in the config
✓ busts the cache on a POST resquest
✓ busts the cache of a related model (via direct relation) on a POST resquest
✓ busts the cache of a related model (via relation in component) on a POST resquest
✓ busts the cache on an admin panel POST resquest
✓ busts the cache on an admin panel POST publishing change
✓ busts the cache on a PUT resquest
✓ busts the cache of a related model (via direct relation) on a PUT resquest
✓ busts the cache of a related model (via relation in component) on a PUT resquest
✓ busts the cache on an admin panel PUT resquest
✓ busts the cache on an admin panel PUT publishing change
✓ busts the cache on a DELETE resquest
✓ busts the cache of a related model (via direct relation) on a DELETE resquest
✓ busts the cache of a related model (via relation in component) on a DELETE resquest
✓ busts the cache on an admin panel DELETE resquest
✓ busts the cache on an admin panel DELETE publishing change
when an ID is specified on a POST request
✓ doesn't bust the cache for other IDs
when an ID is specified on a PUT request
✓ doesn't bust the cache for other IDs
when an ID is specified on a DELETE request
✓ doesn't bust the cache for other IDs
Single types
✓ caches non pluralized endpoints
✓ doesnt cache pluralized endpoints
✓ busts the cache on a POST resquest
✓ busts the cache on an admin panel POST resquest
✓ busts the cache on a PUT resquest
✓ busts the cache on an admin panel PUT resquest
✓ busts the cache on a DELETE resquest
✓ busts the cache on an admin panel DELETE resquest
Ideally the tests would be an end-to-end setup which spins up an actual Strapi instance to test against.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthacktoberfesthelp wantedExtra attention is neededExtra attention is needed