MCPcopy Create free account
hub / github.com/NVIDIA/SkillSpector / TestAllowlistConfiguration

Class TestAllowlistConfiguration

tests/unit/test_input_handler_ssrf.py:190–202  ·  view source on GitHub ↗

Allowlists contain expected hosts.

Source from the content-addressed store, hash-verified

188
189
190class TestAllowlistConfiguration:
191 """Allowlists contain expected hosts."""
192
193 def test_git_hosts_include_major_forges(self) -> None:
194 assert "github.com" in ALLOWED_GIT_HOSTS
195 assert "gitlab.com" in ALLOWED_GIT_HOSTS
196 assert "bitbucket.org" in ALLOWED_GIT_HOSTS
197
198 def test_download_hosts_include_raw_github(self) -> None:
199 assert "raw.githubusercontent.com" in ALLOWED_DOWNLOAD_HOSTS
200
201 def test_download_hosts_include_huggingface(self) -> None:
202 assert "huggingface.co" in ALLOWED_DOWNLOAD_HOSTS

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected