mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-24 02:03:56 +00:00
Fix auth test assertions to match updated error messages
Update test assertions in test_auth.py and test_auth_github.py to expect "Invalid Authorization header format" instead of "Missing or invalid Authorization header" to align with the error message changes made in the auth implementation. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
d07351bfcd
commit
409996695b
3 changed files with 5 additions and 5 deletions
|
|
@ -323,7 +323,7 @@ class GitHubTokenAuthProvider(AuthProvider):
|
|||
|
||||
async def validate_token(self, token: str, scope: dict | None = None) -> User:
|
||||
"""Validate a GitHub token by calling the GitHub API.
|
||||
|
||||
|
||||
This validates tokens issued by GitHub (personal access tokens or OAuth tokens).
|
||||
"""
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue