Skip to content

docs/test: trim PostgreSQL IAM follow-ups from #421 - #459

Merged
tianzhou merged 2 commits into
mainfrom
claude/charming-cannon-wkmk8b
Oct 9, 2026
Merged

tianzhou merged 2 commits into
mainfrom
claude/charming-cannon-wkmk8b

Conversation

@tianzhou

@tianzhou tianzhou commented Oct 9, 2026

Copy link
Copy Markdown
Member

Follow-up to #421.

  • docs/config/toml.mdx: condense the 27-line PostgreSQL IAM section to 4 lines covering the user-facing behavior (per-connection tokens for PostgreSQL, pool refresh for MySQL/MariaDB, SSO re-login then retry). Implementation detail (in-flight token sharing, socket-timeout vs. helper, env vars in other shells, MFA) is dropped; lazy/connection_timeout already have their own sections.
  • src/utils/__tests__/aws-rds-credentials.test.ts: replace the node --import tsx subprocess with an embedded script by two in-process tests against the real SDK with isolated fake credential files (vi.stubEnv):
    • a rotated shared credentials file is re-read (fails if ignoreCache is removed; verified),
    • a failing credential_process succeeds on retry after "login".
      The env-var and missing-profile cases are dropped — aws-rds-signer.test.ts already covers profile isolation with mocks.

Validation: all unit tests pass (pnpm test); the only failures are the Docker integration suites, which fail identically on main in this environment.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WWd28U5E4UgGFeyimwDnFN


Generated by Claude Code

claude added 2 commits October 9, 2026 03:15
Follow-up to #421: keep the user-facing behavior (per-connection tokens
for PostgreSQL, pool refresh for MySQL/MariaDB, SSO re-login) and drop
implementation detail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WWd28U5E4UgGFeyimwDnFN
Replace the tsx subprocess and embedded script with two in-process tests
that cover what the mocked signer tests can't: a rotated shared
credentials file is re-read (ignoreCache), and a credential_process that
failed succeeds on retry. Env-var and missing-profile cases are already
covered by aws-rds-signer.test.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WWd28U5E4UgGFeyimwDnFN
Copilot AI balanced review requested due to automatic review settings October 9, 2026 04:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The documentation remains accurate and the revised tests preserve the intended credential-refresh coverage.

0 open findings

What changed in this PR

Condenses PostgreSQL IAM documentation and simplifies real-SDK credential refresh tests.

Changes:

  • Clarifies token refresh behavior across supported databases.
  • Replaces subprocess testing with isolated in-process Vitest cases.
File Description
docs/​config/​toml.mdx Streamlines IAM authentication guidance.
src/​utils/​__tests__/​aws-rds-credentials.test.ts Tests credential rotation and login recovery in process.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@tianzhou
tianzhou merged commit 157c774 into main Oct 9, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants