MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / _stub_with_token

Function _stub_with_token

e2e/python/oidc/oidc_auth_test.py:152–157  ·  view source on GitHub ↗

Create a gRPC stub that injects a Bearer token.

(token: str)

Source from the content-addressed store, hash-verified

150
151
152def _stub_with_token(token: str) -> tuple[openshell_pb2_grpc.OpenShellStub, list[tuple[str, str]]]:
153 """Create a gRPC stub that injects a Bearer token."""
154 channel = _grpc_channel()
155 return openshell_pb2_grpc.OpenShellStub(channel), [
156 ("authorization", f"Bearer {token}")
157 ]
158
159
160# ── RBAC Tests ────────────────────────────────────────────────────────

Calls 1

_grpc_channelFunction · 0.85

Tested by

no test coverage detected