Skip to content

The agent that grows with you

test: deny credential-bearing creation to restricted principals

Teknium2d2fdff90d41
diff --git a/tests/gateway/fixtures/local_session_peer.py b/tests/gateway/fixtures/local_session_peer.py
index a33572c00ba..bc13c689795 100644
--- a/tests/gateway/fixtures/local_session_peer.py
+++ b/tests/gateway/fixtures/local_session_peer.py
@@ -88,7 +88,8 @@ async def probe(peer, target, kind):
(Principal('creator', 'foreign', frozenset({'session:create'}), 'foreign'),
'profile_mismatch')):
try:
- create_local_session(authority, actor, {})
+ create_local_session(authority, actor, {'api_key': 'denied-launch-key',
+ 'provider': 'custom', 'base_url': 'http://127.0.0.1:9/v1', 'ignore_rules': True})
except RuntimeStoreError as exc:
assert exc.reason == reason
else: