-
Notifications
You must be signed in to change notification settings - Fork 1
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
add timeout error message for mapping test #256
base: main
Are you sure you want to change the base?
Conversation
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.
Build failed, one of the imports was wrong, fixed it now FYI.
) | ||
) | ||
) | ||
} { |
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.
I think we should put these logic inside of a method and then call it under testMappingWithJob
?
"""Status Code: 408 | ||
|Type: https://tofhir.io/errors/RequestTimeout | ||
|Title: Request Timeout | ||
|Detail: There are too many rows in the data source CSV. |
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.
Let 's update this message: The server could not complete the test because of the large data. Try increasing the timeout config and test again.
entity = HttpEntity.Strict( | ||
ContentTypes.`application/json`, | ||
ByteString( | ||
"""Status Code: 408 |
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.
Instead of writing plain string here, can you add a new case class to ToFhirError file for timeout errors. And use that class to construct the error.
6eb450f
to
830b54d
Compare
No description provided.