Page MenuHomePhabricator

Add integration tests for chunks
Closed, ResolvedPublic5 Estimated Story Points

Description

In order to test chunk endpoints and feature in our dev and prod env, we need to add the following tests.

To do

  • Add and/or update the following tests for chunks
  • check that GET/POST /v2/snapshots/ has chunks field in responses
  • check that GET/POST /v2/snapshots/{identifier} has chunks field in response
  • check that GET/POST /v2/snapshots/{snapshot_identifier}/chunks works
  • check that GET/POST /v2/snapshots/{snapshot_identifier}/chunks/{identifier} works for both cases full version (enwiki_namespace_0_chunk_2) and short hand version (2). Note that GET /v2/snapshots/enwiki_namespace_0/chunks/2 resolves internally as GET /v2/snapshots/enwiki_namespace_0/chunks/enwiki_namespace_0_chunk_2
  • check that HEAD /v2/snapshots/{snapshot_identifier}/chunks/{identifier}/download works
  • check that GET /v2/snapshots/{snapshot_identifier}/chunks/{identifier}/download works

Acceptance criteria

  • The current passing integration tests pass. Newly added tests pass.

Event Timeline

JArguello-WMF set the point value for this task to 5.Aug 15 2024, 1:23 PM