Integration tests (#2256)

* initial commit

* almost done

* finished 3 tests

* minor refactor

* built out initial permisison tests

* reworked test_deletion

* removed logging

* all original tests have been converted

* renamed user_groups to user_group

* mypy

* added test for doc set permissions

* unified naming for manager methods

* Refactored models and added new deletion test

* minor additions

* better logging+fixed input variables

* commented out failed tests

* Added readme

* readme update

* Added auth to IT

set auth_type to basic and require_email_verification to false

* Update run-it.yml

* used verify and added to readme

* added api key manager
This commit is contained in:
hagen-danswer
2024-09-01 15:21:00 -07:00
committed by GitHub
parent 634de83d72
commit 8d443ada5b
40 changed files with 2890 additions and 612 deletions

View File

@@ -73,7 +73,7 @@ export function updateCredential(credentialId: number, newDetails: any) {
([key, value]) => key !== "name" && value !== ""
)
);
return fetch(`/api/manage/admin/credentials/${credentialId}`, {
return fetch(`/api/manage/admin/credential/${credentialId}`, {
method: "PUT",
headers: {
"Content-Type": "application/json",
@@ -86,7 +86,7 @@ export function updateCredential(credentialId: number, newDetails: any) {
}
export function swapCredential(newCredentialId: number, connectorId: number) {
return fetch(`/api/manage/admin/credentials/swap`, {
return fetch(`/api/manage/admin/credential/swap`, {
method: "PUT",
headers: {
"Content-Type": "application/json",