Validation
The following checks are executed by validate.sh for every framework subscribed to the async-db test. A Postgres sidecar container is started automatically before these checks run.
Response structure
Sends GET /async-db?min=10&max=50 and parses the JSON response. Verifies:
- Item count is between 1 and 50 (inclusive)
- Every item has a nested
ratingobject with ascorefield - Every item has a
tagsfield that is an array - Every item has an
activefield that is a boolean (true/false)
Content-Type header
Sends GET /async-db?min=10&max=50 and verifies the Content-Type response header is application/json.
Anti-cheat: empty range
Sends GET /async-db?min=9999&max=9999 (a price range with no matching items) and verifies the response has count equal to 0. This detects hardcoded responses or implementations that ignore the query parameters.