Add test coverage for demo token validation in non-production mode#5
Merged
sunchuljung merged 4 commits intofeat/v0.3.1from Feb 4, 2026
Merged
Add test coverage for demo token validation in non-production mode#5sunchuljung merged 4 commits intofeat/v0.3.1from
sunchuljung merged 4 commits intofeat/v0.3.1from
Conversation
Co-authored-by: sunchuljung <108503957+sunchuljung@users.noreply.github.com>
Co-authored-by: sunchuljung <108503957+sunchuljung@users.noreply.github.com>
Co-authored-by: sunchuljung <108503957+sunchuljung@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Address feedback on architecture updates for Rune plugin
Add test coverage for demo token validation in non-production mode
Feb 4, 2026
sunchuljung
approved these changes
Feb 4, 2026
9 tasks
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.
The test suite verified that old tokens are rejected but didn't validate that demo tokens work through the same validation path when
VAULT_TOKENSenv var is not set.Changes:
test_demo_tokens_work_when_env_var_not_setpositioned aftertest_old_tokens_not_validto validate the inverse casepytest.skipifto explicitly skip in production environments whereVAULT_TOKENSis configuredThis ensures demo tokens flow through
validate_token()successfully in local/test environments, complementing the existing test that verifies old hardcoded tokens are rejected.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.