Skip to content

Commit 382cf59

Browse files
authored
[FormRecognizer] Ignoring tests that are hanging (Azure#47755)
1 parent 0fa8d45 commit 382cf59

10 files changed

+30
-5
lines changed

sdk/formrecognizer/Azure.AI.FormRecognizer/tests/FormTrainingClient/FormTrainingClientLiveTests.cs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public void FormTrainingClientCannotAuthenticateWithFakeApiKey()
3838
}
3939

4040
[RecordedTest]
41+
[Ignore("https://github.com/Azure/azure-sdk-for-net/issues/47689")]
4142
public async Task StartTrainingCanAuthenticateWithTokenCredential()
4243
{
4344
var client = CreateFormTrainingClient(useTokenCredential: true);
@@ -69,9 +70,9 @@ public async Task StartTrainingCanAuthenticateWithTokenCredential()
6970

7071
[RecordedTest]
7172
[TestCase(true, true)]
72-
[TestCase(true, false)]
73+
[TestCase(true, false, Ignore = "https://github.com/Azure/azure-sdk-for-net/issues/47689")]
7374
[TestCase(false, true)]
74-
[TestCase(false, false)]
75+
[TestCase(false, false, Ignore = "https://github.com/Azure/azure-sdk-for-net/issues/47689")]
7576
public async Task StartTraining(bool singlePage, bool labeled)
7677
{
7778
var client = CreateFormTrainingClient();
@@ -132,6 +133,7 @@ public async Task StartTraining(bool singlePage, bool labeled)
132133
}
133134

134135
[RecordedTest]
136+
[Ignore("https://github.com/Azure/azure-sdk-for-net/issues/47689")]
135137
public async Task StartTrainingSucceedsWithValidPrefix()
136138
{
137139
var client = CreateFormTrainingClient();
@@ -157,6 +159,7 @@ public async Task StartTrainingSucceedsWithValidPrefix()
157159
}
158160

159161
[RecordedTest]
162+
[Ignore("https://github.com/Azure/azure-sdk-for-net/issues/47689")]
160163
public async Task StartTrainingFailsWithInvalidPrefix()
161164
{
162165
var client = CreateFormTrainingClient();
@@ -197,6 +200,7 @@ public async Task StartTrainingWithLabelsModelName()
197200

198201
[RecordedTest]
199202
[ServiceVersion(Min = FormRecognizerClientOptions.ServiceVersion.V2_1)]
203+
[Ignore("https://github.com/Azure/azure-sdk-for-net/issues/47689")]
200204
public async Task StartTrainingWithNoLabelsModelName()
201205
{
202206
var client = CreateFormTrainingClient();
@@ -236,7 +240,7 @@ public void StartTrainingError()
236240

237241
[RecordedTest]
238242
[TestCase(true)]
239-
[TestCase(false)]
243+
[TestCase(false, Ignore = "https://github.com/Azure/azure-sdk-for-net/issues/47689")]
240244
[ServiceVersion(Min = FormRecognizerClientOptions.ServiceVersion.V2_1)]
241245
public async Task CheckFormTypeinSubmodelAndRecognizedForm(bool labeled)
242246
{
@@ -394,9 +398,9 @@ public async Task StartCreateComposedModelFailsWithInvalidId()
394398

395399
[RecordedTest]
396400
[TestCase(true, true)]
397-
[TestCase(false, true)]
401+
[TestCase(false, true, Ignore = "https://github.com/Azure/azure-sdk-for-net/issues/47689")]
398402
[TestCase(true, false)]
399-
[TestCase(false, false)]
403+
[TestCase(false, false, Ignore = "https://github.com/Azure/azure-sdk-for-net/issues/47689")]
400404
public async Task TrainingOps(bool labeled, bool useTokenCredential)
401405
{
402406
var client = CreateFormTrainingClient(useTokenCredential);

sdk/formrecognizer/Azure.AI.FormRecognizer/tests/Infrastructure/FormRecognizerLiveTestBase.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ protected FormTrainingClient CreateFormTrainingClient(out FormTrainingClient non
113113
/// <returns>A <see cref="DisposableTrainedModel"/> instance from which the trained model ID can be obtained.</returns>
114114
protected async ValueTask<DisposableTrainedModel> CreateDisposableTrainedModelAsync(bool useTrainingLabels, ContainerType containerType = default, string modelName = default)
115115
{
116+
if (!useTrainingLabels)
117+
{
118+
Assert.Ignore("https://github.com/Azure/azure-sdk-for-net/issues/47689");
119+
}
120+
116121
var client = CreateFormTrainingClient();
117122
string trainingFiles = containerType switch
118123
{

sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/V3.1/Sample10_DifferentiateOutputModelsTrainedWithAndWithoutLabels.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using Azure.AI.FormRecognizer.Tests;
1010
using Azure.AI.FormRecognizer.Training;
1111
using Azure.Core.TestFramework;
12+
using NUnit.Framework;
1213

1314
namespace Azure.AI.FormRecognizer.Samples
1415
{
@@ -78,6 +79,7 @@ public async Task OutputModelsTrainedWithLabels()
7879
}
7980

8081
[RecordedTest]
82+
[Ignore("https://github.com/Azure/azure-sdk-for-net/issues/47689")]
8183
public async Task OutputModelsTrainedWithoutLabels()
8284
{
8385
string endpoint = TestEnvironment.Endpoint;

sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/V3.1/Sample2_RecognizeCustomFormsFromFile.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
using Azure.AI.FormRecognizer.Tests;
99
using Azure.AI.FormRecognizer.Training;
1010
using Azure.Core.TestFramework;
11+
using NUnit.Framework;
1112

1213
namespace Azure.AI.FormRecognizer.Samples
1314
{
1415
public partial class FormRecognizerSamples
1516
{
1617
[RecordedTest]
18+
[Ignore("https://github.com/Azure/azure-sdk-for-net/issues/47689")]
1719
public async Task RecognizeCustomFormsFromFile()
1820
{
1921
string endpoint = TestEnvironment.Endpoint;

sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/V3.1/Sample2_RecognizeCustomFormsFromUri.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@
77
using Azure.AI.FormRecognizer.Tests;
88
using Azure.AI.FormRecognizer.Training;
99
using Azure.Core.TestFramework;
10+
using NUnit.Framework;
1011

1112
namespace Azure.AI.FormRecognizer.Samples
1213
{
1314
public partial class FormRecognizerSamples
1415
{
1516
[RecordedTest]
17+
[Ignore("https://github.com/Azure/azure-sdk-for-net/issues/47689")]
1618
public async Task RecognizeCustomFormsFromUri()
1719
{
1820
string endpoint = TestEnvironment.Endpoint;

sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/V3.1/Sample5_TrainModelWithForms.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
using System.Threading.Tasks;
66
using Azure.AI.FormRecognizer.Training;
77
using Azure.Core.TestFramework;
8+
using NUnit.Framework;
89

910
namespace Azure.AI.FormRecognizer.Samples
1011
{
1112
public partial class FormRecognizerSamples
1213
{
1314
[RecordedTest]
15+
[Ignore("https://github.com/Azure/azure-sdk-for-net/issues/47689")]
1416
public async Task TrainModelWithForms()
1517
{
1618
string endpoint = TestEnvironment.Endpoint;

sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/V3.1/Sample7_ManageCustomModels.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66
using System.Threading.Tasks;
77
using Azure.AI.FormRecognizer.Training;
88
using Azure.Core.TestFramework;
9+
using NUnit.Framework;
910

1011
namespace Azure.AI.FormRecognizer.Samples
1112
{
1213
public partial class FormRecognizerSamples
1314
{
1415
[RecordedTest]
16+
[Ignore("https://github.com/Azure/azure-sdk-for-net/issues/47689")]
1517
public async Task ManageCustomModels()
1618
{
1719
string endpoint = TestEnvironment.Endpoint;

sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/V3.1/Sample7_ManageCustomModelsAsync.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
using System.Threading.Tasks;
66
using Azure.AI.FormRecognizer.Training;
77
using Azure.Core.TestFramework;
8+
using NUnit.Framework;
89

910
namespace Azure.AI.FormRecognizer.Samples
1011
{
1112
public partial class FormRecognizerSamples
1213
{
1314
[RecordedTest]
15+
[Ignore("https://github.com/Azure/azure-sdk-for-net/issues/47689")]
1416
public async Task ManageCustomModelsAsync()
1517
{
1618
string endpoint = TestEnvironment.Endpoint;

sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/V3.1/Sample8_CopyModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
using System.Threading.Tasks;
66
using Azure.AI.FormRecognizer.Training;
77
using Azure.Core.TestFramework;
8+
using NUnit.Framework;
89

910
namespace Azure.AI.FormRecognizer.Samples
1011
{
1112
public partial class FormRecognizerSamples
1213
{
1314
[RecordedTest]
15+
[Ignore("https://github.com/Azure/azure-sdk-for-net/issues/47689")]
1416
public async Task CopyModel()
1517
{
1618
#region Snippet:FormRecognizerSampleCreateCopySourceClientV3

sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/V3.1/SampleSnippets.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using Azure.AI.FormRecognizer.Training;
88
using Azure.Core.TestFramework;
99
using Azure.Identity;
10+
using NUnit.Framework;
1011

1112
namespace Azure.AI.FormRecognizer.Samples
1213
{
@@ -66,6 +67,7 @@ public void CreateFormRecognizerClients()
6667
}
6768

6869
[RecordedTest]
70+
[Ignore("https://github.com/Azure/azure-sdk-for-net/issues/47689")]
6971
public async Task StartLongRunningOperation()
7072
{
7173
string endpoint = TestEnvironment.Endpoint;

0 commit comments

Comments
 (0)