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

Fix Live tests pipeline for Form Recognizer #22480

Merged
merged 4 commits into from
Jun 24, 2021

Conversation

samvaity
Copy link
Member

  • recognizeCustomFormInvalidStatus update tests to accomodate service change behavior from returning 200 to 400 response code(matches with other API's)
  • encodedUrl - Diabled these tests currently timing out instead of an HttpResponseException (getting exception on postman)

@samvaity samvaity requested a review from mssfang as a code owner June 23, 2021 20:59
@samvaity samvaity self-assigned this Jun 23, 2021
@samvaity
Copy link
Member Author

/azp run java - formrecognizer - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@samvaity
Copy link
Member Author

/azp run java - formrecognizer - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

() -> client.beginRecognizeCustomFormsFromUrl(
createdModel.getModelId(), invalidSourceUrl, new RecognizeCustomFormsOptions()
.setPollInterval(durationTestMode), Context.NONE)
.getFinalResult());
FormRecognizerErrorInformation errorInformation = formRecognizerException.getErrorInformation().get(0);
assertEquals(URL_BADLY_FORMATTED_ERROR_CODE, errorInformation.getErrorCode());
System.out.println(httpResponseException.getValue());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this system.out.println can be removed.

@samvaity samvaity merged commit 4edd5a1 into Azure:main Jun 24, 2021
@samvaity samvaity deleted the fix-live-tests-fr branch July 17, 2021 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants