Repository navigation
fix: Update secret lookup tests for uppercase provider token names - #1208
Merged
Merged
Conversation
get_provider_env_key now returns the uppercase name, so the lowercase <provider>_token alias no longer resolved. Build it explicitly. Co-authored-by: openhands <openhands@all-hands.dev>
tofarr
marked this pull request as ready for review
November 5, 2026 16:56
This reverts commit 6d8907e.
The provider token is only ever GITHUB_TOKEN, so drop the lowercase alias from secret lookups and update the tests to match. Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Contributor
Contributor
|
🚀 Released in 1.87.0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
HUMAN:
AGENT:
Why
ProviderHandler.get_provider_env_keywas deliberately changed to return the uppercase name (GITHUB_TOKEN), so the provider token is only ever uppercase. The secret lookup tests still expected a lowercasegithub_tokenalias, which broketest_signs_one_reference_per_name_and_lists_the_restandtest_the_lowercase_alias_names_the_provider_token_without_a_custom_secret. The tests were stale; the service is unchanged.Summary
github_tokenfrom the provider expectations. A lowercasegithub_tokenis now an ordinary custom secret name, and with no such secret it is reported as missing.server/services/secret_lookup_service.py.Issue Number
N/A
How to Test
uv run pytest tests/unit/server/routes/test_secret_lookups.py(needs a Docker daemon for the PostgreSQL test container).Not run by the agent: the sandbox has no Docker daemon. Only
ruff checkwas run on the test file. Pre-commit hooks were bypassed (--no-verify) at the user's request; CI will run them.Video/Screenshots
N/A
Type
Notes
The branch history contains earlier commits that touched the service and were reverted; squash on merge. Net diff is the test file only.
This PR was created by an AI agent (OpenHands) on behalf of the user.
Enterprise server image for this PR: