From d2ef88404dd2af20cf567956a8cb9ca557c108e5 Mon Sep 17 00:00:00 2001 From: LocalizationBuildProcess Date: Fri, 14 Aug 2020 10:41:14 -0700 Subject: [PATCH] Set up env vars for facebook tests --- build/yaml/botbuilder-dotnet-ci-facebook-test.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/build/yaml/botbuilder-dotnet-ci-facebook-test.yml b/build/yaml/botbuilder-dotnet-ci-facebook-test.yml index 81d2945ab..f56d6303a 100644 --- a/build/yaml/botbuilder-dotnet-ci-facebook-test.yml +++ b/build/yaml/botbuilder-dotnet-ci-facebook-test.yml @@ -29,6 +29,7 @@ pr: none # no pr trigger variables: AppId: $(FacebookTestBotAppId) AppSecret: $(FacebookTestBotAppSecret) + BOT_ENDPOINT: 'https://$(BotName).azurewebsites.net/api/messages' BotGroup: $(FacebookTestBotBotGroup) BotName: $(FacebookTestBotBotName) BuildPlatform: 'any cpu' @@ -93,16 +94,17 @@ steps: inlineScript: | call az webapp deployment source config-zip --resource-group "$(BotGroup)" --name "$(BotName)" --src "$(System.DefaultWorkingDirectory)\tests\Adapters\Microsoft.Bot.Builder.Adapters.Facebook.PrimaryTestBot\PublishedBot\PublishedBot.zip" -- powershell: | - echo '##vso[task.setvariable variable=BOT_ENDPOINT]https://$(BotName).azurewebsites.net/api/messages' - displayName: 'Set BOT_ENDPOINT environment variable' - - task: DotNetCoreCLI@2 displayName: 'dotnet test' inputs: command: test projects: '$(System.DefaultWorkingDirectory)\FunctionalTests\Microsoft.Bot.Builder.FunctionalTests\Microsoft.Bot.Builder.FunctionalTests.csproj' arguments: '-v n --configuration $(BuildConfiguration) --no-build --no-restore --filter FacebookChatTest' + env: + BOT_ENDPOINT: $(BOT_ENDPOINT) + FacebookTestBotFacebookAccessToken: $(FacebookTestBotFacebookAccessToken) + FacebookTestBotFacebookAppSecret: $(FacebookTestBotFacebookAppSecret) + FacebookTestBotSenderId: $(FacebookTestBotSenderId) - task: AzureCLI@1 displayName: 'Delete Azure resources'