Skip to content

feat: Add comprehensive tests for env vars and secrets (ATXP-1436)#36

Merged
emilioacc merged 1 commit intomainfrom
emilio/atxp-1436-add-missing-tests-for-paas-features-env-vars-secrets
Jan 28, 2026
Merged

feat: Add comprehensive tests for env vars and secrets (ATXP-1436)#36
emilioacc merged 1 commit intomainfrom
emilio/atxp-1436-add-missing-tests-for-paas-features-env-vars-secrets

Conversation

@emilioacc
Copy link
Contributor

Summary

  • Add unit tests for parseEnvArg(), parseEnvFile(), validateEnvVarName()
  • Add tests for SENSITIVE_PATTERNS and getReservedEnvNames()
  • Add tests for --env flag precedence over --env-file
  • Add tests for sensitive pattern warnings
  • Create secrets.test.ts with tests for parseKeyValue(), isValidSecretKey()
  • Add tests for secretsSetCommand, secretsListCommand, secretsDeleteCommand
  • Export helper functions for direct unit testing

Test plan

  • All new unit tests pass in CI
  • Existing tests continue to pass
  • Type checking passes

Closes ATXP-1436 (partial - CLI side)

🤖 Generated with Claude Code

- Add unit tests for parseEnvArg(), parseEnvFile(), validateEnvVarName()
- Add tests for SENSITIVE_PATTERNS and getReservedEnvNames()
- Add tests for --env flag precedence over --env-file
- Add tests for sensitive pattern warnings
- Create secrets.test.ts with tests for parseKeyValue(), isValidSecretKey()
- Add tests for secretsSetCommand, secretsListCommand, secretsDeleteCommand
- Export helper functions for direct unit testing

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@emilioacc emilioacc merged commit 39b4403 into main Jan 28, 2026
1 check passed
@emilioacc emilioacc deleted the emilio/atxp-1436-add-missing-tests-for-paas-features-env-vars-secrets branch January 28, 2026 21:22
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.

1 participant