trigger: none

stages:
  - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml
    parameters:
      BuildTargetingString: azure-ai-translation-document
      ServiceDirectory: translation
      Clouds: Public,Int
      CloudConfig:
        Public:
          SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources)
          Location: 'westus3'
          MatrixReplace:
            - TestSamples=.*/true
        Int:
          # We run tests in Dogfood for the service team. This cloud config is just used to validate the service deployment
          # so we don't need to run on every version of Python.
          SubscriptionConfiguration: $(sub-config-translation-int-test-resources)
          MatrixFilters:
            - PythonVersion=3.11.*
      EnvVars:
        AZURE_CLIENT_ID: $(aad-azure-sdk-test-client-id)
        AZURE_CLIENT_SECRET: $(aad-azure-sdk-test-client-secret)
        AZURE_TENANT_ID: $(aad-azure-sdk-test-tenant-id)
        AZURE_TEST_RUN_LIVE: 'true'
        TEST_MODE: 'RunLiveNoRecord'
        AZURE_SKIP_LIVE_RECORDING: 'True'
