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

Use TME subscription training data account #42572

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
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 @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "java",
"TagPrefix": "java/documentintelligence/azure-ai-documentintelligence",
"Tag": "java/documentintelligence/azure-ai-documentintelligence_f9f065f444"
"Tag": "java/documentintelligence/azure-ai-documentintelligence_4e0d666811"
}
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,6 @@ void validateInvoiceData(AnalyzeResult analyzeResult) {
assertNotNull(itemsMap.get("Amount").getConfidence());
assertEquals(LocalDate.of(2017, 6, 18), itemsMap.get("Date").getValueDate());
assertNotNull(itemsMap.get("Date").getConfidence());
assertEquals("34278587", itemsMap.get("ProductCode").getValueString());
assertNotNull(itemsMap.get("ProductCode").getConfidence());
Assertions.assertNotNull(analyzeResult.getPages());
}

Expand Down Expand Up @@ -290,7 +288,7 @@ void validateContentData(AnalyzeResult analyzeResult) {
});

assertNotNull(analyzeResult.getTables());
int[][] table = new int[][] { { 5, 4, 20 }, { 4, 2, 8 } };
int[][] table = new int[][] { { 5, 4, 20 }, { 3, 2, 6 } };
Assertions.assertEquals(2, analyzeResult.getTables().size());
for (int i = 0; i < analyzeResult.getTables().size(); i++) {
int j = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ public void deleteModelValidModelIdWithResponse(HttpClient httpClient,
*/
@ParameterizedTest(name = TestUtils.DISPLAY_NAME_WITH_ARGUMENTS)
@MethodSource("com.azure.ai.documentintelligence.TestUtils#getTestParameters")
@Disabled("https://github.com/Azure/azure-sdk-for-java/issues/41027")
public void copyAuthorization(HttpClient httpClient, DocumentIntelligenceServiceVersion serviceVersion) {
client = getModelAdminAsyncClient(httpClient, serviceVersion);
String modelId = "java_copy_model_test";
Expand Down
4 changes: 2 additions & 2 deletions sdk/documentintelligence/test-resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"blobStorageAccount": {
"type": "string",
"defaultValue": "azuresdktrainingdata"
"defaultValue": "azuresdktrainingdatatme"
},
"trainingDataContainer": {
"type": "string",
Expand All @@ -40,7 +40,7 @@
},
"blobResourceId": {
"type": "string",
"defaultValue": "[resourceId('2cd617ea-1866-46b1-90e3-fffb087ebf9b', 'TrainingData', 'Microsoft.Storage/storageAccounts', parameters('blobStorageAccount'))]"
"defaultValue": "[resourceId('4d042dc6-fe17-4698-a23f-ec6a8d1e98f4', 'static-test-resources', 'Microsoft.Storage/storageAccounts', parameters('blobStorageAccount'))]"
},
"trainingDataSasProperties": {
"type": "object",
Expand Down
Loading