Joystream / Joystream/joystream
Giza integration tests: Distributor node: Managing buckets
Open
Nobody has claimed this yet.
estimate-6h
giza
network-integration-test
- Dominant language
- Rust
- Stars
- 1.4k
- Forks
- 116
- PR merge metrics
- No merged PRs in 30d
Description
Preconditions:
- A running Joystream node
- A running query-node
- A running storage node which has sufficient limits set to handle the scenario
- A running distributor node which has sufficient limits set to handle the scenario
Variables:
c- distributor node'sconfig.intervals.cacheCleanupvalue
Flow:
- Create 3 data objects (
A,B,C) and upload them to 3 separate bags (bA,bBandbC, for example:static:council,static:wg:content,static:wg:storageor 3 separate channel bags) - Assign the bags to the distributor node bucket
- Send
POSTrequest tooperator/api/v1/set-bucketssetting the buckets to[bA] - Send
GETrequest to/api/v1/buckets - Expect
{ "bucketIds": [bA] }response - Request assets
A,B,C - Expect responses:
A:200 OKB:421 Misdirected requestC:421 Misdirected request
- Send
POSTrequest tooperator/api/v1/set-bucketssetting the buckets to[bB, bC] - Send
GETrequest to/api/v1/buckets - Expect
{ "bucketIds": [bB, bC] }response - Wait
cseconds - Request assets
A,B,C - Expect responses:
A:421 Misdirected requestB:200 OKC:200 OK
- Send
POSTrequest tooperator/api/v1/set-bucketssetting the buckets toall(empty value) - Send
GETrequest to/api/v1/buckets - Expect
{ "allByWorkerId": operatorId }response - Request assets
A,B,C - Expect all
200 OKresponses
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Giza integration-test suite and the distributor operator endpoints named in the issue: operator/api/v1/set-buckets, /api/v1/buckets, and asset requests. Reproduce the flow with a running Joystream node, query-node, storage node, and distributor node; done means the bucket responses and all listed 200 OK or 421 Misdirected request results match the expectations before and after cache cleanup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- distributed-systems, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100