Skip to content

Default the integration harness to the file keyring - #518

Draft
joe4dev wants to merge 2 commits into
mainfrom
fix-integration-test-keyring
Draft

joe4dev wants to merge 2 commits into
mainfrom
fix-integration-test-keyring

Conversation

@joe4dev

@joe4dev joe4dev commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

Motivation

The integration-test keyring helpers used the system keyring unless LSTK_KEYRING=file was set, which make test-integration only did on macOS. Running the logout tests locally (e.g. go test -run TestLogout) overwrote and then deleted the developer's real lstk login keychain entry.

Solution

Default the suite to the file keyring and export LSTK_KEYRING=file so spawned lstk processes agree. LSTK_TEST_SYSTEM_KEYRING=1 opts back into the system keyring; the now-redundant macOS export in scripts/test-integration.sh is removed so the opt-in also works via make. Three Docker logout tests that run lstk with an isolated HOME now seed the token into that HOME, since they only passed before because the keychain is global.

CI: Linux and macOS already used the file keyring. Windows used Credential Manager and keeps doing so via LSTK_TEST_SYSTEM_KEYRING=1.

Docs

Test-harness only; nothing user-facing.

Review

Self-merge candidate: small, test-only change that removes a destructive local side effect.

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
@joe4dev joe4dev added semver: patch docs: skip Pull request does not require documentation changes labels Sep 25, 2026
… Windows on system keyring

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs: skip Pull request does not require documentation changes semver: patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant