-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration tests #2256
Integration tests #2256
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
set auth_type to basic and require_email_verification to false
@@ -67,23 +67,6 @@ | |||
logger = setup_logger() | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved to another file
raise HTTPException( | ||
status_code=401, | ||
detail="Credential does not exist or does not belong to user", | ||
detail=error_msg, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to look into long term fix for bubbling up failed api calls
@@ -157,11 +153,12 @@ def associate_credential_to_connector( | |||
user: User | None = Depends(current_curator_or_admin_user), | |||
db_session: Session = Depends(get_session), | |||
) -> StatusResponse[int]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
used a more robust existing function to check
@@ -514,35 +514,6 @@ def _validate_connector_allowed(source: DocumentSource) -> None: | |||
) | |||
|
|||
|
|||
def _check_connector_permissions( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
used a more robust existing function
@@ -48,9 +48,12 @@ class ConnectorBase(BaseModel): | |||
|
|||
|
|||
class ConnectorUpdateRequest(ConnectorBase): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should test this somehow maybe
@@ -261,6 +259,10 @@ class ConnectorCredentialPairMetadata(BaseModel): | |||
groups: list[int] = Field(default_factory=list) | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
???
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👩🎨
How Has This Been Tested?
Yes