Commit Graph

375 Commits

Author SHA1 Message Date
Justin Kotalik e9b8bf085d
Fix dotnet publish issues with aspnetcorerh.dll (#835) 2018-05-15 18:10:57 -07:00
Pavel Krymets 34c797a46b
Move in-process server implementation to IIS.Server (#837) 2018-05-15 15:24:17 -07:00
Pavel Krymets 0e7effa376
Disable websocket tests on Windows 7 (#838) 2018-05-15 08:02:20 -07:00
Pavel Krymets 22a865b832
Extract a layer of IIS Async IO handling (#818) 2018-05-11 13:02:12 -07:00
Ryan Brandenburg fbf727e073 Upgrade to netcoreapp22 2018-05-08 16:21:13 -07:00
Justin Kotalik dc9db57389
Fix out of process websocket check (#819) 2018-05-07 13:49:27 -07:00
Justin Kotalik 53cad943b3
Split ANCM into two dlls. (#811) 2018-05-03 13:49:31 -07:00
Justin Kotalik c414223c72
Make feature detection tests use out of process path (#805) 2018-05-02 09:12:38 -07:00
Pavel Krymets e49b0a34ab
Make exchange classes pure virtual (#792)
Make exchange classes pure virtual
2018-05-01 16:09:49 -07:00
Nate McMaster 3d2bf869c5
Don't rely on USERPROFILE to find the path to dotnet.exe (#803) 2018-05-01 10:57:00 -07:00
Justin Kotalik 5c91dbe062 Get tests working 2018-04-10 14:21:23 -07:00
Justin Kotalik da513bd8d8 Get build.cmd working and cleanup ignored files. 2018-04-10 14:21:00 -07:00
Pavel Krymets 157e7f4fdd Creates two separate projects for ANCM V1 and V2. 2018-04-10 14:19:32 -07:00
Justin Kotalik 7afb3b6b12
Adds Gtest. (#762) 2018-04-09 15:27:52 -07:00
Justin Kotalik 47c7c1ad8f
Disable global loading of RequestHandler for in-process (#732) 2018-04-05 10:36:15 -07:00
Justin Kotalik 9f530d6621
Chunk writes to file in tests (#759) 2018-04-04 14:24:43 -07:00
Pavel Krymets 6ca61a8fc7 Merge release/2.1 to dev 2018-03-30 16:33:44 -07:00
Justin Kotalik 847ab71209 Revert " Add deps file RH injection (#731)"
This reverts commit c217e7b690.
2018-03-27 17:21:57 -07:00
Pavel Krymets c217e7b690 Add deps file RH injection (#731) 2018-03-27 16:30:25 -07:00
Yanbing Shi 2233dcf509
Merge pull request #718 from aspnet/bangbingsyb/ancm-stress
IIS ANCM stress test application
2018-03-27 10:52:57 -07:00
Justin Kotalik 3eee8b8958 Cleanup CancellationToken code 2018-03-26 18:15:36 -07:00
Yanbing Shi 0716789523 move to test folder 2018-03-25 22:42:37 -07:00
Pavel Krymets 79b038afb4 Revert "Merge branch 'dev' into release/2.1"
This reverts commit 88d40dacf9, reversing
changes made to ed801f0e88.
2018-03-23 08:35:53 -07:00
Pavel Krymets 88d40dacf9
Merge branch 'dev' into release/2.1 2018-03-22 16:47:41 -07:00
Pavel Krymets ed801f0e88 Do not return 200 for exceptions 2018-03-22 16:43:11 -07:00
Pavel Krymets 9f76dfa31f
Merge pull request #719 from aspnet/pakrym/fix-error-code
Do not return 200 for exceptions
2018-03-22 16:23:11 -07:00
Pavel Krymets 1686a71046 Return HRESULT 2018-03-22 15:49:18 -07:00
Pavel Krymets f6f5e575fb Test more things 2018-03-22 13:11:29 -07:00
Pavel Krymets 205fe9daf1 Do not return 200 for exceptions 2018-03-22 12:21:10 -07:00
Justin Kotalik f1058f8575
Cleanup ReadAsync calls, make IISHttpContext private (#696) 2018-03-22 11:13:06 -07:00
Pavel Krymets f4890ac7a2
Merge pull request #716 from aspnet/release/2.1
Merge Release/2.1 to dev
2018-03-22 10:23:29 -07:00
Pavel Krymets af96c91584
Add support for running test sites on IIS from VS (#714) 2018-03-22 10:21:59 -07:00
Justin Kotalik edcc74be3d
Remove test parallelization (#712) 2018-03-22 09:36:04 -07:00
Nate McMaster b9a2e5b627
Merge branch 'release/2.1' into dev 2018-03-21 17:43:29 -07:00
Pavel Krymets 689f114932
Add Managed to native project dependencies (#708) 2018-03-21 16:23:48 -07:00
Justin Kotalik be08942b57
Merge pull request #699 from aspnet/release/2.1 2018-03-19 17:10:44 -07:00
Justin Kotalik db27e1c891 Revert "Cleanup ReadAsync calls, make IISHttpContext private. (#685)"
This reverts commit 8c4a83dbbf.
2018-03-19 11:09:44 -07:00
Justin Kotalik 8c4a83dbbf
Cleanup ReadAsync calls, make IISHttpContext private. (#685) 2018-03-19 11:08:36 -07:00
Justin Kotalik cf4874997e
Heap allocate HTTP_DATA_CHUNK if the size of the response is too large. (#683) 2018-03-16 16:56:23 -07:00
Justin Kotalik 4b4bc2d49c
Disable flaky test SynchronousReadAndWriteTests.ReadAndWriteEchoTwice (#688) 2018-03-16 15:41:01 -07:00
Justin Kotalik b0ec797681
Re-Enable ANCM OutOfProcess tests (#678) 2018-03-16 12:10:19 -07:00
Justin Kotalik 5e74b36c53
Verify read/write buffers, use offset parameter when reading. (#652) 2018-03-16 10:11:20 -07:00
Justin Kotalik 8588b77160
Re-adding Concurrent read/write tests. Fix flakiness. (#650) 2018-03-15 10:15:55 -07:00
Pavel Krymets 174a52e5cd
Add support for unit testing from console (#665) 2018-03-14 13:19:41 -07:00
Justin Kotalik d987b48672
Expect websockets to be disabled on Win7. (#649) 2018-03-09 12:30:08 -08:00
Justin Kotalik ce2a5adb10 Use 10.0.15063.0 for Windows SDK 2018-03-08 12:10:29 -08:00
Justin Kotalik ad82bd31d8
Fix argument parsing for hostfxr, add native unit tests. (#635) 2018-03-08 11:53:12 -08:00
Justin Kotalik 00b1948937
Adds websocket feature detection, test cleanup. (#624) 2018-03-08 09:52:45 -08:00
Justin Kotalik 53360e0165
Disable SynchronousReadAndWriteTest (#630) 2018-03-06 16:58:34 -08:00
Justin Kotalik 4e8a9d2493
Move reading and writing of Pipelines to a single loop; Cancel Read every time we write. (#582) 2018-03-04 19:52:41 -08:00
Justin Kotalik 21b1febf2b
Adds environment variable feature for inprocess (#583) 2018-02-21 12:36:39 -08:00
Justin Kotalik babac2c795
Update tests to use test fixture (#571) 2018-01-29 17:48:11 -08:00
Nate McMaster 011cf720e6 Add IServerVariablesFeature
Enables fetching variables directly from IIS when using in-process
hosting. This is not available for out-of-process hosting.

Other changes:
 - Update tests to only run if IIS Express has been updated to support
 the new schema for hostingModel
 - Add a simpler test fixture for in-proc testing
2018-01-29 12:51:26 -08:00
Justin Kotalik ab7ec622ef
Make paths absolute for in-process, fix relative path check (#513) 2018-01-17 16:43:49 -08:00
Justin Kotalik c0761df411
Disables Functional tests due to status code 400 issues (#505) 2018-01-04 12:41:27 -08:00
Justin Kotalik 5d8670243c
Use location of aspnetcore.dll rather than the activating process. (#500) 2018-01-03 11:49:43 -08:00
Justin Kotalik 407f55841b
Disables tests (#499) 2017-12-29 18:05:17 -08:00
Justin Kotalik b70191fb82 Specify configuration for functional tests 2017-12-29 14:07:47 -08:00
Justin Kotalik 3f31706743 Resolve internal package reference issue 2017-12-29 12:48:01 -08:00
Justin Kotalik 3d17a40c0d Removing other test projects 2017-12-29 12:48:00 -08:00
Justin Kotalik 90d5f124b6 remove tests from ANCM as cyclic dependencies 2017-12-20 18:02:27 -08:00
Justin Kotalik b68d76417d removes .all package 2017-12-20 17:37:25 -08:00
ASP.NET CI fa9d7a7e8c Update dependencies.props
[auto-updated: dependencies]
2017-12-20 13:46:28 -08:00
BrennanConroy 2cf020103a Update to new corefx packages (#486) 2017-12-20 13:46:27 -08:00
pan-wang 30bbd87d81 Panwang/refactor (#277)
* Init check in for refactoring

* clean up to make app_offline work

* update loadassembly and build

* add configpath to aspnetcore_config to make recycle work

* Adds in process component to refactor (#249)

* outprocess first checkin (still missing marjor components)

* Adds In-Process support for shimmed module. (#257)

* Init check in for refactoring

* clean up to make app_offline work

* update loadassembly and build

* add configpath to aspnetcore_config to make recycle work

* Adds in process component to refactor (#249)

* outprocess first checkin (still missing marjor components)

* Adds In-Process support for shimmed module. (#257)

* load from bin start and catch unhandled exception

* Fixes request handler vcxproj

* Adds request handler to nuget package

* build issues

* outofprocess refactoring

* adding logging support

* enforce Warning As Error for build and enable process recycle for outofprocess

* fix AV for win32 build and update build flags

* Fixed m_srwLock lock issue

* remove dealock in loadmanagedapp and remove UseMFC

* Readd lost exception catching

* nuget package issue and status code

* fixing warnings

* Adds Headers

* removing web sockets exe for now

* remove flags

* nuspec stuff

* spelling

* only look in inetsvr for now (or same folder)

* rename method

* terminte thread before closing the handle to it

* couple changes related with AV

* null check and Kill thread for in process if dotnet timed out

* fix recursive lock issue reported by appverifier

* client disconnect support AV fix

* flow 502.5 process start failure error page

* Feedback from inperson code review
2017-12-20 13:46:27 -08:00
jhkimnew 9a1cc4ba1c clean up test framework utility functions (#273) 2017-12-19 18:40:11 -08:00
Justin Kotalik 8949f49637 merged 2017-12-07 18:55:29 -08:00
Ryan Brandenburg 34e3f3debc Update build configuration (#237) 2017-11-16 16:00:12 -08:00
Justin Kotalik a629725c7a
Revert "Disable failing tests (#473)" (#478) 2017-11-16 11:07:16 -08:00
Pranav K 3e277c8dd9 Update samples and tests to target netcoreapp2.1 2017-11-14 10:47:03 -08:00
Pavel Krymets adec0c6fbc
Disable failing tests (#473) 2017-11-13 10:56:22 -08:00
Justin Kotalik 552163ab77
Adds windows Auth support (#471) 2017-11-10 17:02:31 -08:00
jhkimnew bd18430428
Added StartupWithIStartupFilter (#236)
Added StartupWithIStartupFilter
2017-11-07 16:43:23 -08:00
Justin Kotalik 89f6f16ba5
Disable tests for continuous integration. (#234) 2017-11-07 14:25:06 -08:00
Justin Kotalik 9c065bf107
Remove header serialization in favor of setting IIS response directly. (#465) 2017-11-06 20:28:40 -08:00
jhkimnew 13312109ff
Test: Added a new MiddleWare to test the Gracefulshutdown message (#233)
Added TestMiddleWare to handle the Gracefulshutdown message instead of IISMiddleware
2017-11-06 13:47:59 -08:00
David Fowler 08186bb198
Use ipv4 when binding to ANCM port (#470)
- Today we use localhost which binds to both the ipv4 and ipv6 addresses.
ANCM never communicates over ipv6 so it's pointless. This should also properly crash
the process if the ipv4 address fails to bind (which we've seen reports in real applications for).
2017-11-03 10:24:41 -07:00
jhkimnew 483e0e9491
Upgrade xunit (#231) 2017-11-02 17:30:18 -07:00
jhkimnew 192a403b9a
Jhkim/fix testcodeissues (#229)
Fix test issue of incorrect usage of string comparison for testFlags
2017-11-01 17:31:38 -07:00
Nate McMaster bcc10d3012 Pin tool and package versions to make builds more repeatable
Part of aspnet/Universe#575
2017-11-01 14:59:02 -07:00
jhkimnew 02cffd16ec Jhkim/refactoring test (#176)
Cleans up IIS initialization testing framework
2017-10-19 12:15:24 -07:00
Justin Kotalik f91a941f8d Moves in-process to UseIISIntegration, removes Server.IIS namespace (#443) 2017-10-06 09:52:42 -07:00
Justin Kotalik 9dc69fe361 Adds support for ANCM in process (#425) 2017-10-02 16:01:46 -07:00
jhkimnew df673f631c Disable tests (#175) 2017-09-29 16:35:16 -07:00
jhkimnew 890e49e539 ANCM Test Refactoring: Initial check-in to fix the build issue on AspNetCI (#172)
* Initial check-in to fix the build issue on AspNetCI

* Updated with Jimmy's feedbacks
2017-09-29 14:49:12 -07:00
Justin Kotalik f130330db8 Updating Xunit and dotnet versions (#143) 2017-09-25 15:10:31 -07:00
jhkimnew 0120dae36b Jhkim/updatetest (#155)
* Added new test scenarios for websocket

* Fixed test issues

* Fixed test issues
2017-09-13 14:32:53 -07:00
jhkimnew c5f59e06c3 Added new test scenarios for websocket (#153) 2017-09-12 11:39:55 -07:00
Nate McMaster 1297798546 Use PackageLineup to manage PackageReference versions 2017-08-29 11:38:56 -07:00
Nate McMaster 5cf936d3cd Use Directory.Build.props/targets 2017-08-29 11:36:17 -07:00
Nate McMaster d15129110e Ensure .NET Core 1.0.5 is installed 2017-08-24 13:07:05 -07:00
Nate McMaster 7908015a3d Upgrade to xunit 2.3.0-beta4 2017-08-22 16:49:36 -07:00
Nate McMaster 24f09551d9 Remove usage of PackagePublisher 2017-07-28 17:17:26 -07:00
Nate McMaster a8802b2d2c Fix versions in the test project so restore works 2017-07-28 09:52:21 -07:00
Nate McMaster 42853bcca1 Update bootstrapper to use the compiled version of KoreBuild 2017-07-27 15:03:42 -07:00
jhkimnew afba2d05ae Jhkim/add test gracefulshutdown (#120)
Add new test for Graceful shutdown and Filtering MS request headers
2017-07-12 16:48:47 -07:00
jhkimnew 078a03ac70 Fixed build issue (#119) 2017-07-10 15:02:53 -07:00
Hao Kung 4c3e0b6721 Specify scheme 2017-07-07 12:14:34 -07:00
John Luo 5155456653 Handle graceful shutdown from ANCM 2017-06-27 13:20:21 -07:00
Pranav K a224b1a833 Re-enable desktop tests
* Remove FrameworkSkipCondition to enable desktop tests.
* Remove ConditionalTheory \ ConditionalFact since it's no longer required.
* Replace InlineData with meaningful test names
* Cleanup commented out lines of code
2017-06-09 16:44:48 -07:00
Chris R 448e6787e2 Fix auth enabled check 2017-06-07 15:43:24 -07:00
Chris R c261b37fda #371 Conditionally register auth scheme base on ANCM variable 2017-06-05 14:54:15 -07:00
Chris R c3ffde286b Clear MaxRequestBodySize 2017-06-05 11:23:08 -07:00
Hao Kung 273b25fb3a React to forbid changes 2017-05-25 18:37:27 -07:00
John Luo d6a653145d Target NETStandard 2.0 2017-05-22 15:05:12 -07:00
jhkimnew 88cc1c14d0 Added a new environment variable value UsePrivateAspNetCoreFile for ANCMTestFlags and fixing test issues (#101) 2017-05-17 16:40:29 -07:00
Hao Kung f12fc69cbf Fix test reference 2017-05-17 14:03:56 -07:00
Hao Kung 8ed21d56c8 IIS => Auth 2.0 2017-05-17 13:37:30 -07:00
jhkimnew ec90853147 Disable using privateAspNetCoreFile to test release candiate build (#100) 2017-05-17 12:57:39 -07:00
jhkimnew c7e17d13f3 ANCM test update to fix test issues (#99) 2017-05-16 17:08:14 -07:00
jhkimnew 289ecd475d Added ANCMtestFlags environment variable (#98) 2017-05-16 10:38:17 -07:00
Nate McMaster 5761ddd284 Upgrade test framework versions 2017-05-15 14:18:02 -07:00
Pavel Krymets 7e9397aa8a Remove unnecessary package references (#367) 2017-05-10 11:32:30 -07:00
Chris Ross (ASP.NET) 539a13717e Migrate to netcoreapp2.0 2017-05-05 11:37:10 -07:00
BrennanConroy 73a91b19a9 React to Logging API changes 2017-04-26 15:12:31 -07:00
Andrew Stanton-Nurse e2537e1d96 remove integration test logging (#360)
now that logging.testing has it
2017-04-25 14:41:39 -07:00
jhkimnew 2c5132251b Updated to support IISExpress and add new test cases for the additional environment variables (#93) 2017-04-24 18:17:33 -07:00
David Fowler 7a9de7cf6e React to Hosting changes 2017-04-22 11:06:40 -07:00
John Luo ce3c71b5b3 Set PreferHostingUrls when IIS adding override address 2017-04-08 20:49:26 -07:00
Andrew Stanton-Nurse b019d30426 react to aspnet/hosting#1005 (#353) 2017-04-06 15:19:40 -07:00
Sourabh Shirhatti 5854e03ddc Update Korebuild and dependency versions (#85)
Merging
2017-04-03 16:06:25 -07:00
Andrew Stanton-Nurse 581e207e0f fix build 2017-03-31 13:34:46 -07:00
Andrew Stanton-Nurse 676590eb32 react to aspnet/Hosting#996 (#349) 2017-03-31 13:22:51 -07:00
John Luo 4334fe19f2 Clean up test skip conditions 2017-03-25 22:00:13 -07:00
John Luo 4351a3e448 Fix build (#345)
Launch tests in CoreCLR or CLR where appropriate
2017-03-24 16:50:38 -07:00
Pranav K cdadfd48d0 Try renaming functional tests as a potential mitigation for long path issues 2017-03-23 11:14:01 -07:00
Pranav K 20dcccd847 Revert "Revert "Change compilation targets.""
This reverts commit 5f76cd272a.
2017-03-23 09:08:05 -07:00
N. Taylor Mullen 5f76cd272a Revert "Change compilation targets."
This reverts commit 42d34e4559.
2017-03-22 17:22:19 -07:00
Pranav K 42d34e4559 Change compilation targets.
* Remove net451 as a compilation target
* Upgrade to netcoreapp2.0
2017-03-22 14:37:25 -07:00
Nate McMaster de30243c11 Unify dependency versions to one file and remove workarounds 2017-03-15 15:06:58 -07:00
Doug Bunting e36757910b Correct targets in IISIntegration.sln and remove TestSites workarounds
- remove unnecessary x64 and x86 configurations from the solution
- dotnet/sdk#396 has been fixed; web sites target x86 automatically

nit: sort dependencies
2017-03-13 12:06:30 -07:00
jhkimnew 5ae8155c2a Updated version for Microsoft.Net.Http.Headers to fix build issue 2017-02-27 17:25:33 -08:00
jhkimnew c983c0e642 Updated to remove throwing exception when test starts with 32 bit mode 2017-02-27 17:09:56 -08:00
jhkimnew 5fadbcb329 Upgrade to VS2017 (#76) 2017-02-27 16:37:59 -08:00
jhkimnew cc29517ef3 Add https client ceritificate mapping test (#74) 2017-02-24 17:52:16 -08:00
Nate McMaster 10179ffad6
React to aspnet/Korebuild#160 2017-02-16 10:07:05 -08:00
Doug Bunting 55f31a8279 Use .NET 4.5.2 target framework when deploying test sites
- follow-up to 8ae481c
- sites are also built for .NET 4.5.2 in desktop runs
2017-02-14 19:13:49 -08:00
Doug Bunting 8ae481c9f0 Bump test projects up to .NET 4.5.2
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
  - except Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests; will skip that another way (later)

Also fix line endings in project files; unable to proceeed otherwise
2017-02-14 12:30:06 -08:00
jhkimnew fc580eb0e9 Updated copy license for test 2017-02-14 11:39:37 -08:00
jhkimnew b4e3ccf67f added test cases to Dev branch (#72) 2017-02-14 11:15:45 -08:00
Nate McMaster 732947ed66 PR feedback. Also, add editorconfig because it is awesome 2017-02-02 16:54:59 -08:00
Nate McMaster aec1bffdd7 Disable standalone tests to workaround issues in Microsoft.NET.Sdk
Re-enable when https://github.com/dotnet/sdk/issues/696 is resolved
2017-02-02 16:27:48 -08:00
Nate McMaster 330b812c78 Upgrade to VS 2017 2017-02-02 16:25:28 -08:00
Pranav K 8046dcc0f2 Updating to 4.4 CoreFx packages 2016-12-14 14:47:29 -08:00
Chris R 9ccc896b1d #297 Standardize the test site layout, use the publish tool 2016-11-23 14:24:06 -08:00
Chris Ross (WEB TOOLS) a68018842a Add Win7 runtimes to the functional test project 2016-11-23 11:09:34 -08:00
Chris R c91c2a9030 #292 Test with the bin deployed aspnetcore.dll 2016-11-22 15:43:41 -08:00
Nate McMaster 798767180b
Merge branch 'rel/1.1.0' into dev 2016-11-10 10:41:38 -08:00
Nate McMaster f2cbf9f414
Add macOS Sierra to list of runtimes in TestSites project 2016-11-10 10:35:25 -08:00
Nate McMaster 62449b9882
Build 1.1.0-preview4 version of dotnet-publish-iis 2016-11-10 10:28:43 -08:00