Skip to content
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

Allow test servers to return errors responses #2291

Merged
merged 1 commit into from
Feb 4, 2025
Merged

Allow test servers to return errors responses #2291

merged 1 commit into from
Feb 4, 2025

Conversation

shreyas-goenka
Copy link
Contributor

@shreyas-goenka shreyas-goenka commented Feb 4, 2025

Changes

The APIs at Databricks when returning a non 200 status code will return a response body of the format:

{
  "error_code": "Error code",
  "message": "Human-readable error message."
}

This PR adds the ability to stub non-200 status codes in the test server, allowing us to mock API errors from Databricks.

Tests

New test

@shreyas-goenka shreyas-goenka marked this pull request as ready for review February 4, 2025 16:28
@denik
Copy link
Contributor

denik commented Feb 4, 2025

Looks good!

@denik denik disabled auto-merge February 4, 2025 16:37
@denik denik enabled auto-merge February 4, 2025 16:38
@denik denik disabled auto-merge February 4, 2025 16:38
@denik denik merged commit d86ad91 into main Feb 4, 2025
8 of 9 checks passed
@denik denik deleted the acc-error branch February 4, 2025 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants