forked from microsoft/BotFramework-FunctionalTests
-
Notifications
You must be signed in to change notification settings - Fork 2
/
runTestScenarios.yml
103 lines (92 loc) · 4.53 KB
/
runTestScenarios.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#
# Executes the test scenarios.
#
# "name" here defines the build number format. Build number is accessed via $(Build.BuildNumber)
name: $(BUILD.BUILDID)
trigger: none
pr: none
resources:
pipelines:
- pipeline: "02ADeploySkillBots"
source: "02A-Deploy-Skill-Test-Bots-(daily)"
trigger:
branches:
include:
- main
- releases/*
parameters:
- name: dependenciesVersionDotNet
displayName: DotNet Version
type: string
default: $env:DEPENDENCIESVERSIONDOTNET
- name: dependenciesRegistryDotNet
displayName: DotNet Registry
type: string
default: Artifacts
values:
- Artifacts
- MyGet
- NuGet
variables:
## Azure Resources (Define these variables in Azure)
# AzureSubscription: Service Connection Name to Manage Azure resources.
# ResourceGroup: (optional) Name of the Resource Group where the bots are deployed.
# ResourceSuffix: (optional) Alphanumeric suffix to add to the resources' name to avoid collisions.
# SharedResourceGroup: (optional) Name of the Shared Resource Group.
## Bots Configuration (Define these variables in Azure)
# BffnComposerSkillBotDotNetAppId: (optional) App Id for BffnComposerSkillBotDotNet bot.
# BffnEchoSkillBotComposerDotNetAppId: (optional) App Id for BffnEchoSkillBotComposerDotNet bot.
# BffnEchoSkillBotDotNetAppId: (optional) App Id for BffnEchoSkillBotDotNet bot.
# BffnEchoSkillBotDotNet31AppId: (optional) App Id for BffnEchoSkillBotDotNet31 bot.
# BffnEchoSkillBotDotNetSTAppId: (optional) App Id for BffnEchoSkillBotDotNetST bot.
# BffnEchoSkillBotDotNetV3AppId: (optional) App Id for BffnEchoSkillBotDotNetV3 bot.
# BffnEchoSkillBotJSAppId: (optional) App Id for BffnEchoSkillBotJS bot.
# BffnEchoSkillBotJSSTAppId: (optional) App Id for BffnEchoSkillBotJSST bot.
# BffnEchoSkillBotJSV3AppId: (optional) App Id for BffnEchoSkillBotJSV3 bot.
# BffnEchoSkillBotPythonAppId: (optional) App Id for BffnEchoSkillBotPython bot.
# BffnWaterfallSkillBotDotNetAppId: (optional) App Id for BffnWaterfallSkillBotDotNet bot.
# BffnWaterfallSkillBotJSAppId: (optional) App Id for BffnWaterfallSkillBotJS bot.
# BffnWaterfallSkillBotPythonAppId: (optional) App Id for BffnWaterfallSkillBotPython bot.
## DependenciesVersion (Define these variables in Azure) Possible values are: Latest (default), Stable, or specific version numbers.
# DependenciesVersionDotNet: (optional) Bot Builder dependency version to use for DotNet.
## Internal variables
InternalCosmosDbName: "bffnbotstatedb$(INTERNALRESOURCESUFFIX)"
InternalKeyVaultName: "bffnbotkeyvault$(INTERNALRESOURCESUFFIX)"
InternalResourceGroupName: $[coalesce(variables['RESOURCEGROUP'], 'BFFN')]
InternalResourceSuffix: $[coalesce(variables['RESOURCESUFFIX'], '')]
InternalSharedResourceGroupName: $[coalesce(variables['SHAREDRESOURCEGROUP'], 'BFFN-Shared')]
InternalStorageAccountName: "bffnstorageaccount$(INTERNALRESOURCESUFFIX)"
pool:
vmImage: "windows-2022"
stages:
- template: functional.yml
parameters:
appIds:
ComposerSkillBotDotNet: "$(BFFNCOMPOSERSKILLBOTDOTNETAPPID)"
EchoSkillBotComposerDotNet: "$(BFFNECHOSKILLBOTCOMPOSERDOTNETAPPID)"
EchoSkillBotDotNet: "$(BFFNECHOSKILLBOTDOTNETAPPID)"
EchoSkillBotDotNet31: "$(BFFNECHOSKILLBOTDOTNET31APPID)"
EchoSkillBotDotNetST: "$(BFFNECHOSKILLBOTDOTNETSTAPPID)"
EchoSkillBotDotNetV3: "$(BFFNECHOSKILLBOTDOTNETV3APPID)"
EchoSkillBotJS: "$(BFFNECHOSKILLBOTJSAPPID)"
EchoSkillBotJSST: "$(BFFNECHOSKILLBOTJSSTAPPID)"
EchoSkillBotJSV3: "$(BFFNECHOSKILLBOTJSV3APPID)"
EchoSkillBotPython: "$(BFFNECHOSKILLBOTPYTHONAPPID)"
WaterfallSkillBotDotNet: "$(BFFNWATERFALLSKILLBOTDOTNETAPPID)"
WaterfallSkillBotJS: "$(BFFNWATERFALLSKILLBOTJSAPPID)"
WaterfallSkillBotPython: "$(BFFNWATERFALLSKILLBOTPYTHONAPPID)"
azureSubscription: "$(AZURESUBSCRIPTION)"
deployBuildId: "$(resources.pipeline.02ADeploySkillBots.runID)"
keyVault: "$(INTERNALKEYVAULTNAME)"
resourceGroup: "$(INTERNALRESOURCEGROUPNAME)"
resourceSuffix: "$(INTERNALRESOURCESUFFIX)"
sharedResourceGroup: "$(INTERNALSHAREDRESOURCEGROUPNAME)"
- template: integration.yml
parameters:
azureSubscription: "$(AZURESUBSCRIPTION)"
cosmosDb: "$(INTERNALCOSMOSDBNAME)"
resourceGroup: "$(INTERNALSHAREDRESOURCEGROUPNAME)"
storageAccount: "$(INTERNALSTORAGEACCOUNTNAME)"
dotnet:
registry: ${{ parameters.dependenciesRegistryDotNet }}
version: ${{ parameters.dependenciesVersionDotNet }}