File: tests.yml

package info (click to toggle)
python-azure 20251014%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 766,472 kB
  • sloc: python: 6,314,744; ansic: 804; javascript: 287; makefile: 198; sh: 198; xml: 109
file content (27 lines) | stat: -rw-r--r-- 987 bytes parent folder | download | duplicates (2)
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
trigger: none

extends:
    template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml
    parameters:
      ServiceDirectory: keyvault
      PersistOidcToken: true
      BuildTargetingString: "azure-keyvault-keys"
      JobName: azure_keyvault_keys
      TestTimeoutInMinutes: 240
      CloudConfig:
        Public:
          Location: 'westus2'
      # HSMs are expensive and restricted in number so we only test them on one platform.
      AdditionalMatrixConfigs:
        - Name: keyvault_hsm_matrix_addons
          Path: sdk/keyvault/azure-keyvault-keys/platform-matrix.json
          Selection: sparse
          GenerateVMJobs: true

      # Due to the high cost of Managed HSMs, we only want to test using them weekly.
      ${{ if not(contains(variables['Build.DefinitionName'], 'tests-weekly')) }}:
        MatrixFilters:
          - ArmTemplateParameters=^(?!.*enableHsm.*true)
      EnvVars:
        AZURE_TEST_RUN_LIVE: true
        AZURE_SKIP_LIVE_RECORDING: 'True'