Closed f3rnandomoreno closed 2 weeks ago
This pull request includes several changes to improve configuration management, update environment variables, and refine test assertions.
Configuration management improvements:
src/main/java/com/fmoreno/telegramtaskaiagent/config/AllowedEmailsConfig.java
Dotenv
Environment variables update:
src/main/resources/.env
ALLOWED_EMAILS
SPRING_AI_OPENAI_API_KEY
TELEGRAM_TOKEN
Test refinements:
src/test/java/com/fmoreno/telegramtaskaiagent/client/TelegramClientConfigTestIT.java
testGetTaskList()
Run & review this pull request in StackBlitz Codeflow.
This pull request includes several changes to improve configuration management, update environment variables, and refine test assertions.
Configuration management improvements:
src/main/java/com/fmoreno/telegramtaskaiagent/config/AllowedEmailsConfig.java
: Updated to load allowed emails from environment variables using theDotenv
library.Environment variables update:
src/main/resources/.env
: AddedALLOWED_EMAILS
variable and provided placeholders forSPRING_AI_OPENAI_API_KEY
andTELEGRAM_TOKEN
.Test refinements:
src/test/java/com/fmoreno/telegramtaskaiagent/client/TelegramClientConfigTestIT.java
: Modified the expected response intestGetTaskList()
to be case-insensitive and check for multiple possible responses.