mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-24 18:40:44 +02:00
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:
@@ -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",
|
||||
|
Reference in New Issue
Block a user