Skip to content

Commit

Permalink
Update key vault keys to enable live testing in sovereign clouds for …
Browse files Browse the repository at this point in the history
…multiple services (#18431)

* update test.yml to manage HSM test in multiple clouds

* update tests.yml

* update tests.yml

* update tests.yml

* update tests.yml
  • Loading branch information
zzhxiaofeng authored Nov 3, 2021
1 parent aa7ada5 commit 5db226a
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions sdk/keyvault/keyvault-keys/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,30 @@ stages:
PackageName: "@azure/keyvault-keys"
ServiceDirectory: keyvault
TimeoutInMinutes: 90
SupportedClouds: 'Public,UsGov,China'
CloudConfig:
Public:
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources)
Location: 'eastus2'
UsGov:
SubscriptionConfiguration: $(sub-config-gov-test-resources)
MatrixFilters:
- ArmTemplateParameters=^(?!.*enableHsm.*true)
China:
SubscriptionConfiguration: $(sub-config-cn-test-resources)
MatrixFilters:
- ArmTemplateParameters=^(?!.*enableHsm.*true)
# KV HSM limitation prevents us from running live tests
# against multiple platforms in parallel (we're limited to a single
# instance per region per subscription) so we're only running
# live tests against a single instance.
Location: eastus2
AdditionalMatrixConfigs:
- Name: Keyvault_live_test_base
Path: sdk/keyvault/keyvault-keys/platform-matrix.json
Selection: sparse
GenerateVMJobs: true
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)
AZURE_CLIENT_ID: $(KEYVAULT_CLIENT_ID)
AZURE_TENANT_ID: $(KEYVAULT_TENANT_ID)
AZURE_CLIENT_SECRET: $(KEYVAULT_CLIENT_SECRET)
AZURE_SUBSCRIPTION_ID: $(KEYVAULT_SUBSCRIPTION_ID)

0 comments on commit 5db226a

Please sign in to comment.