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

[Translator] Get more info on failing tests #20047

Merged
merged 1 commit into from
Apr 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,14 @@ public DocumentTranslationClient GetClient(
DocumentTranslationClientOptions options = default)
{
var endpoint = new Uri(TestEnvironment.Endpoint);
options ??= new DocumentTranslationClientOptions();
options ??= new DocumentTranslationClientOptions()
{
Diagnostics =
{
LoggedHeaderNames = { "x-ms-request-id", "X-RequestId" },
IsLoggingContentEnabled = true
}
};

credential ??= new AzureKeyCredential(TestEnvironment.ApiKey);
return InstrumentClient(new DocumentTranslationClient(endpoint, credential, InstrumentClientOptions(options)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public async Task SingleSourceSingleTargetTest()
}

[RecordedTest]
[Ignore("Flaky test. Enable once service provides fix/information")]
public async Task SingleSourceMultipleTargetsTest()
{
Uri source = await CreateSourceContainerAsync(oneTestDocuments);
Expand Down Expand Up @@ -246,6 +247,7 @@ public async Task GetDocumentStatusTest()
}

[RecordedTest]
[Ignore("Flaky test. Enable once service provides fix/information")]
public async Task WrongSourceRightTarget()
{
Uri source = new("https://idont.ex.ist");
Expand All @@ -266,6 +268,7 @@ public async Task WrongSourceRightTarget()
}

[RecordedTest]
[Ignore("Flaky test. Enable once service provides fix/information")]
public async Task RightSourceWrongTarget()
{
Uri source = await CreateSourceContainerAsync(oneTestDocuments);
Expand Down