Joystream / Joystream/joystream
Giza integration tests: Joystream CLI: Channel and video categories flow
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.4k
- Forks
- 116
- PR merge metrics
- No merged PRs in 30d
Description
Parameters:
Tv- total number of video categories to createTc- total number of channel categories to createUv- total number of video categories to updateUc- total number of channel categories to updateFv- final number of video categoriesFc- final number of channel categories
Constraints:
0 < Fc <= Tc - 2 (at least 2 channel category deletions need to be executed - one by lead and one by curator)
0 < Fv <= Tv - 2 (at least 2 video category deletions need to be executed - one by lead and one by curator)
2 <= Uc <= Tc
2 <= Uv <= Tv
Preconditions:
- A running Joystream node
- A running query node
- Curator lead is hired
- Optionally: There is a curator group with at least 1 curator (it can also be created in this flow)
Post-execution state:
- There are
Fvnew video categories andFcnew channel categories
Optimistic flow:
- Create
Tvvideo categories (use curator/lead context interchangeably) - Create
Tcchannel categories (use curator/lead context interchangeably) - Update
Uvvideo categories (use curator/lead context interchangeably) - Update
Ucchannel categories (use curator/lead context interchangeably) - Remove
Tv - Fvvideo categories (use curator/lead context interchangeably) - Remove
Tc - Fcchannel categories (use curator/lead context interchangeably) - Verify final state (
F) against query node
Possible additional failure cases to include:
- Create/Update/Remove channel/video category using curator context&key while not beeing part of curator group: expect exit code
405-AccessDenied - Create/Update/Remove channel/video category using non-curator key: expect exit code
405-AccessDenied - Create/Update category with invalid metadata as input: expect exit code
400-InvalidInput - Update/Remove non-existing channel/video category: expect exit code
400-InvalidInput
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
No files or test entry points are named in the issue. Start by locating the Joystream CLI integration-test entry point and the existing channel/video category flows, then exercise creation, updates, removals, authorization failures, invalid metadata, and missing categories. Done means the final counts match the query node and the listed failure cases produce the expected exit codes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, typescript
- Domain
- blockchain, cli, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100