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

add timeout error message for mapping test #256

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

oburakcinar
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@YemreGurses YemreGurses left a 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.

)
)
)
} {
Copy link
Collaborator

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.
Copy link
Collaborator

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
Copy link
Collaborator

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.

@YemreGurses
Copy link
Collaborator

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