Enhancement: Regression tests for Validate Input crash fixes (SH-1)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 83/100
Research direction
Find the existing tests named test_rejects_bad_address_or_number and test_rejects_wrong_type. Add the listed malformed address, timeout, and confidence inputs to the matching tests; the optional message shortening can be considered separately. Run the relevant tests and confirm SH-1 rejects these inputs without raising.
Written by the indexing model from the issue text.
Description
The review of the Validate Input PR found inputs that crashed validate_scope and validate_timeout. The crashes were fixed, but no tests were added, so nothing would catch them coming back. SH-1 must never raise on bad input.
- Add "192.168.1.0 /24" and "192.168.1.0\t/24" (space or tab before the slash) to test_rejects_bad_address_or_number
- Add "192.168.1.0/²" and "192.168.1.0/٢٤" (non-English digits after the slash) to the same test
- Add 10400 and -10400 to the timeout's test_rejects_wrong_type
- Add "٥٠" to the confidence's test_rejects_wrong_type
- Optional: shorten long values in rejection messages (show() cuts them to about 40 characters), with a test
Milestone: M2. Raised in #26 PR.
- Dominant language
- Python
- Stars
- 1
- Forks
- 1
- Avg merge
- 9h 46m
- Merged PRs (30d)
- 35
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 Bearkat-Professionals/Software-Engineering-Project
-
SUBTASK #86: Password hashing (BB-5)Possibly taken @Edgeless6 claimed this today. Openbackend Low Priority subtask
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Bearkat-Professionals/Software-Engineering-Project#87 · 1 assignee ·
Maintainers usually reply within 1 day
-
SUBTASK #86: Manage user accounts (admin)Possibly taken @Edgeless6 claimed this today. Openbackend Low Priority subtask
Difficulty 4/5 Over a week Newbie friendliness 20/100
Bearkat-Professionals/Software-Engineering-Project#92 · 1 assignee ·
Maintainers usually reply within 1 day
-
SUBTASK #86: Login screen and signed-in layoutPossibly taken @Solo-Her0 claimed this today. Openfrontend Low Priority subtask
Difficulty 4/5 3-5 days Newbie friendliness 28/100
Bearkat-Professionals/Software-Engineering-Project#91 · 1 assignee ·
Maintainers usually reply within 1 day
-
SUBTASK #86: Sessions and route protection in the Application Controller (2.0)Possibly taken @javi120467 claimed this today. Openbackend Low Priority security subtask
Difficulty 4/5 3-5 days Newbie friendliness 22/100
Bearkat-Professionals/Software-Engineering-Project#90 · 1 assignee ·
Maintainers usually reply within 1 day
-
SUBTASK #86: Sign in and account rules (2.1)Possibly taken @PavlockBlaine03 claimed this today. Openbackend Low Priority subtask
Difficulty 4/5 3-5 days Newbie friendliness 42/100
Bearkat-Professionals/Software-Engineering-Project#89 · 1 assignee ·
Maintainers usually reply within 1 day
All issues in Bearkat-Professionals/Software-Engineering-Project
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
earthtojake/text-to-cad#758 ·
Maintainers usually reply within 1 day
-
domain:upgrades enhancement needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
gke-labs/kube-agents#4634 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
agardnerIT/opamp-server-py#116 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
elviskahoro/sdk-python-attio#144 · 1 comment ·
Maintainers usually reply within 1 day