Skip to content

feature: scope api keys to orgs #236

feature: scope api keys to orgs

feature: scope api keys to orgs #236

Triggered via pull request November 22, 2024 02:44
Status Failure
Total duration 53s
Artifacts

ts-sdk-tests.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors
src/functions/organization/organization.test.ts > Organization Tests > create an api key and verify it works: clients/ts-sdk/src/fetch-client.ts#L177
Error: HTTP error! status: Payload {"role":1,"name":"test suite key"} route: post https://api.trieve.ai/api/organization/api_key ❯ TrieveFetchClient.fetch src/fetch-client.ts:177:13 ❯ src/functions/organization/organization.test.ts:13:28
src/functions/organization/organization.test.ts > Organization Tests > create an expired api key and verify it does not work: clients/ts-sdk/src/fetch-client.ts#L177
Error: HTTP error! status: Payload {"expires_at":"2024-11-21 02:45:03","role":1,"name":"test suite key"} route: post https://api.trieve.ai/api/organization/api_key ❯ TrieveFetchClient.fetch src/fetch-client.ts:177:13 ❯ src/functions/organization/organization.test.ts:39:28
src/functions/organization/organization.test.ts > Organization Tests > create an api key with a filter for test and verify it excludes chunks without the tag: clients/ts-sdk/src/fetch-client.ts#L177
Error: HTTP error! status: Payload {"role":1,"name":"test suite key","default_params":{"filters":{"must":[{"field":"tag_set","match_all":["test"]}]}}} route: post https://api.trieve.ai/api/organization/api_key ❯ TrieveFetchClient.fetch src/fetch-client.ts:177:13 ❯ src/functions/organization/organization.test.ts:75:28
tests
Process completed with exit code 1.
build-test
dashboard#build: command (/home/runner/_work/trieve/trieve/frontends/dashboard) /tmp/yarn--1732243502762-0.5155963667282686/yarn run build exited (2)
build-test
Process completed with exit code 2.