_validate_url_host rejects an scp URL whose host is not in the allowlist.
()
| 124 | |
| 125 | |
| 126 | def test_scp_disallowed_host_raises() -> None: |
| 127 | """_validate_url_host rejects an scp URL whose host is not in the allowlist.""" |
| 128 | with pytest.raises(ValueError, match="not in the allowed hosts"): |
| 129 | InputHandler()._validate_url_host("git@malicious.internal:org/repo.git", ALLOWED_GIT_HOSTS) |
| 130 | |
| 131 | |
| 132 | def test_scp_private_ip_raises() -> None: |
nothing calls this directly
no test coverage detected