diff --git a/sdk/communication/test-resources.json b/sdk/communication/test-resources.json index 2875b36ca191..b8553cb82f5e 100644 --- a/sdk/communication/test-resources.json +++ b/sdk/communication/test-resources.json @@ -18,6 +18,24 @@ "metadata": { "description": "The client OID to grant access to test resources." } + }, + "tenantId": { + "type": "string", + "metadata": { + "description": "The tenant id to which the application and resources belong." + } + }, + "testApplicationId": { + "type": "string", + "metadata": { + "description": "The application client id used to run tests." + } + }, + "testApplicationSecret": { + "type": "string", + "metadata": { + "description": "The application client secret used to run tests." + } } }, "variables": { @@ -46,9 +64,21 @@ } ], "outputs": { + "AZURE_TENANT_ID": { + "type": "string", + "value": "[parameters('tenantId')]" + }, + "AZURE_CLIENT_ID": { + "type": "string", + "value": "[parameters('testApplicationId')]" + }, + "AZURE_CLIENT_SECRET": { + "type": "string", + "value": "[parameters('testApplicationSecret')]" + }, "COMMUNICATION_CONNECTION_STRING": { "type": "string", "value": "[listKeys(resourceId('Microsoft.Communication/CommunicationServices',variables('uniqueSubDomainName')), '2020-08-20-preview').primaryConnectionString]" } } -} +} \ No newline at end of file diff --git a/sdk/communication/tests.yml b/sdk/communication/tests.yml index 15814c81357f..7cb0762c8b20 100644 --- a/sdk/communication/tests.yml +++ b/sdk/communication/tests.yml @@ -23,11 +23,10 @@ stages: ServiceDirectory: communication DeployArmTemplate: true TestSamples: true - EnvVars: - AZURE_TEST_RUN_LIVE: 'true' - AZURE_TENANT_ID: $(aad-azure-sdk-test-tenant-id) - AZURE_SUBSCRIPTION_ID: $(acs-subscription-id) - AZURE_CLIENT_SECRET: $(aad-azure-sdk-test-client-secret) - AZURE_CLIENT_ID: $(aad-azure-sdk-test-client-id) - AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING: $(communication-livetest-connection-string) - AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER: $(communication-livetest-phone-number) + CloudConfig: + Public: + SubscriptionConfigurations: + - $(sub-config-azure-cloud-test-resources) + - $(sub-config-communication-services-cloud-test-resources-common) + - $(sub-config-communication-services-cloud-test-resources-python) + Clouds: Public