test(mcp): register the configured scopes through credentials in the Agent 365 PRM integration test

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
yucheng 2026-10-02 20:53:00 +00:00
parent b232b8cfa7
commit 93f3fbe565

View file

@ -364,7 +364,12 @@ def test_agent_365_prm_advertises_the_servers_configured_scopes(gateway: Gateway
candidate.scenario() as scenario,
):
scoped: Final = "a365" + uuid.uuid4().hex[:8]
register_mcp(scenario, peer, scoped, scopes=["https://example/mcp/scoped/access_as_user", "offline_access"])
register_mcp(
scenario,
peer,
scoped,
credentials={"scopes": ["https://example/mcp/scoped/access_as_user", "offline_access"]},
)
unscoped: Final = "a365" + uuid.uuid4().hex[:8]
register_mcp(scenario, peer, unscoped)