Facebook functional test fixes (#5931)
* Enable triggers in FB test * Add "Clear the message queue" to test
This commit is contained in:
Родитель
09d78db586
Коммит
65c30cce68
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче