File: tests.yml

package info (click to toggle)
python-azure 20230112%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 749,544 kB
  • sloc: python: 6,815,827; javascript: 287; makefile: 195; xml: 109; sh: 105
file content (59 lines) | stat: -rw-r--r-- 2,965 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
trigger: none

parameters:
  - name: Services
    type: object
    default:
      - azure-storage-blob
      - azure-storage-blob-changefeed
      - azure-storage-queue
      - azure-storage-file-datalake
      - azure-storage-file-share

stages:
  - ${{ each service in parameters.Services }}:
    - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml
      parameters:
        JobName: ${{ replace(service, '-', '_') }}
        BuildTargetingString: ${{ service }}
        Location: 'canadacentral'

          # All 5 service stages run in parallel, and with no parallel limits the tests may get throttled.
        MaxParallel: 2
        ServiceDirectory: storage
        InjectedPackages: $(InjectedPackages)
        MatrixReplace:
          # Use dedicated storage pool in canadacentral with higher memory capacity
          - Pool=(.*)-general/$1-storage
        ${{ if contains(variables['Build.DefinitionName'], 'tests-weekly') }}:
          MatrixConfigs:
            - Name: Storage_all_versions_live_test
              Path: sdk/storage/platform-matrix-all-versions.json
              Selection: sparse
              GenerateVMJobs: true
        EnvVars:
          STORAGE_ACCOUNT_NAME: $(python-storage-storage-account-name)
          STORAGE_ACCOUNT_KEY: $(python-storage-storage-account-key)
          STORAGE_DATA_LAKE_ACCOUNT_NAME: $(python-storage-data-lake-account-name)
          STORAGE_DATA_LAKE_ACCOUNT_KEY: $(python-storage-data-lake-account-key)
          BLOB_STORAGE_ACCOUNT_NAME: $(python-storage-blob-storage-account-name)
          BLOB_STORAGE_ACCOUNT_KEY: $(python-storage-blob-storage-account-key)
          REMOTE_STORAGE_ACCOUNT_NAME: $(python-storage-remote-storage-account-name)
          REMOTE_STORAGE_ACCOUNT_KEY: $(python-storage-remote-storage-account-key)
          PREMIUM_STORAGE_ACCOUNT_NAME: $(python-storage-premium-storage-account-name)
          PREMIUM_STORAGE_ACCOUNT_KEY: $(python-storage-premium-storage-account-key)
          OAUTH_STORAGE_ACCOUNT_NAME: $(python-storage-oauth-storage-account-name)
          OAUTH_STORAGE_ACCOUNT_KEY: $(python-storage-oauth-storage-account-key)
          ACTIVE_DIRECTORY_APPLICATION_ID: $(aad-azure-sdk-test-client-id)
          ACTIVE_DIRECTORY_APPLICATION_SECRET: $(aad-azure-sdk-test-client-secret)
          ACTIVE_DIRECTORY_TENANT_ID: $(aad-azure-sdk-test-tenant-id)
          CONNECTION_STRING: $(python-storage-blob-connection-string)
          BLOB_CONNECTION_STRING: $(python-storage-blob-connection-string)
          PREMIUM_CONNECTION_STRING: $(python-storage-premium-connection-string)
          TEST_MODE: 'RunLiveNoRecord'
          AZURE_SKIP_LIVE_RECORDING: 'True'
          AZURE_TEST_RUN_LIVE: 'true'
          AZURE_TENANT_ID: $(aad-azure-sdk-test-tenant-id)
          AZURE_SUBSCRIPTION_ID: $(azure-subscription-id)
          AZURE_CLIENT_SECRET: $(aad-azure-sdk-test-client-secret)
          AZURE_CLIENT_ID: $(aad-azure-sdk-test-client-id)