Skip to content

Commit

Permalink
Remove or fix azure* environment variables in live tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benbp committed Oct 9, 2024
1 parent a6aa7a3 commit fc7a315
Show file tree
Hide file tree
Showing 14 changed files with 11 additions and 53 deletions.
5 changes: 1 addition & 4 deletions sdk/cognitivelanguage/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ extends:
AZURE_CONVERSATIONS_DEPLOYMENT_NAME: $(clu-project-deployment)
AZURE_CONVERSATIONS_WORKFLOW_PROJECT_NAME: $(clu-workflow-project)
AZURE_CONVERSATIONS_WORKFLOW_DEPLOYMENT_NAME: $(clu-workflow-project-deployment)
AZURE_CLIENT_ID: $(aad-azure-sdk-test-client-id)
AZURE_CLIENT_SECRET: $(aad-azure-sdk-test-client-secret)
AZURE_SUBSCRIPTION_ID: $(azure-subscription-id)
AZURE_TENANT_ID: $(aad-azure-sdk-test-tenant-id)
AZURE_SUBSCRIPTION_ID: $(COGNITIVELANGUAGE_SUBSCRIPTION_ID)
TEST_MODE: "RunLiveNoRecord" # use when allowing preparers to create the rgs for you
AZURE_TEST_RUN_LIVE: 'true'
AZURE_SKIP_LIVE_RECORDING: 'true'
6 changes: 1 addition & 5 deletions sdk/confidentialledger/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ extends:
- TestSamples=.*/true
MaxParallel: 1
EnvVars:
AZURE_SUBSCRIPTION_ID: $(provisioner-subscription)
AZURE_TENANT_ID: $(aad-azure-sdk-test-tenant-id)
AZURE_CLIENT_SECRET: $(aad-azure-sdk-test-client-secret)
AZURE_CLIENT_ID: $(aad-azure-sdk-test-client-id)
TEST_MODE: "RunLiveNoRecord" # use when allowing preparers to create the rgs for you
AZURE_TEST_RUN_LIVE: "true" # use when utilizing the New-TestResources Script
AZURE_SKIP_LIVE_RECORDING: 'True'
AZURE_SKIP_LIVE_RECORDING: 'True'
1 change: 0 additions & 1 deletion sdk/documentintelligence/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ extends:
Public:
Location: eastus
EnvVars:
AZURE_SUBSCRIPTION_ID: $(provisioner-subscription)
TEST_MODE: 'RunLiveNoRecord'
AZURE_SKIP_LIVE_RECORDING: 'True'
AZURE_TEST_RUN_LIVE: 'true'
4 changes: 0 additions & 4 deletions sdk/evaluation/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,5 @@ extends:
MatrixReplace:
- TestSamples=.*/true
EnvVars:
AZURE_CLIENT_ID: $(EVALUATION_CLIENT_ID)
AZURE_CLIENT_SECRET: $(EVALUATION_CLIENT_SECRET)
AZURE_TENANT_ID: $(EVALUATION_TENANT_ID)
AZURE_SUBSCRIPTION_ID: $(EVALUATION_SUBSCRIPTION_ID)
TEST_MODE: 'RunLiveNoRecord' # use when allowing preparers to create the rgs for you
AZURE_TEST_RUN_LIVE: 'true' # use when utilizing the New-TestResources Script
6 changes: 1 addition & 5 deletions sdk/eventhub/azure-mgmt-eventhub/tests.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
trigger: none

