aisbreaker-server-integration-tests
TypeScript icon, indicating that this package has built-in type declarations

0.1.19 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i aisbreaker-server-integration-tests

Weekly Downloads

1

Version

0.1.19

License

MIT

Unpacked Size

68 kB

Total Files

28

Last publish

Collaborators

  • aisbreaker