Commit Graph

18017 Commits

Author SHA1 Message Date
Hao Kung f6cf5293a0 Add challenge/forbid overloads for MVC 2017-04-12 16:03:35 -07:00
Mike Harder 5f9fa5c009 Temporarily remove `dotnet run` argument separator
- Workaround for "dotnet run no longer passes additional arguments to application" (https://github.com/dotnet/sdk/issues/1118)
2017-04-12 14:22:18 -07:00
Mike Harder 710864eff7 Skip NtlmAuthenticationTests.NtlmAuthentication test
- Workaround for regression in `dotnet run` (https://github.com/dotnet/sdk/issues/1118)
2017-04-12 13:38:34 -07:00
John Luo b49fc08f8b Prevent USERSECRETS001 warnings while building cache 2017-04-12 13:24:04 -07:00
Stephen Halter db159190bd Don't fail tests if port 5000 is in use (#1650) 2017-04-11 23:13:59 -07:00
John Luo 77b2ffba00 React to dotnet store command update 2017-04-11 21:45:41 -07:00
John Luo 936231f327 React to cli command rename 2017-04-11 20:10:54 -07:00
Pranav K 09ccfd8f94 Use the 0.4.0 version of Microsoft.AspNetCore.IntegrationTesting 2017-04-11 15:42:28 -07:00
Nate McMaster e0e972e98c Update travis and appveyor build settings to include rel branches 2017-04-11 14:54:36 -07:00
Nate McMaster 734c735fb5 Simplify console output and fix color output on CMD 2017-04-11 14:45:52 -07:00
Nate McMaster cd5fa7ec1f Update package verion to 1.0.1 rtm and pin build dependencies and tools 2017-04-11 14:34:07 -07:00
Ryan Nowak 569a4e3d13 Add benchmarks to solution 2017-04-11 08:23:13 -07:00
Ryan Nowak ca66e89899 Add a basic attribute routing test 2017-04-11 08:12:27 -07:00
Ryan Nowak 6c79e84d1b Add BenchmarkDotNet boilerplate 2017-04-11 08:12:26 -07:00
Steve Sanderson 8c58086030 Make TreeRouter restore RouteData snapshots consistently. Fixes #394. 2017-04-11 15:36:34 +01:00
Erick Galassi ea429cccf4 Minimize CSS in production builds (all templates) 2017-04-11 14:51:31 +01:00
Pavlo Glazkov c0205cfc4e Fix watchOptions in webpack.config.js being ignored by WebpackDevMiddleware (#806)
This enables Docker HMR workflow and the workaround mentioned in this comment: https://github.com/aspnet/JavaScriptServices/issues/806#issuecomment-290081291
2017-04-11 14:35:57 +01:00
Ben Adams b28f85236f Console type needs exe 2017-04-11 14:31:28 +01:00
Kiran Challa ee1cfdf41e [Fixes #] DeveloperExceptionPage throws when SourceFileContent is null in an ICompilationException 2017-04-11 05:59:17 -07:00
Mike Harder 99278c4691 Workaround for "Explicit RID still required for .NET Framework test projects"
- Addresses #1617
2017-04-10 22:03:00 -07:00
Ben Adams d29e4d4cf0 Specialized struct generics rather than interface (#1640)
Changed the IHttpParser interface to be generic. This lets use a struct to 
get better code generation and also should allow us to inline calls back into
the handler from the parser.
2017-04-10 19:30:18 -07:00
N. Taylor Mullen 0b324b8ca1 React to Microsoft.AspNetCore.Razor.Evolution => Microsoft.AspNetCore.Razor.Language.
aspnet/Razor#1169
2017-04-10 11:53:05 -07:00
Stephen Halter 1faaefef30 Fix Libuv.Tests directory name (#1646) 2017-04-10 11:43:12 -07:00
Ben Adams 2863cca8ca FrameFeatureCollection benchmark (#1643) 2017-04-09 16:02:18 -07:00
Ben Adams fb22629da6 Use Span.IndexOf rather than Contains (#1638)
- Remove Contains method and use IndexOf (which is already vectorized) to look for CR in header values.
2017-04-08 23:45:26 -07:00
John Luo ce3c71b5b3 Set PreferHostingUrls when IIS adding override address 2017-04-08 20:49:26 -07:00
David Fowler d92c55dbfc Fix spelling nit 2017-04-08 01:50:25 -07:00
Stephen Halter 58284bde5c Don't dispose WriteReqPool and PipeFactory too soon (#1633) 2017-04-08 01:35:02 -07:00
David Fowler 0fd885e5eb Signal the reader after aborting the connection (#1636)
- This will give it a chance to unwind gracefully before failing
with an invalid request.

Fixes #1632
2017-04-08 01:22:06 -07:00
Cesar Blum Silveira 27584dc620 Add new MessageBody tests and refactor some existing ones.
- No need to test with FIN since we consider that an error
- Consolidate HTTP/1.0 and HTTP/1.1 tests that were the same except for the HTTP version
- Add a few new tests
2017-04-07 20:26:34 -07:00
Pavel Krymets 53b0eea2ec Use writable buffer writer (#1564) 2017-04-07 14:40:10 -07:00
Jass Bagga 033c8adc3a Add RangeHelper
See https://github.com/aspnet/mvc/issues/3702
2017-04-07 14:16:05 -07:00
Pranav K e1533c2203 Use 2.0.0 version of Internal.AspNetCore.Sdk 2017-04-07 12:03:14 -07:00
David Fowler 239b691ff5 A few HttpParser changes (#1624)
- Renamed KestrelHttpParser to HttpParser
- Removed the generic virtual dispatch as it turns out to be an
order of magnitude slower than regular virtual dispatch. This change
means we also lose the inlining of Frame.OnStartLine and Frame.OnHeader.
2017-04-07 08:35:53 -07:00
Steve Sanderson 5dc476182c Reference bootstrap JS in KnockoutSpa/ReactSpa/VueSpa. Fixes #846 2017-04-07 15:48:20 +01:00
Andrew Stanton-Nurse 687ff27beb redisable functional tests on mac (#354) 2017-04-06 19:21:49 -07:00
Cesar Blum Silveira f253dbc0c0 Split transport-specific tests and general tests into distinct test projects (#1588).
* Rename EngineTests to LibuvTransportTests.
* Move libuv-specific tests into their own test project.
* Move LibuvOutputConsumerTests.AllocCommitCanBeCalledAfterConnectionClose to new OutputProducerTests class and rename it to WritesNoopAfterConnectionCloses.
* Remove TransportContext from TestServiceContext.
* Make KestrelTests depend on Kestrel.Core only.
* Rename Microsoft.AspNetCore.Server.Kestrel.KestrelTests to Microsoft.AspNetCore.Server.Kestrel.Core.Tests.
* Add Microsoft.AspNetCore.Server.Kestrel.Tests test project for WebHostBuilderKestrelExtensionsTests.
* Increase socket receive timeout in MaxRequestBufferSizeTests to mitigate flakiness.
* Anything using TestServer should be a functional test.
* Move out of LibuvTransportTests tests that are not specific to LibuvTransport.
  - Move to RequestTests:
    - Http11 (rename to Http11KeptAliveByDefault)
    - Http10ContentLength (rename to Http10NotKeptAliveByDefault)
    - Http10KeepAlive
    - Http10KeepAliveNotUsedIfResponseContentLengthNotSet (rename to Http10KeepAliveNotHonoredIfResponseContentLengthNotSet)
    - Http10ContentLengthKeepAlive (rename to Http10KeepAliveHonoredIfResponseContentLengthSet)
    - Expect100ContinueForBody (rename to Expect100ContinueHonored)
    - ZeroContentLengthAssumedOnNonKeepAliveRequestsWithoutContentLengthOrTransferEncodingHeader
    - ConnectionClosesWhenFinReceivedBeforeRequestCompletes (test was actually not marked as Theory, and was incorrect)
    - RequestsCanBeAbortedMidRead
    - RequestHeadersAreResetOnEachRequest
    - UpgradeRequestIsNotKeptAliveOrChunked
    - HeadersAndStreamsAreReused (rename to HeadersAndStreamsAreReusedAcrossRequests)
  - Move to ResponseTests:
    - Http10RequestReceivesHttp11Response (rename to Http11ResponseSentToHttp10Request)
    - ZeroContentLengthSetAutomaticallyAfterNoWrites
    - ZeroContentLengthSetAutomaticallyForNonKeepAliveRequests
    - ZeroContentLengthNotSetAutomaticallyForHeadRequests
    - ZeroContentLengthNotSetAutomaticallyForCertainStatusCodes
    - ConnectionClosedAfter101Response
    - ThrowingResultsIn500Response
    - ThrowingAfterWritingKillsConnection
    - ThrowingAfterPartialWriteKillsConnection
    - ThrowingInOnStartingResultsInFailedWritesAnd500Response
    - ThrowingInOnCompletedIsLoggedAndClosesConnection
    - FailedWritesResultInAbortedRequest
    - NoErrorsLoggedWhenServerEndsConnectionBeforeClient
    - NoResponseSentWhenConnectionIsClosedByServerBeforeClientFinishesSendingRequest
    - ResponseHeadersAreResetOnEachRequest
    - OnStartingCallbacksAreCalledInLastInFirstOutOrder
    - OnCompletedCallbacksAreCalledInLastInFirstOutOrder
  - Remove:
    - RePathEscapeTests (theory data to HttpParsingData)
    - ReDisconnectingClient (what was that testing?)
2017-04-06 19:09:40 -07:00
John Luo 25842d5f74 Add more packages to cache #21 2017-04-06 19:00:35 -07:00
Cesar Blum Silveira 26bd01337d Re-write UvStreamHandleTests.ReadStopIsIdempotent without Moq. 2017-04-06 18:49:52 -07:00
John Luo c85a0ff7ef Use dependencies when available 2017-04-06 16:13:02 -07:00
Andrew Stanton-Nurse 2464d81167 fix repo.targets test project reference 2017-04-06 15:55:49 -07:00
Mike Harder a594d0eeb8 Workaround for "Explicit RID still required for .NET Framework test projects"
- Addresses #1617
2017-04-06 15:49:23 -07:00
BrennanConroy ad1d0cc67d Pass configuration section to LoggerFactory 2017-04-06 15:27:19 -07:00
Andrew Stanton-Nurse 93a5454ce5 react to aspnet/hosting#1005 (#773) 2017-04-06 15:19:50 -07:00
Andrew Stanton-Nurse b019d30426 react to aspnet/hosting#1005 (#353) 2017-04-06 15:19:40 -07:00
Andrew Stanton-Nurse 50299cbac6 react to aspnet/Hosting#1005 (#68) 2017-04-06 15:19:34 -07:00
Andrew Stanton-Nurse 1ae1ff01a3 Add test logging helpers to Hosting (#1005) 2017-04-06 15:19:26 -07:00
John Luo 0da88e0dda Avoid double escaping in PathString 2017-04-06 13:29:06 -07:00
John Luo 6c7d099548 Fix directory name 2017-04-06 12:38:51 -07:00
John Luo eb918fc4b2 Use osx.10.12-x64 RID on macOS 2017-04-06 12:32:47 -07:00