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

Updates to enable live testing in sovereign clouds for services FormRecognizer and TextAnalytics #31956

Draft
wants to merge 1 commit 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
14 changes: 9 additions & 5 deletions sdk/formrecognizer/ai-form-recognizer/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ extends:
parameters:
PackageName: "@azure/ai-form-recognizer"
ServiceDirectory: formrecognizer
Location: "${{ parameters.Location }}"
EnvVars:
AZURE_CLIENT_ID: $(aad-azure-sdk-test-client-id)
AZURE_TENANT_ID: $(aad-azure-sdk-test-tenant-id)
AZURE_CLIENT_SECRET: $(aad-azure-sdk-test-client-secret)
TimeoutInMinutes: 120
SupportedClouds: "Public,UsGov,China"
CloudConfig:
Public:
Location: "${{ parameters.Location }}"
UsGov:
Location: "usgovvirginia"
China:
Location: "chinaeast2"
2 changes: 1 addition & 1 deletion sdk/formrecognizer/test-resources.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ param testApplicationOid string
param blobStorageAccount string = 'azuresdktrainingdata'
param trainingDataContainer string = 'trainingdata-v3'
param selectionMarkTrainingDataContainer string = 'selectionmark-v3'
param blobResourceId string = resourceId('2cd617ea-1866-46b1-90e3-fffb087ebf9b', 'TrainingData', 'Microsoft.Storage/storageAccounts', blobStorageAccount)
param blobResourceId string = resourceId('TrainingData', 'Microsoft.Storage/storageAccounts', blobStorageAccount)
param trainingDataSasProperties object = {
canonicalizedResource: '/blob/${blobStorageAccount}/${trainingDataContainer}'
signedExpiry: dateTimeAdd(utcNow('u'), 'PT2H')
Expand Down
15 changes: 15 additions & 0 deletions sdk/textanalytics/ai-text-analytics/tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
parameters:
- name: Location
displayName: Location
type: string
default: centralus

trigger: none

extends:
template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml
parameters:
PackageName: "@azure/ai-text-analytics"
ServiceDirectory: textanalytics
TimeoutInMinutes: 60
SupportedClouds: 'Public,UsGov,China'
CloudConfig:
Public:
Location: "${{ parameters.Location }}"
UsGov:
Location: "usgovvirginia"
China:
Location: "chinaeast2"
Loading