extemds:
template: ../../../eng/pipelines/templates/stages/archetype-sdk-tests.yml
template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml
parameters:
ServiceDirectory: eventhub
BuildTargetingString: azure-mgmt-eventhub
EnvVars:
AZURE_CLIENT_ID: $(python-eh-livetest-event-hub-aad-client-id)
AZURE_TENANT_ID: $(python-eh-livetest-event-hub-aad-tenant-id)
AZURE_CLIENT_SECRET: $(python-eh-livetest-event-hub-aad-secret)
AZURE_SUBSCRIPTION_ID: $(python-eh-livetest-event-hub-subscription-id)
TEST_MODE: 'RunLiveNoRecord'
AZURE_TEST_RUN_LIVE: 'true'
AZURE_SKIP_LIVE_RECORDING: 'True'
1 change: 0 additions & 1 deletion sdk/formrecognizer/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ extends:
ServiceConnection: azure-sdk-tests
Location: 'centraluseuap'
EnvVars:
AZURE_SUBSCRIPTION_ID: $(provisioner-subscription)
TEST_MODE: 'RunLiveNoRecord'
AZURE_SKIP_LIVE_RECORDING: 'True'
AZURE_TEST_RUN_LIVE: 'true'
Expand Down
2 changes: 1 addition & 1 deletion sdk/keyvault/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ extends:
EnvVars:
AZURE_TEST_RUN_LIVE: true
AZURE_SKIP_LIVE_RECORDING: 'True'
AZURE_SUBSCRIPTION_ID: $(azure-subscription-id)
AZURE_SUBSCRIPTION_ID: $(KEYVAULT_SUBSCRIPTION_ID)
AZURE_CLIENT_OID: $(aad-azure-sdk-test-client-oid)
6 changes: 1 addition & 5 deletions sdk/metricsadvisor/tests.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
trigger: none

extends:
template: ../../eng/pipelines/templates/stages/archetype-sdk-tests.yml
template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml
parameters:
BuildTargetingString: azure-ai-metricsadvisor
ServiceDirectory: metricsadvisor
EnvVars:
AZURE_SUBSCRIPTION_ID: $(provisioner-subscription)
AZURE_TENANT_ID: $(aad-azure-sdk-test-tenant-id)
AZURE_CLIENT_SECRET: $(aad-azure-sdk-test-client-secret)
AZURE_CLIENT_ID: $(aad-azure-sdk-test-client-id)
METRICS_ADVISOR_ENDPOINT: $(metricsadvisor-test-service-endpoint)
METRICS_ADVISOR_SUBSCRIPTION_KEY: $(metricsadvisor-test-subscription-key)
METRICS_ADVISOR_API_KEY: $(python-metricsadvisor-test-api-key)
Expand Down
8 changes: 2 additions & 6 deletions sdk/personalizer/tests.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
trigger: none

extends:
template: ../../eng/pipelines/templates/stages/archetype-sdk-tests.yml
template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml
parameters:
BuildTargetingString: azure-ai-personalizer
ServiceDirectory: personalizer
Clouds: Canary
MatrixReplace:
- TestSamples=.*/true
EnvVars:
AZURE_CLIENT_ID: $(PERSONALIZER_CLIENT_ID)
AZURE_TENANT_ID: $(PERSONALIZER_TENANT_ID)
AZURE_SUBSCRIPTION_ID: $(PERSONALIZER_SUBSCRIPTION_ID)
AZURE_CLIENT_SECRET: $(PERSONALIZER_CLIENT_SECRET)
TEST_MODE: 'RunLiveNoRecord'
AZURE_SKIP_LIVE_RECORDING: 'True'
AZURE_TEST_RUN_LIVE: 'true'
PERSONALIZER_PRESET_ENDPOINT_SINGLE_SLOT: $(java-personalizer-test-singleslot-endpoint)
PERSONALIZER_PRESET_API_KEY_SINGLE_SLOT: $(java-personalizer-test-singleslot-api-key)
PERSONALIZER_PRESET_ENDPOINT_MULTI_SLOT: $(java-personalizer-test-multislot-endpoint)
PERSONALIZER_PRESET_API_KEY_MULTI_SLOT: $(java-personalizer-test-multislot-api-key)
PERSONALIZER_PRESET_API_KEY_MULTI_SLOT: $(java-personalizer-test-multislot-api-key)
3 changes: 1 addition & 2 deletions sdk/schemaregistry/tests.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
trigger: none

