ssh-key: Avoid writing to tests/examples/ in unit tests
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
The affected tests are encode_ecdsa_p256_openssh, encode_ecdsa_p384_openssh, encode_ecdsa_p521_openssh, encode_ed25519_openssh, encode_rsa_3072_openssh, and encode_rsa_4096_openssh; the issue does not name their file. Read those tests and check how they choose output paths. Change them to write under CARGO_TARGET_DIR or a temporary directory, then verify they no longer write to tests/examples/.
Written by the indexing model from the issue text.
Description
Hello!
The following tests currently write into the source code directory:
encode_ecdsa_p256_openssh
encode_ecdsa_p384_openssh
encode_ecdsa_p521_openssh
encode_ed25519_openssh
encode_rsa_3072_openssh
encode_rsa_4096_openssh
This works fine when working from a git checkout, but in Debian autopkgtests, this directory is root owned and can't be written to.
Instead, the following could be used:
- A subdirectory in
CARGO_TARGET_DIR - A temporary directory like
mktemp -d
- Dominant language
- Rust
- Stars
- 246
- Forks
- 65
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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 RustCrypto/SSH
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
RustCrypto/SSH#596 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
RustCrypto/SSH#580 · 3 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 42/100
RustCrypto/SSH#527 · 4 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
RustCrypto/SSH#475 · 10 comments · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
RustCrypto/SSH#349 · 2 reactions ·
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 63/100
pop-os/cosmic-files#2117 ·
Maintainers usually reply within 2 days
-
L: java:gradle L: java:maven L: ruby:bundler T: bug 🐞
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
dependabot/dependabot-core#16547 ·
Maintainers usually reply within 1 day
-
bug status:ready-for-test
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
UniClipboard/UniClipboard#1985 · 1 comment ·
Maintainers usually reply within 1 day
-
area:breg rust
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
registrystack/registry-stack#2034 ·
Maintainers usually reply within 1 day
-
proxy: SQL-over-HTTP turns empty arrays into [""] or [false], or HTTP 500 for int and float arraysOpen
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
neondatabase/neon#12965 ·