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

64 Коммитов

Автор SHA1 Сообщение Дата
Joel Mut dd28f3a273
Update packages to latest version that support .NET 6 (#6840) 2024-08-12 17:04:50 -05:00
Jhonatan Sandoval Velasco 429903adaf
fix: [#6825] Update xunit and fix compatibility issues in unit tests (#6836)
* update xunit and fix compatibility issues in unit tests

* remove auto-generated comments

* remove duplicated reference
2024-08-12 12:16:17 -05:00
Jhonatan Sandoval Velasco 5c5cf2b7d2
update moq to 4.20.70 (#6831) 2024-08-05 09:28:24 -05:00
Jhonatan Sandoval Velasco 51263f75e4
fix: [#6825]Update old packages (#6830)
* update old packages

* revert incompatible packages updates

* remove Backup csproj files
2024-08-01 15:34:57 -05:00
Joel Mut 276bb33945
[#6741] Remove .Net Core 3.1 from projects (#6819)
* Remove netcoreapp3.1 and fix System.Text.Json issue

* Fix System.Formats.Asn1 security issue

* Fix remaining System.Text.Json issue
2024-07-16 15:26:45 -05:00
tracyboehrer 3a59c0bbf4
Corrected Authority in MsalServiceClientCredentialsFactory (#6802)
* MsalServiceClientCredentialsFactory correction for Authority

* Added BotFrameworkHttpAdapter obsolete annotation

* Bumped Microsoft.NET.Test.Sdk (for compliance)

* Removed test projects from solution

---------

Co-authored-by: Tracy Boehrer <trboehre@microsoft.com>
2024-06-19 09:43:01 -05:00
Cecilia Avila 4519cf7049
[#6741] Update projects to .Net 8 (#6760)
* Update test projects to .NET8

* Update test bots to .NET8

* Update CI yamls to .NET8

* Apply feedback

* keep support for netcoreapp3.1

* fix pipeline task name

* separate target framework conditionals

* add missing task to pipeline

---------

Co-authored-by: JhontSouth <jhonatan.sandoval@southworks.com>
2024-05-16 08:40:30 -05:00
Cecilia Avila 33c955a154
Add RejectAllResponses method in RequestManager (#6627) 2023-05-08 14:43:37 -05:00
Cecilia Avila 77cd090d2d
Set MaxDepth prop in Json Serialize/Deserialize (#6399) 2022-07-05 13:02:02 -05:00
Cecilia Avila 8d6454634a
[#5977] Update projects to .Net 6 (#6332)
* Update test projects to target .net6

* Update test bots to target .net6

* Update CI pipelines to target .net6

* Remove old vmImage from comments & fix Webex test

* Remove multitarget from FunctionalTests project

* Change target framework in FunctionalTests project

* Apply feedback for NET6 exceptions and tests

* Fix Serialization error in LogActivityAsync
2022-06-09 15:26:12 -04:00
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 1a51f93127
Upgrade named pipes to use new streaming library. (#6147)
* Upgrade named pipes to use new streaming library.

* Corrected failing unit test: CanContinueConversationOverWebSocket where the Moq couldn't find a default constructor for StreamingConnection class.

* Fix legacy adapter.

* Named Pipe test.

* Fix flaky tests.

* Remove implicit dependencies.

* Fix Keep_alive test.

* minor test fix.

Co-authored-by: Lee Parrish <30470292+LeeParrishMSFT@users.noreply.github.com>
2022-02-03 10:02:32 -08:00
johnataylor 09d78db586
add control property (#5943)
* add control property

* disable fragile test
2021-10-29 15:54:02 -05:00
Muthuveer Somanathan 9455b6c45a
E2E tests for new streaming library (#5932)
* E2E test infra with basic sample test.

* Activity tests with suggested actions and attachments.

* Chunk streams if > 3KB.

* Perf optimization when chunking of stream not needed.

* Crash/Disconnect/Cancellation tests.

* Refactor to enable concurrency testing.

* Concurrency test.

* Fix build break.

* Fix build break.

* Fix test failure.

* Pass CancellationToken in server and client.

* CancellationToken in BotFrameworkHttpAdapter.

* Fix test issue.

* Fix test.

* Optimize chunking for non-memory streams.

* Chunk optimization for MemoryStream

* Streaming: Add TimeOut centralized methods that are also debugger friendly (#5938)

* Streaming: add default timeout extension method that is debugger friendly

* Streaming session: clean up usings

* Streaming client: fix credentials

* Remove streaming library dependency on ASP.NET core Http. (#5937)

* Remove streaming library dependency on ASP.NET core Http.

* Remove Microsoft.AspNetCore.Connections.Abstractions dependency.

* Dispose socket.

* Dispose socket in StreamingConnection.

Co-authored-by: Carlos Castro <carlosscastro@users.noreply.github.com>
2021-10-29 09:37:04 -07:00
Muthuveer Somanathan 15fa19eb16
Update Microsoft.AspNetCore.Http to 2.1.22 (#5936)
* Update Microsoft.AspNetCore.Http to 2.1.22

* Added couple ore projects.
2021-10-28 17:33:14 -07:00
Muthuveer Somanathan da8348a7b4
Streaming Library Refactor (#5908) 2021-10-14 21:59:07 -07:00
Cecilia Avila 64a2df8a24
Part 2 - Add unit tests for Microsoft.Bot.Streaming library (#5840)
Co-authored-by: sw-joelmut <joel.mut@southworks.com>
2021-09-30 10:38:06 -07:00
Cecilia Avila db098e7655
Part 1 - Add unit tests for Microsoft.Bot.Streaming library (#5839)
Co-authored-by: sw-joelmut <joel.mut@southworks.com>
2021-09-30 10:37:58 -07:00
Monica Rivera 63981f1cb4
Make StreamingRequestHandler methods virtual (#5828)
* Make methods virtual

* Move package reference
2021-08-12 09:12:57 -07:00
johnataylor 21ebf04eeb
Add an additional wait to fix race in Web socket connect test (#5234)
* Add an addition wait to fix race in Web socket connect test

* suppress exception on deserailize that prematurely closed the connection - another race
2021-03-01 18:12:58 -08:00
johnataylor 5b4284c4df
fix a race condition in the streaming connect test (#5194) 2021-02-12 10:14:58 -08:00
Eric Dahlvang a87d1154e9
Streaming fixes (#4959)
* Streaming: Return BadRequest if an Activity is not present

* Nullcheck callerid in GetAudienceFromCallerId

* Await the ReadToEndAsync within ReadBodyAsStringAsync
2020-11-12 14:36:36 -08:00
Steven Gum 3038652aed
Add StreamingRequestHandler.Audience for Streaming + Skills (#4805)
* Add StreamingRequestHandler.Audience for Streaming + Skills

* refactor private helpers in BFHttpAdapter

* add additional ctors for audience, refactor original ctors, update tests

* CODEOWNERS update
* add Microsoft.Bot.Streaming.Tests owner
* use @microsoft/bb-core
* force review pings for Adaptive codebase

* add or update copywrite headers in Microsoft.Bot.Builder

* fix StreamingRequestHandler WebSocket+Audience ctor
* add & refactor unit tests for new SRH ctors
* revert WebSocketTransportTests changes

* apply PR feedback
2020-10-20 19:35:32 -07:00
Denise Scollo 4016b618ae
Migrate Bot.Streaming.Tests to Xunit (#4592)
Co-authored-by: CeciliaAvila <cecilia.avila@southworks.com>
2020-09-10 15:42:16 -07:00
Denise Scollo 03edd7ca9f
Migrate Payloads folder's tests to Xunit (#4590)
Co-authored-by: CeciliaAvila <cecilia.avila@southworks.com>
2020-09-10 11:20:42 -07:00
Josh 357f4a29f1
Fixing and suppressing build warnings (#4406)
* suppressing warnings

* reverting async

* Revert "reverting async"

This reverts commit 7675775d69.

* suppressing await warning

* Removed explicit ref to json 10.x from AppInsightsWebApi to avoid version warnings.
Updated Twilio.TestBot to target only netcoreapp3.1, removed reference to Microsoft.AspNetCore.App and avoided warning
Removed unused variable from OAuthPromptTests.cs
Updated NamedPipesTest to capture the task returned by ConnectAsync.
Removed Razore references from TestProtocol to avoid warning.
Added TreatWarningsAsErrors to the Directory.Build.props for tests so we keep things clean going forward

* Consolidated some nuget packages to see if that addresses some msbuild warnings.

* Added explicit ref to Config on test project to see if that fixes warning

* Added explicit packages to see if we can avoid warnings

* Added explicit reference to solve build warnings.
Consolidated assembly versions

* Added explicit assembly reference to solve build warning

* Updated httpheaders version in streaming and removed explicit refs from other projects.

* Changed headers to 2.1.14

* Added explicit ref for headers to Adaptive.Profiling

* Added explicit ref

* More explicit refs for Http.Headers

* One more explicit ref to http headers

* Added explicit version for Http.Headers to all web projects

* Removed all explicit references to http.headers

* Removed Http.Headers from functional tests

* Set the build log to detailed to see if I can narrow down the issue.

* Trying lout explicit ref for Microsoft.Net.Http.Headers in ApsNet.Core

* Cleanup: Removed detailed parameter from yaml
Cleamup: reverted steam to use the lowest version of httpheaders and also lowered the version in Integration.AspNet.Core
Added explicit versions for Microsoft.Net.Http.Headers to FunctionalTests

* Lowered headers version to match streaming

* Added 3.1 targets for Slack and Webex adapters.
Added explicit Microsoft.AspNetCore.App to Functional tests

* Cleanup: reverted some changes that don't seem to be needed

* Changed TestFrameworks to TestFramework for the project that only target one framework.

Co-authored-by: Gabo Gilabert <ggilaber@microsoft.com>
2020-08-11 09:36:14 -07:00
Denise Scollo 9a4ed7594b
Lower time needed to complete running tests (#4306)
* update build yaml

- remove unnecessary install of net core specifics
- add maximunCpuCount: true variable to build resources in parallel

* update yaml to split tests for netcore 21 and 31

* update ci test steps to target netcore 21 or 31

* change artifact name to use

* update target framework to be set with variable for tests

* fix properties indentation

* fix indentation properties for schema csproj

* add missing space in comment

Co-authored-by: Santiago Grangetto <santiagograngetto@gmail.com>
2020-07-24 09:50:32 -07:00
Daniel Evans 30a6e83a01 Move to use WhenAll over WaitAll. 2020-05-04 15:53:13 -07:00
Daniel Evans 3ba20cbf4b Truncate GUID used for pipename to make sure the path doesn't exceed 104 characters on the Mac build machine. 2020-05-04 15:09:22 -07:00
Daniel Evans bd1f0d4154 Improve disconnect test so it actually tests disconnect. 2020-05-04 14:10:43 -07:00
Ashley Finafrock de20491423 adding using for WebSocketClient initialization 2020-02-18 12:55:09 -08:00
Ashley Finafrock 1a4862110a changed unit test to user Assert.ThrowsAsync 2020-02-18 12:02:10 -08:00
Ashley Finafrock 9d550ed96d extended ConnectAsync method to accept CancellationToken optionally 2020-02-18 10:18:25 -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
Gabo Gilabert cc64cca200
Added netcoreapp3.0 to the target framerworks list and conditional co… (#3215)
* Added netcoreapp3.0 to the target framerworks list and conditional compilation options.

* Touched to force build

* Added or for netcoreapp2.1

* Changed condition to see if the build server likes it

* Moved some nuget packages in conditional sections based on target framework

* Update web project to not include AspNetCore.App if it is framework 3.0

* Added explicit reference to aspnetcoreapp for 3.0

* Added explicit ref to 3.0

* Added explicti references to Microsoft.AspNetCore.App for .net core 3.0

* More explicit refs for 3.0

* Updated TestBot to support 3.0.
Added UserSecretsId property to other web projects to make it easier to test locally without exposing secrets in git.
2020-01-06 14:46:01 -08:00
Chris Mullins 703249ae0a
Fix Warnings in Streaming codebase (#3029) 2019-11-26 13:20:01 -08:00
Eric Dahlvang 2d2bd00646 Consolidate most nuget packages (#2990)
Upgrade recognizers to latest
2019-11-19 16:17:35 -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
Eric Dahlvang 48cfed43a6 Fix compiler warning in Streaming.Tests project 2019-11-07 13:47:52 -08:00
Daniel Evans 8ca31385bf Fix test regex 2019-10-23 14:31:55 -07:00
Daniel Evans c235d34d97 remove whitespace 2019-10-23 13:08:09 -07:00
Daniel Evans 2c8c5faa17 More cleanup 2019-10-23 13:00:36 -07:00
Daniel Evans c45bd2a282 Rework to set serviceURL as trusted instead of trying to pipe credentials around. 2019-10-22 20:42:50 -07:00
Daniel Evans 657ff46dea Merge branch 'dev/streaming-token' of https://github.com/microsoft/botbuilder-dotnet into dev/streaming-token 2019-10-22 16:19:15 -07:00
Daniel Evans 3a8d7652d5 Fix test and rename const 2019-10-22 16:18:30 -07:00
stgum 53e8df6c18 add safe navigation operator to ProcessRequestAsync 2019-10-22 15:27:17 -07:00
Daniel Evans ec71c0a200 Use the AppCredentials we already have instead of creating new ones. 2019-10-22 15:00:30 -07:00
Daniel Evans 3900f8335e Update StreamingRequestHandler to be able to great and send bot tokens. 2019-10-21 18:47:43 -07:00
Daniel Evans ab05cc96c4 Massive overhaul to make test run on Linux. 2019-10-17 13:54:55 -07:00