fix: fix remaining integration test issues
- Fix user-profile tests to use apiKeyClient instead of session auth - Fix stats test for new nested response structure (data.overview.*) - Enable conversation tests with CI OpenAI key setup - Add setup-openai-key.ts script to configure test user's OPENAI_API_KEY - Update workflow to run OpenAI key setup before tests
This commit is contained in:
parent
a8a52c972c
commit
907ac2301b
7 changed files with 141 additions and 26 deletions
8
.github/workflows/integration-tests.yml
vendored
8
.github/workflows/integration-tests.yml
vendored
|
|
@ -50,6 +50,14 @@ jobs:
|
|||
INTEGRATION_TEST_USER_ID: ${{ secrets.INTEGRATION_TEST_USER_ID }}
|
||||
run: pnpm --filter=@tpmjs/web test:cleanup-orphans
|
||||
|
||||
- name: Setup OpenAI key for test user
|
||||
env:
|
||||
DATABASE_URL: ${{ secrets.DATABASE_URL }}
|
||||
API_KEY_ENCRYPTION_SECRET: ${{ secrets.API_KEY_ENCRYPTION_SECRET }}
|
||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||
INTEGRATION_TEST_USER_ID: ${{ secrets.INTEGRATION_TEST_USER_ID }}
|
||||
run: pnpm --filter=@tpmjs/web test:setup-openai-key
|
||||
|
||||
- name: Wait for API
|
||||
run: |
|
||||
echo "Checking if API is available at $TEST_BASE_URL..."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue