[test]: cover `ancestry --json` rejections in the CLI tests
Maintainers usually reply within 1 day
@khoap1220-hue is already working on this.
Since Oct 26, 2026.
- #29 by @khoap1220-hue — closed without merging
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Read CONTRIBUTING.md for the repository's checks, then inspect the existing ancestry tests in crates/externalize-cli/tests/cli.rs. Add JSON-mode rejection cases for the missing header file and the certified ledger, checking parsed verified and error fields and exit status 1. Done means both cases pass with cargo test -p externalize-cli and fail if rejection output is text.
Written by the indexing model from the issue text.
Description
Context
crates/externalize-cli/tests/cli.rs checks externalize ancestry when it succeeds (text and --json), and when a header file is missing (text). A script reading --json gets no test for the failure shape.
Scope
Add tests that run ancestry --json and parse stdout as JSON:
- with only
ledger-03dca33f.xdr.gz:verifiedisfalse,errormentionsheader missing, exit status 1; - with
--ledger 64791359(the certified ledger itself):errormentionsnot older, exit status 1.
Done when
- Both tests pass with
cargo test -p externalize-cli. - They fail if
ancestryprinted a rejection as text in--jsonmode.
Comment to be assigned before starting. Read CONTRIBUTING.md for the checks this repository runs.
- Dominant language
- Rust
- Stars
- 1
- Forks
- 1
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
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.
More from Externalize-Labs/externalize
-
area/docs complexity:trivial documentation good first issue Stellar Wave
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Externalize-Labs/externalize#14 ·
Maintainers usually reply within 1 day
-
area/cli complexity:trivial enhancement good first issue Stellar Wave
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Externalize-Labs/externalize#12 ·
Maintainers usually reply within 1 day
-
[enhancement]: `proveAncestor` in the WebAssembly packagePossibly taken @khoap1220-hue claimed this 1 day ago. Openarea/wasm complexity:medium enhancement Stellar Wave
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Externalize-Labs/externalize#26 · 1 comment ·
Maintainers usually reply within 1 day
-
[enhancement]: `ancestry --headers` accepts an archive directoryPossibly taken @khoap1220-hue claimed this 1 day ago. Openarea/cli complexity:medium enhancement Stellar Wave
Difficulty 4/5 3-5 days Newbie friendliness 56/100
Externalize-Labs/externalize#25 · 1 comment ·
Maintainers usually reply within 1 day
-
[enhancement]: show what was checked in the browser verifierPossibly taken @sparkysolutions10-pixel claimed this 1 day ago. Openarea/site complexity:trivial enhancement good first issue Stellar Wave
Difficulty 2/5 1-3 hours Newbie friendliness 1/100
Externalize-Labs/externalize#24 · 1 comment ·
Maintainers usually reply within 1 day
All issues in Externalize-Labs/externalize
Similar issues
-
muse P3
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
HerringtonDarkholme/hd-lang#923 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
longbridge/gpui-kit#3712 ·
Maintainers usually reply within 1 day
-
documentation enhancement SIEM
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ADORSYS-GIS/wazuh-agent-status#265 ·
Maintainers usually reply within 2 days
-
documentation enhancement SIEM
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
ai-priority/P2 enhancement user-priority/P0
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day