extends:
template: ../../eng/pipelines/templates/stages/archetype-sdk-tests.yml
template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml
parameters:
ServiceDirectory: schemaregistry
TestTimeoutInMinutes: 300
BuildTargetingString: azure-schemaregistry*
EnvVars:
AZURE_SUBSCRIPTION_ID: $(azure-subscription-id)
AZURE_SKIP_LIVE_RECORDING: 'True'
AZURE_TEST_RUN_LIVE: 'true'
MatrixFilters:
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ extends:
EnvVars:
AZURE_SKIP_LIVE_RECORDING: 'True'
AZURE_TEST_RUN_LIVE: 'true'
AZURE_SUBSCRIPTION_ID: $(azure-subscription-id)
AZURE_SUBSCRIPTION_ID: $(STORAGE_SUBSCRIPTION_ID)
4 changes: 0 additions & 4 deletions sdk/template/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,5 @@ extends:
MatrixReplace:
- TestSamples=.*/true
EnvVars:
AZURE_CLIENT_ID: $(TEMPLATE_CLIENT_ID)
AZURE_CLIENT_SECRET: $(TEMPLATE_CLIENT_SECRET)
AZURE_TENANT_ID: $(TEMPLATE_TENANT_ID)
AZURE_SUBSCRIPTION_ID: $(TEMPLATE_SUBSCRIPTION_ID)
TEST_MODE: 'RunLiveNoRecord' # use when allowing preparers to create the rgs for you
AZURE_TEST_RUN_LIVE: 'true' # use when utilizing the New-TestResources Script
6 changes: 1 addition & 5 deletions sdk/textanalytics/tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
trigger: none

extends:
template: ../../eng/pipelines/templates/stages/archetype-sdk-tests.yml
template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml
parameters:
BuildTargetingString: azure-ai-textanalytics
ServiceDirectory: textanalytics
Expand All @@ -17,10 +17,6 @@ extends:
Location: chinanorth3
SupportedClouds: 'Public,UsGov,China'
EnvVars:
AZURE_SUBSCRIPTION_ID: $(TEXTANALYTICS_SUBSCRIPTION_ID)
AZURE_TENANT_ID: $(TEXTANALYTICS_TENANT_ID)
AZURE_CLIENT_SECRET: $(TEXTANALYTICS_CLIENT_SECRET)
AZURE_CLIENT_ID: $(TEXTANALYTICS_CLIENT_ID)
TEST_MODE: 'RunLiveNoRecord'
AZURE_SKIP_LIVE_RECORDING: 'True'
AZURE_TEST_RUN_LIVE: 'true'
10 changes: 1 addition & 9 deletions sdk/webpubsub/tests.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
trigger: none

extends:
template: ../../eng/pipelines/templates/stages/archetype-sdk-tests.yml
template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml
parameters:
BuildTargetingString: azure*
ServiceDirectory: webpubsub
MatrixReplace:
- TestSamples=.*/true
EnvVars:
WEBPUBSUB_TENANT_ID: $(webpubsub-tenant-id)
WEBPUBSUB_CLIENT_ID: $(webpubsub-client-id)
WEBPUBSUB_CLIENT_SECRET: $(webpubsub-client-secret)
WEBPUBSUB_SUBSCRIPTION_ID: $(webpubsub-subscription-id)
AZURE_TENANT_ID: $(webpubsub-tenant-id)
AZURE_CLIENT_ID: $(webpubsub-client-id)
AZURE_CLIENT_SECRET: $(webpubsub-client-secret)
AZURE_SUBSCRIPTION_ID: $(webpubsub-subscription-id)
WEBPUBSUB_REVERSE_PROXY_ENDPOINT: $(webpubsub-reverse-proxy-endpoint)
WEBPUBSUB_ENDPOINT: $(webpubsub-endpoint)
WEBPUBSUB_CONNECTION_STRING: $(webpubsub-connection-string)
Expand Down

0 comments on commit fc7a315

Please sign in to comment.