From 8560257eafe7d65d4b1d55e1be22422450f0a406 Mon Sep 17 00:00:00 2001 From: Mariana Rios Flores Date: Wed, 16 Sep 2020 12:24:45 -0700 Subject: [PATCH] remove dev endpoint for testing --- sdk/textanalytics/test-resources.json | 15 +++++++++++++-- sdk/textanalytics/tests.yml | 5 +---- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/sdk/textanalytics/test-resources.json b/sdk/textanalytics/test-resources.json index 6d3b8443c45db..4ae2ec0dd737c 100644 --- a/sdk/textanalytics/test-resources.json +++ b/sdk/textanalytics/test-resources.json @@ -50,7 +50,8 @@ } }, "variables": { - "uniqueSubDomainName": "[format('{0}-{1}', parameters('baseName'), parameters('endpointPrefix'))]" + "uniqueSubDomainName": "[format('{0}-{1}', parameters('baseName'), parameters('endpointPrefix'))]", + "endpointValue": "[format('https://{0}-{1}{2}', parameters('baseName'), parameters('endpointPrefix'), parameters('endpointSuffix'))]" }, "resources": [ { @@ -66,5 +67,15 @@ "customSubDomainName": "[variables('uniqueSubDomainName')]" } } - ] + ], + "outputs": { + "TEXT_ANALYTICS_API_KEY": { + "type": "string", + "value": "[listKeys(resourceId('Microsoft.CognitiveServices/accounts',variables('uniqueSubDomainName')), '2017-04-18').key1]" + }, + "TEXT_ANALYTICS_ENDPOINT": { + "type": "string", + "value": "[variables('endpointValue')]" + } + } } diff --git a/sdk/textanalytics/tests.yml b/sdk/textanalytics/tests.yml index 683a28ac27a8a..542ad6ac7ee27 100644 --- a/sdk/textanalytics/tests.yml +++ b/sdk/textanalytics/tests.yml @@ -3,7 +3,4 @@ trigger: none extends: template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml parameters: - ServiceDirectory: textanalytics - EnvVars: - TEXT_ANALYTICS_API_KEY: $(net-textanalytics-test-api-key) - TEXT_ANALYTICS_ENDPOINT: $(net-textanalytics-test-ppe-endpoint-string) \ No newline at end of file + ServiceDirectory: textanalytics \ No newline at end of file