Server Integration Tests: Test AIsBreaker API Client and (Demo) Server together
Configuration (environment variables), e.g. to configure in CI environment:
- AISBREAKER_SERVER_URL (optional, default: http://localhost:3000)
- AISBREAKER_API_KEY
- OPENAI_API_KEY e.g. with
. ./setenv-for-localhost-server-integration-tests.sh
# don't forget to start the server on http://localhost:3000
or with
. ./setenv-for-dev-server-integration-tests.sh
# make sure the server runs on https://api.demo.app-dev.cloud.service01.net
Run all tests:
./server-integration-tests.sh
Attention for Testing with loclhost server: Don't forget to set env variable AUTH_ENCRYPTION_KEYPHRASE
before starting the server, e.g. with
cd packages/aisbreaker-server/
. ../../../setenv.sh
./startDev.sh