Граф коммитов

433 Коммитов

Автор SHA1 Сообщение Дата
Joel Mut 6e536279d7
[#6173] Remove dotnet 2.1 support from 4.16 (#6187)
* Remove TestBot.NetCore21 project

* Remove netcoreapp2.1 build target from test projects

* Update pipelines' yamls

* Remove netcoreapp2.1 in remaining projects

* Remove tests NETCOREAPP2_1 conditions

* Update 2.1 assemblies

Co-authored-by: CeciliaAvila <cecilia.avila@southworks.com>
2022-02-15 14:26:22 -08:00
Muthuveer Somanathan da8348a7b4
Streaming Library Refactor (#5908) 2021-10-14 21:59:07 -07:00
Eric Dahlvang 009f92492f
Remove Teams adaptive package (#5450)
* Remove Teams adaptive package

* Fix tests.schema
2021-04-09 13:30:09 -07:00
Carlos Castro 0c578be66b
Runtime: Rename assembly to Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime (#5386) 2021-03-29 15:34:01 -07:00
Carlos Castro a865276c1d
Components: improved authoring experience + component registration refactor (#5347)
* Components: improved authoring experience + component registration refactor

+ BotComponent base class that acts as the base component definition. New Components implement the Startup() method where they can register services
+ Component registration refactor: resource explorer now receives the list of custom types and converters on construction instead of from a global variable. DialogStateManager now receives the memory scopes and path resolvers from turn state instead of from the global component registrations.
+ Component registration backward compat: introduced component registration bridge generic class that allows any new BotComponent to be exposed through component registration for legacy code
+ Bot components for each of our 1st party components: created new component for Adaptive, QnAMaker, Luis, Orchestrator, Dialogs, Declarative, etc. Also updated their respective component registrations to use the new bridge classes to avoid registration duplication.

* Component registration refactor: add path resolvers and memory scopes to turn state through DI -> AdaptiveDialogBot

* Runtime extensions: remove commented line

* Components: Delete Botcomponent attribute, was not needed

* Component: fix xml comment

* ComponentReigstration refactor: fix tests build

* Adaptive bot component: add DialogSetconverter

* Runtime: move to ConfigurationResourceExplorer, adjust tests

* Runtime: remove unused variable

* Components: REname 'plugins' setting to 'components'

* Runtime: Delete component registrations

* Components: Add CommandActivity related declarative type registrations

* Teams + Adaptive: Make teams a component

* Component: Rename BotComponent.Startup() -> BotComponent.ConfigureServices()

* Runtime: Remove teams from built-in components

* Component: remove component registration unused classes in runtime tests
2021-03-25 12:09:12 -07:00
tracyboehrer 2f6222ea4a
Runtime config (#5184)
* Microsoft.Bot.Builder.Runtime and tests

* Runtime looks to root

* Applying latest changes from microsoft/botframework-core@main branch,… (#5039)

* Applying latest changes from microsoft/botframework-core@main branch, up to commit 222038687ceaa6fa7b3246b9d6a935100d21d8b6. Also modifying configuration extensions to support utilization of the runtime in Composer bot projects.

* Test Change

Co-authored-by: tracyboehrer <tracyboehrer@users.noreply.github.com>

* Runtime: Reverted to using root paths

* Enable skill authentication and default behaviors on core runtime (#5055)

* Remove AutoEndDialog logic

* Add allowed callers claims validator and tests

* Incorporate PR comments

* Runtime Plugin Support (#5059)

* Fix Cosmos nesting problem (#4973)

* Write failing Cosmos nest test

* Create new exception for Cosmos nesting limit

* Remove BotStateException

* Support Skip() as an operation for form generation (#5025)

* Fix bug where operations without children were dropped.
Preserve expectedEntities for assignments without a property.
Both of these were to support skip as an entity in generation.

* Fix a bug where choosing an entity loses the original operaion.

Co-authored-by: Chris McConnell <chrimc>

* Switch to list to be consistent with other properties. (#5029)

Co-authored-by: Chris McConnell <chrimc>

* add resource tags to FB adapter CI (#5031)

* correct solution folder Parsers and add auth test project (#5030)

* Adding initial implementation of plugin support to Microsoft.Bot.Builder.Runtime, including definition of binding interfaces in separate Microsoft.Bot.Builder.Runtime.Plugins package.

* feat: parity issues for js, python, and java (#5028)

Also supports various parity automation labels.

* [Debugger] add injectable transport, with unit tests (#4921)

* [Debugger] add injectable transport, with unit tests

* use ITestOutputHelper for updated json

* improve determinism for thread phase requests

* introduce HasRest mixin

* sort trace events in canonical order

* use topological sort to canonicalize

* handle Mac LF line endings for trace oracle

* Add daily builds instructions (#5044)

* Change LogAction.Text from stringExpression to IActivityTemplate (#5036)

* Add clarification to EditArray Remove (#5045)

* Claims Validation readme (#5050)

* Claims Validation readme

* Remove comment

* Merging latest changes from main.

* Adding unit test coverage for runtime plugins.

Co-authored-by: Kyle Delaney <v-kydel@microsoft.com>
Co-authored-by: Chris McConnell <chrimc@microsoft.com>
Co-authored-by: Steven Gum <14935595+stevengum@users.noreply.github.com>
Co-authored-by: johnataylor <johtaylo@microsoft.com>
Co-authored-by: Josh Gummersall <1235378+joshgummersall@users.noreply.github.com>
Co-authored-by: Will Portnoy <wportnoy@microsoft.com>
Co-authored-by: Monica Rivera <44449640+mrivera-ms@users.noreply.github.com>
Co-authored-by: Eric Dahlvang <erdahlva@microsoft.com>

* Merge latest from main (#5058)

* Fix Cosmos nesting problem (#4973)

* Write failing Cosmos nest test

* Create new exception for Cosmos nesting limit

* Remove BotStateException

* Support Skip() as an operation for form generation (#5025)

* Fix bug where operations without children were dropped.
Preserve expectedEntities for assignments without a property.
Both of these were to support skip as an entity in generation.

* Fix a bug where choosing an entity loses the original operaion.

Co-authored-by: Chris McConnell <chrimc>

* Switch to list to be consistent with other properties. (#5029)

Co-authored-by: Chris McConnell <chrimc>

* add resource tags to FB adapter CI (#5031)

* correct solution folder Parsers and add auth test project (#5030)

* feat: parity issues for js, python, and java (#5028)

Also supports various parity automation labels.

* [Debugger] add injectable transport, with unit tests (#4921)

* [Debugger] add injectable transport, with unit tests

* use ITestOutputHelper for updated json

* improve determinism for thread phase requests

* introduce HasRest mixin

* sort trace events in canonical order

* use topological sort to canonicalize

* handle Mac LF line endings for trace oracle

* Add daily builds instructions (#5044)

* Change LogAction.Text from stringExpression to IActivityTemplate (#5036)

* Add clarification to EditArray Remove (#5045)

* Claims Validation readme (#5050)

* Claims Validation readme

* Remove comment

* Merging latest changes from main.

Co-authored-by: Kyle Delaney <v-kydel@microsoft.com>
Co-authored-by: Chris McConnell <chrimc@microsoft.com>
Co-authored-by: Steven Gum <14935595+stevengum@users.noreply.github.com>
Co-authored-by: johnataylor <johtaylo@microsoft.com>
Co-authored-by: Josh Gummersall <1235378+joshgummersall@users.noreply.github.com>
Co-authored-by: Will Portnoy <wportnoy@microsoft.com>
Co-authored-by: Monica Rivera <44449640+mrivera-ms@users.noreply.github.com>
Co-authored-by: Eric Dahlvang <erdahlva@microsoft.com>

* Runtime.Plugins icon

* Adding additional prototype for ConfigurationBuilderExtensions.AddBotRuntimeConfiguration() to support specifying relative directory path containing appsettings.json. Also removing invocation of builder.AddEnvironmentVariables(), as this is already added by Host.CreateDefaultBuilder(). (#5116)

* Runtime Plugins: Make BotPluginDefinition IBotPluginEnumenator internal

* Runtime: Move IBotPlugin and IBotPluginLoadContext to Runtime package, remove plugins package

* Runtime: Move static logic from provider to extensions, move skills logic, update tests

+ Credential, auth and skills logic in provider is static, move to service collection extensions
+ Move AllowedCallersClaimsValidator and SkillConversationIdFactory to Skills namespace
+ Remove providers for credentials and channels
+ Update tests. Cred and channel tests commented temporarily, will be tested as part of service collection extensions.

* Runtime: Add strongly typed options and register in extensions

* Runtime: Load plugins from options instead of runtime.json and outside of provider context

* Runtime refactors: adjusting code for new configuration contract

* Runtime tests: delete temporary tests

* Runtime tests: cleanup namespaces

* Runtime tests: cleanup more namespaces

* Runtime: copyright and namespace cleanup

* Runtime: settings documentation

* Runtime: remove plugin filter, fix startup issues.

* Runtime: remove plugin filter part 2

* Runtime: plugin definition cleanup and move from IEnumerable to IList

* Runtime: remove resources section and flatten a bit.

* Runtime: remove usage of IServiceScope except for plugin, let external adapters configure themselves

* Runtime service extensions: reorganize internal extensions and register adapter settings

* Runtime: blob transcript inline object, fix tests, default runtime settings

* Runtime: Move runtime and corresponding tests to integration and rename assemblies

* Runtime: rename integration plugin namespace

* Runtime: Update solution, add adapter schema to preview project

* Runtime: update tests.schema after adding IAdapter schema

* Runtime: Fix wrong namespaces after integration folder move

* Runtime: delete temporary scenarios

* Runtime: cleanup unused namespace and remove unnecesary schema field

* Runtime: Remove unused code, fix typos, remove project specific directory build props

* runtime: add missing docs

* Runtime: make allowed callers claim validator internal.

* Runtime: Add TeamsComponentRegistration

* Update libraries/integration/Microsoft.Bot.Builder.Integration.Runtime/CoreBot.cs

Use var instead of type name

Co-authored-by: Gabo Gilabert <gabog@users.noreply.github.com>

* Update libraries/integration/Microsoft.Bot.Builder.Integration.Runtime/Extensions/ConfigurationBuilderExtensions.cs

Runtime: move string -> var

Co-authored-by: Gabo Gilabert <gabog@users.noreply.github.com>

* Update libraries/integration/Microsoft.Bot.Builder.Integration.Runtime/Extensions/ConfigurationBuilderExtensions.cs

Co-authored-by: Gabo Gilabert <gabog@users.noreply.github.com>

* Update libraries/integration/Microsoft.Bot.Builder.Integration.Runtime/Extensions/ConfigurationBuilderExtensions.cs

Co-authored-by: Gabo Gilabert <gabog@users.noreply.github.com>

* Update libraries/integration/Microsoft.Bot.Builder.Integration.Runtime/Extensions/ConfigurationBuilderExtensions.cs

Co-authored-by: Gabo Gilabert <gabog@users.noreply.github.com>

* Runtime: remove unnecessary IConfiguration registration

* Runtime: error handling tweaks in OnTurnError

* Runtime tests: We are not using JObjectConfigurationProvider and JObjectConfigurationSource right now. Remove from tree until we need them.

* Runtime coreBot: explicit dependencies instead of IServiceProvider.

* Runtime: remove IServicePrvider ctor parameters and remove collection extensions since there is just 1 usage. WE can bring back if it makes sense to justify the extra code and tests.

* Runtime: minor adjustments to skill conversation id test to sdk style such as variable naming and such

* Runtime: Fix plugin registration test

* Runtime: dev appsettings for now. TODO: environment consideration once we revisit the program and startup.cs for the templates

* Update tests schema

* Update tests.schema

* Runtime: content folder for schemas

* Runtime project: add missing nuget dependencies for teams and plugins

Co-authored-by: Peter Innes <53846082+peterinnesmsft@users.noreply.github.com>
Co-authored-by: Ryan Lengel Isgrig <43043272+ryanlengel@users.noreply.github.com>
Co-authored-by: Kyle Delaney <v-kydel@microsoft.com>
Co-authored-by: Chris McConnell <chrimc@microsoft.com>
Co-authored-by: Steven Gum <14935595+stevengum@users.noreply.github.com>
Co-authored-by: johnataylor <johtaylo@microsoft.com>
Co-authored-by: Josh Gummersall <1235378+joshgummersall@users.noreply.github.com>
Co-authored-by: Will Portnoy <wportnoy@microsoft.com>
Co-authored-by: Monica Rivera <44449640+mrivera-ms@users.noreply.github.com>
Co-authored-by: Eric Dahlvang <erdahlva@microsoft.com>
Co-authored-by: carlosscastro <ccastro@microsoft.com>
Co-authored-by: Carlos Castro <carlosscastro@users.noreply.github.com>
Co-authored-by: Gabo Gilabert <gabog@users.noreply.github.com>
2021-02-15 19:41:04 -08:00
daveta 3ea6a053ae
Orchestrator Recognizer support 32-bit (#5152)
* Orchestrator Recognizer support 32-bit

* Update to netstandard2.1
2021-02-02 17:47:39 -08:00
johnataylor 5f064d5d89
correct solution folder Parsers and add auth test project (#5030) 2020-12-08 13:08:03 -05:00
Chris McConnell 4b1b51f455
Add script for copying schemas. (#4933) 2020-11-10 09:52:28 -08:00
Chris McConnell 5d0817c84f
Fix property entity name collision (#4869)
* Switching to property.

* Match property name.

* Update LU files.

* Fix chrimc settings

Co-authored-by: Chris McConnell <chrimc>
2020-10-27 09:13:39 -07:00
Emilio Munoz d208dd2a7c
LU Parser switch to supported Antlr Runtime and Unit Testing (#4856)
* porting of parser tool from SDK version, linting and format fixes pending

* format updates

* Changed target framework to match the rest of the libraries

* Addressing PR feedback.

* Adding data driven tests and further PR fixes

* Using OS dependant fixtures

* test fixes

* Removing all other libraries

* Removed comment

* Add branch lu-parser to CI builds.

* Triggering build

* Revert "Triggering build"

This reverts commit 55b28874d7.

Revert removing libraries.

* Revert "Add branch lu-parser to CI builds."

This reverts commit acda8f460a.

Revert commits

* Revert "Removed comment"

This reverts commit 7876adeef6.

* Revert "Removing all other libraries"

This reverts commit 670677dcdb.

* Add branch lu-parser to CI builds.

* Changing Antlr Runtime to align with LanguageGeneration (#4740)

* Changing Antlr Runtime to aling with LanguageGeneration

* Fixing Unix fixture

* Testing changing target framework for lu parser tests

* Revert "Testing changing target framework for lu parser tests"

This reverts commit a7a44626e5.

Changing back target framework

* Fixing Unix fixture

* Removing Console.WriteLine from LuParser

* Adding tests at Section level

* Fixing docs

* Create README.md

* Fixing conflicts in sln

* Fixing conflicts 2nd try

* Sanitizing files to remove \r in windows

* Fixing tests for mac

* Fixing tests for mac

* FIx tests for Mac 3

* Fix tests for mac 4

* Fix tests for Mac 4

* Fix tests mac 5

* Fix mac tests 6

* Fix tests mac 6

* Fix mac tests 7

* Fix mac test 9

* Fix tests mac 10

* Fix test mac 11

* Fix test mac 11

* Fix mac test 13

* Fix tests mac 13

* Fix tests mac 14

* Fix tests mac 15

* Adding file headers

Co-authored-by: Axel Suarez <axsuarez@microsoft.com>
Co-authored-by: Monica Rivera <moniriv@microsoft.com>
2020-10-26 09:51:15 -07:00
Denise Scollo 2e852e299b
[#4366] [TestBot] Consolidate duplicate Test project and test code (#4736)
* Add TestBot.Shared project

* Move duplicated code into TestBot.Shared project

* Combine TestBot.Tests and TestBot.NetCore21.Tests

Co-authored-by: Joel Mut <joel.mut@southworks.com>
2020-10-13 13:53:18 -07:00
Chris McConnell e8794dd74e
Enable schema tests. (Although needed to filter out one test which is valid but fails validation.) (#4474)
Switch to public schema references.
2020-08-19 11:32:07 -07:00
Gabo Gilabert c6ff4a4eda
Fixes orchestrator x64 compilation and updates projects to use XUnit (#4436)
* Changes include
Removed x64 configuration from solution.
Updated Orchestrator project to only target x64 and added TODO notes in the csproj so we remember to remove these settings once we support Any CPU.
Removed redundant settings and packages from Orchestrator.csproj
Migrated orchestrator tests to XUnit.

* Added TODO to remember to change the TargetFramework to netstandard2.0 whenever possible.
Updated path to generate xml documentation
2020-08-12 09:00:04 -07:00
Eric Dahlvang 4e6fe9ffd4
Add Bot.Builder.Azure.Blobs and Bot.Builder.Azure.Queues (#4419)
* Add Bot.Builder.Azure.Blobs and Bot.Builder.Azure.Queues

* update blob storage tests

* Fix AzureBlobTranscriptStore enless loop and storage tests

* Set TypeNameHandling to None for new Blobs storage classes

* new BlobsStorage to TypeNameHandling.All

* review feedback

* apply Monica's feedback

* solution file merge
2020-08-11 12:38:43 -07:00
Vishwac Sena Kannan 0d2a3f5de9
Orchestrator package with recognizers (#4375)
* orchestrator package with recognizers

* Fixes to PR comments

* Addressing PR comments.

* refactor orechestrator recognizer, cleaning up a bunch of things.
Move CreateChooseIntentResult to recognizer.cs

* add simple orchestratorecognizer back in...

* merge changes from monica's PR

* Updates based on PR comments

* Fix build error

* Updates for PR feedback

* Updates.

* Adding tests.

* Update to using nuget package.

* updates for PR comments.

* Fixing PR feedback from chrimc62

Co-authored-by: Tom Laird-McConnell <tomlm@microsoft.com>
2020-08-11 10:34:53 -07:00
Gabo Gilabert 897b96c5c0
Added Directory.Build.props to the libraries folder and moved references for AsyncUsageAnalyzers, FxCop and SourceLink there. (#4414)
This props file also enfoces warnings as errors.
Left a bunch of excludes in the Streaming project, we can remove that once we merge the outstanting PR.
2020-08-07 12:09:05 -07:00
John Taylor c885f7f5db three test projects Bot1 Bot2 Bot3 2020-07-07 16:59:32 -07:00
Gabo Gilabert 71696394f8
Enabled FxCop on the Dialogs project and Integration folder (#4168)
* Enabled FxCop on the Dialogs project and fixed errors.

* Enabled FxCop and Async usage analyzers on the integration folder projects usinga BuildProps file and fixed errors.

* Fixed some FxCop issues for WebApi projects that only show when targetting Windows in the build.
Added reference to editorconfig to the sln file to make it easier to maintain.
2020-06-25 12:07:37 -07:00
Tom Laird-McConnell c28e832332 Merge branch 'master' into tomlm/addTeamsTriggers 2020-06-15 21:17:29 -07:00
Gabo Gilabert 2963d0da22
Sets warnings as errors and adds FxCop analyzer to Schema project. (#4061)
* Configured TreatWarningsAsErrors on all projects in the libraries folder except for Microsoft.Bot.Builder.Dialogs.Adaptive.Testing (that needs to be addressed separatelly).
Created Directory.Build.props for FunctionalTests and Tests to manage excludes for the projects in those folders.
Added NoWarn properties for documentation on each project (these will be addressed by another issue).
Fixed long hanging fruit warnings.
Added Roslyn FxCop analyzer to Microsoft.Bot.Schema and fixed violation or excluded them using #pragma.

* Fixed binary compat issues

* Fixed more binary compat issues
2020-06-12 13:42:12 -07:00
Tom Laird-McConnell 74fd624e10 First cut of Teams adaptive library 2020-06-10 16:05:17 -07:00
Tom Laird-McConnell 9fddf2ec64 * Add unit tests for validating dialogs
* fix a bunch of schema errors
* fix a bunch of dialog errors
* move compnent schema to using botframework-sdk/component.schema
* get rid of sdk.schema, schema comes from SDK assemblies not from sdk.schema
* create tests.schema which is active schema for unit tests
* create testbot.schema which is active schema for testbot
2020-04-17 11:33:49 -07:00
swagat mishra 25bd4cd8f3
Add support for SSO to parent and child bot projects for manual testing (#3489)
* Support SSO on parent and child bots for manual testing purposes

* remove secrets. add md file

* fix build

* reverted change for oauth prompt

Co-authored-by: Swagat Mishra <swagatm@microsoft.com>
2020-03-06 18:59:08 -08:00
Gabo Gilabert 2ec7fddee1
Add AdaptiveSkillDialog (#3453)
Added AdaptiveSkillDialog, schema and updated sdk.schema.
Update TestBot.Json project to be able to test AdaptiveSkillDialog
2020-03-06 17:08:51 -05:00
John Taylor 7a51182701 add deliverymode 2020-02-26 16:53:15 -08:00
Tom Laird-McConnell 9214e5aa11
Move Declarative test classes into Microsoft.Bot.Builder.Dialogs.Adaptive.Testing (#3425)
* fallback to .value property if there is no text.

* pull declarative related testing classes out into new Microsoft.Bot.Builder.Dialogs.Adaptive.Testing assembly
This keeps Bot.Builder..Testing assembly with minimal dependencies
2020-02-23 18:45:47 -08:00
Hongyang Du (hond) 36e0b1335a
migrate expression namespace from Microsoft.Bot.Expressions to AdaptiveExpressions (#3375) 2020-02-12 14:28:24 +08:00
Gabo Gilabert 69112a39fa
SkillDialog (#3346)
* First pass at SkillDialog
Created preview Skills project and placeholder for unit test.
Added DialotToDialog and SimpleSkillBot for local testing.
Added abstract BotFrameworkClient base class to decouple http dependency.
Added Skills Solution.

* Refactored DialogToDialog to use EchoSkillBot and DialogSkillBot.
Deleted simplebot to bot for now.
Updated code to make it work.

* Forced adding launchSettings.json to code to make it easier to configure locally during dev.

* Added support for InvokeActivities in SkillDialog.
Updated welcome card.

* Added guard in SkillDialog to only process Message and event activities.
Removed invoke handling funcitonality from SkillDialog and sample call.

* Removed Invoke Code from skilldialog
Added new projects to the Mcirosoft.Bot.Builder.sln file

* Revreated Skill.sln after merge and remove 31 suffix from DialogSkill Test projects.

* Removed icon.png ref from csproj file

* Readded projects lost after merge
Removed Expressions.Properties from skills solution.

* Touched to force another build

* Updated SkillDialog to take activities instead of creating them and updated MainDialog to create the activities.
Updated SkillDialogArgs to take the skill and the activity to forward.
Addressed other comments from PR
2020-02-11 23:26:50 -05:00
Tom Laird-McConnell 8b86984126
Merge temporary assembly Expressions.Properties into Expressions (#3365)
* merge expression.properties into expression library.

* Cleaned up semantics around switch/case expression and constants

* typing tests are sensitive to speed of machine, need to be longer delays to make it consistent on build servers
2020-02-10 10:22:23 -08:00
johnataylor 30c173d706
Merge pull request #3286 from southworks/add/twilio-functional-tests
[Twilio Adapter] Add Twilio functional test
2020-01-30 17:10:26 -08:00
Santiago Grangetto 680bbb3c48 Add missing end project line 2020-01-30 10:40:01 -03:00
Santiago Grangetto b2b12889d8 Merge branch 'master' into add/twilio-functional-tests 2020-01-30 09:57:58 -03:00
Chris McConnell a9ccf3877f
External Entities & Dynamic lists (#3300)
* Updated schema.

* Added DynamicList and External entity support to declarative LUIS Recognizer.
Improved MockLuis to pay attention to parameters.

* Update cache files.

* Update LuisRecognizerOptionsV3 to include support for DialogContext.

* ExternalEntity recognizer tests running.

* Move LUIS loader and convert to LUIS library.

* Update TestBot to better handle one dialog.

* Fix TestBot to work more reliably.

* Move expression properties to its own library in order to support using them in LUIS Recognizer without introducing cycles.

* Fix bogus build warnings.

* Connect expresssion to dynamic lists.

* Add LuisAdaptiveRecognizer to wrap LUISRecognizer functionality including expressions.  This is also a breaking change because appid, etc. now is expressions.
Fixed bug in ArrayExpressionConverter where other convertes would not be used.

* Add explicit adapter dynamic list to get around serialization/deserialization issues.
Add test that uses expression.

* Update generator unit tests.

* Switch to $role filling in string type.
Get rid of lg and memorypath roles.

* Update tests to run without a secret when LUIS results are cached.

* Add back in extension method.

* Remove LuisRecognizer from Recognizer since LuisAdaptiveRecognizer handles the mismatch.

* Remove unneeded dependency.

* Address code review comments.
2020-01-29 14:33:52 -08:00
Gary Pretty cf986d8e2b
Update test projects to target .Net Core 3.1 (#3306)
* Update adapters to use async methods to read request body

* Update integration projects to targets Core 3.1

* Updated Slack Test Bot project to .NET Core 3.1

* Revert "Updated Slack Test Bot project to .NET Core 3.1"

This reverts commit 96cbf65ac4.

* Touch to trigger PR build

* Update test bot projects to target .Net Core 3.1 and add additional TestBot and TestBot.Tests project targetting 2.1

* Update test projects to target 3.1

* Fix missing reference and remove redundant file reference

* Re-add stylecop.json and fix project conditions for streaming tests

* Update stream tests proj file

* Remove services.AddMvc() from Core 3.1 projects

* Remove UseHsts and add commented out UseHttpsRedirection
2020-01-29 19:25:43 +00:00
Santiago Grangetto 9508da6912 Merge branch 'master' into add/twilio-functional-tests 2020-01-22 16:07:08 -03:00
Gabo Gilabert c9d9c46932
Optimizations to reduce unit test duration during CI (#3274)
* Added MaxCpuCount parameter to runsettings

* Moved adaptive tests to be the beginning of the sln to see the impact on the test duration and reordered projects one more time

* Enabled declarative tests in windows-release configuration

* Added XUnit parallelization to TestBotTests.
2020-01-20 16:50:34 -05:00
matiasroldan6 d30a39cf97 Add Twilio test bot project, and multitarget 2020-01-16 15:00:41 -03:00
Chris McConnell 7265bc4e7e
Profiling tool for running test scripts. (#3243)
* Profiling tool for running test scripts.

* Merge with master and fix bug in ask.
2020-01-09 16:35:19 -08:00
Chris McConnell eea2c77147
Updates to AdaptiveDialog to support schema and ambiguity (aka forms and generation scenarios) (#2936)
* Sync to master and squash form stuff.

* Update to latest sandwich form tests.

* add retry to memory

* fix logic

* Fix casing on generated files.  Add card support for confirmation.

* Update schemas and case in generated files.

* Add ignore to runonce expression.

* fix retry issues

* Fix some consitency bugs and extend file tracking to include .lg.

* Merge FormDialog into AdaptiveDialog.

* remove hard-coded help intent detection

* Merge with master

* Fix the wrong format

* Change to have locale independent imports for .lg.

* Fix bug if no expected properties.
Update generated files.

* Update to latest sandwich after merge.

* Fix missing path.

* Merge with master

* Switch to declarative for generator.
Updated expected properties on slot selection.
Update test script to allow setting configuration.
Swallow empty send activtity.

* Properly handle ignore by removing from trigger tree.
Fix expression and semantics.
Add tests for runOnce.

* Support scopes and add tests for change tracker.

* Update LUISRecognizer schema to include prediction options.
Made entities robust wrt missing $instance.
Updated generate form to include instance data.

* Add documentation to LUIS schema.

* Fix baseComponent reference to JSON Schema.

* Add support for utterance and update to latest sandwich example in testbot.

* Simplify sandwich example.

* Update MockLuis to support full LUIS recognizer and enable for generator tests.
Fix bug where utterance was generated for enum properties.
Make entity clarification more robust.

* Fix how empty activities are ignored.
Wire up MockLuis to script tests.
Fix some warnings.

* add test templates

* copy templates to adaptive.tests

* Revert "copy templates to adaptive.tests"

This reverts commit 6196528f26.

* copy test templates to adaptive.tests

* Restore bad scope exception.
Update schema.

* Make MockLuis more robust to not having your own setting file.

* several questions

* remove test2 files from testbot.json and adaptive.tests. add unittests files to adaptive.tests.

* Unittests script

* change name to unitTestsDirectory

* Make it so that trigger priority can be an expression.
Extend IndexOf to work over arrays as well as string.

* Make SendActivity more robust on detecting activity.

* Rip out scope support.
Fix bug where setting root scope caused stack overflow.

* Make path consistent.

* Address code review comments including:
* Documentation
* Pascal casing constans
* New memory scope dialogclass so schema is dialogclass.schema
* Renaming events, SetProperty->AssignEntity, ClarifyEntity->ChooseEntity
* Making schema be a plain JObject

* Switch to upper case constants to avoid an SDK breaking change.

* Remove .net framework projects from debug build.

* Fix casing on directory spec "Files"

* Removed file on lowercased path.

* Switch from OnAsk to OnEndOfActions.

Co-authored-by: Ning Gao <nigao@microsoft.com>
Co-authored-by: Dong Lei <donglei@microsoft.com>
Co-authored-by: BruceHaley <v-bruhal@microsoft.com>
2019-12-23 22:38:36 -08:00
Gabo Gilabert 0b46b984b8
SkillHandler updates using ContinueConversation and package updates (#3076)
* Refactored SkillHandler to use ContinueConversation.
Added NotImplementedExceptions for unsupported methods in skillhandler
Moved classes in the Integration and BotBuilder assemblies and deleted the skill specific ones.
Added unit tests.
Updated samples

* Touched file to force build
2019-12-04 16:47:43 -08:00
John Taylor 6f75d77e7b initial commit of protocol test project with some changes to bot.bwk.int 2019-11-27 16:12:18 -08:00
Tom Laird-McConnell ca06ab5d38 merge with master 2019-11-18 18:34:13 -08:00
Tom Laird-McConnell f6c60ecae1 Merge branch 'master' into tomlm/multiTarget 2019-11-18 18:26:20 -08:00
Tom Laird-McConnell 7404c1bc8c * add multiple targets frameworks for unit tests
* make sure that all libraries are consistently making full pdb symbols with debug builds
2019-11-08 14:20:32 -08:00
matiasroldan6 01ee9fe5e0 Rename project TestBot to PrimaryTestBot 2019-11-05 18:26:01 -03:00
Matias Roldan c5d2be4754
Facebook adapter/add handover feature
* Add Facebook handover feature
2019-11-04 16:48:26 -03:00
Gary Pretty 5219f1ac09 - Added source link package to all adapter projects
- Updated package versions for Twilio / Slack to preview
- Added appropriate properties to CSPROJ to align with other projects
- Ensure package is generated on build for Facebook / Slack
2019-10-23 11:01:55 +01:00
matiasroldan6 136cee68eb Merge branch 'master' into add/facebook-adapter-migration 2019-10-22 16:23:30 -03:00
matiasroldan6 974b832e84 Merge branch 'master' into add/facebook-adapter-migration 2019-10-22 12:05:28 -03:00