Skip to content

Commit

Permalink
More Facebook functional test tweaks. (#3357)
Browse files Browse the repository at this point in the history
* Add task to Set values in appsettings.json file

* Add quotes to values

* Tweak

* Enable 'Delete Azure resources'

* Add netcoreapp3.1 to FunctionalTests.csproj

* TargetFrameworks fix.

* Disable 'Set environment variables'

* Re-enable 'Set environment variables'
  • Loading branch information
BruceHaley committed Feb 7, 2020
1 parent e0d6593 commit 8f9a8c5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFrameworks>netcoreapp2.1;netcoreapp3.1</TargetFrameworks>
<IsPackable>false</IsPackable>
<Configurations>Debug;Release;</Configurations>
</PropertyGroup>
Expand Down
14 changes: 13 additions & 1 deletion build/yaml/botbuilder-dotnet-ci-facebook-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,21 @@ variables:
# BotName: define this in Azure
# FacebookAccessToken: define this in Azure
# FacebookAppSecret: define this in Azure
# FacebookVerifyToken: define this in Azure
# SenderId: define this in Azure

steps:
- powershell: |
# Set values in appsettings.json file.
$file = "$(Build.SourcesDirectory)\tests\Adapters\Microsoft.Bot.Builder.Adapters.Facebook.PrimaryTestBot\appsettings.json";
$content = Get-Content -Raw $file | ConvertFrom-Json;
$content.FacebookVerifyToken = "$(FacebookVerifyToken)";
$content.FacebookAppSecret = "$(FacebookAppSecret)";
$content.FacebookAccessToken = "$(FacebookAccessToken)";
$content | ConvertTo-Json | Set-Content $file;
displayName: 'Set values in appsettings.json file.'

- template: ci-build-steps.yml

- task: DotNetCoreCLI@2
Expand Down Expand Up @@ -64,4 +76,4 @@ steps:
scriptLocation: inlineScript
inlineScript: 'call az group delete -n "$(BotGroup)" --yes'
condition: always()
enabled: false
enabled: true

0 comments on commit 8f9a8c5

Please sign in to comment.