Facebook functional test fixes (#5931)

* Enable triggers in FB test

* Add "Clear the message queue" to test
This commit is contained in:
BruceHaley 2021-11-01 14:38:31 -07:00 коммит произвёл GitHub
Родитель 09d78db586
Коммит 65c30cce68
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 27 добавлений и 24 удалений

Просмотреть файл

@ -29,6 +29,9 @@ namespace Microsoft.Bot.Builder.FunctionalTests
{
GetEnvironmentVars();
// Clear the message queue in case of an old message.
await ReceiveMessageAsync();
var echoGuid = Guid.NewGuid().ToString();
await SendMessageAsync(echoGuid);
@ -38,7 +41,7 @@ namespace Microsoft.Bot.Builder.FunctionalTests
}
private async Task SendMessageAsync(string echoGuid)
{
{
using (var client = new HttpClient())
using (var request = new HttpRequestMessage())
{
@ -52,7 +55,7 @@ namespace Microsoft.Bot.Builder.FunctionalTests
request.RequestUri = new Uri(_botEndpoint);
await client.SendAsync(request);
}
}
}
private async Task<string> ReceiveMessageAsync()

Просмотреть файл

@ -8,29 +8,29 @@ name: $(Build.BuildId)
pool:
vmImage: $[ coalesce( variables['VMImage'], 'windows-2019' ) ] # or 'windows-latest' or 'vs2017-win2016'
# trigger: # ci trigger
# batch: true
# branches:
# include:
# - main
# paths:
# include:
# - '*'
# exclude:
# - doc/
# - specs/
# - Changes.md
# - LICENSE
# - README.md
# - UsingMyGet.md
trigger: # ci trigger
batch: true
branches:
include:
- main
paths:
include:
- '*'
exclude:
- doc/
- specs/
- Changes.md
- LICENSE
- README.md
- UsingMyGet.md
# pr: # pr trigger
# branches:
# include:
# - main
# paths:
# include:
# - build/yaml/botbuilder-dotnet-ci-facebook-test.yml
pr: # pr trigger
branches:
include:
- main
paths:
include:
- build/yaml/botbuilder-dotnet-ci-facebook-test.yml
variables:
AppId: $(FacebookTestBotAppId)