Skip to content

test: repair #154 opener double and cover IP literal guards - #2

Draft
dinakarjs wants to merge 2 commits into
review/154-source-20261027from
fix/154-review-followup-20261027
Draft

dinakarjs wants to merge 2 commits into
review/154-source-20261027from
fix/154-review-followup-20261027

Conversation

@dinakarjs

Copy link
Copy Markdown
Owner

Author-adoption companion for agentrust-io#154, based exactly on a3cf132.

The CLI test patched _build_opener with a callable _Transport, while the default path consumes its .open method. That caused the current 412-test suite to error. The test double now exposes .open without restoring the removed urlopen module heuristic. Two additional tests independently cover the new non-global-IP guards: config cannot admit those literals, and an explicit allowlist cannot override refusal. Public IP controls pass; no network requests are made by these additions.

Validation: full unittest suite 414 passed; repository Ruff and diff whitespace pass. Original CLI regression errored before the correction. Synthetic/local evidence only; not DNS rebinding, live witness, or production network assurance. Signed commit; prepared with OpenAI Codex. Please adopt on the existing upstream PR with attribution and obtain independent review.

Prepared with OpenAI Codex.

Signed-off-by: Srinivasa Consultants <78673153+dinakarjs@users.noreply.github.com>
Guard-removal controls now fail assertions without incidental None errors.

Signed-off-by: Srinivasa Consultants <78673153+dinakarjs@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant