Commit Graph

17302 Commits

Author SHA1 Message Date
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
Andrew Stanton-Nurse ad79cdd123 fix hangs due to uncleared TCS in IntegrationTesting (#1008) 2017-04-06 11:15:45 -07:00
Kiran Challa c42617e057 Converted samples and test projects to run on netcoreapp2.0 2017-04-06 10:21:31 -07:00
John Luo 89de0e52d7 Generate package cache for each RID 2017-04-05 19:27:19 -07:00
John Luo 4463144186 Fix build and remove cyclic dependencies 2017-04-05 18:21:24 -07:00
Pranav K 3b016e6832 Use 4.3.0 version of System.Threading.Tasks.Extensions 2017-04-05 18:03:24 -07:00
John Luo c6c267507a Temporarity skip AzureIntegration packages due to rename 2017-04-05 17:26:38 -07:00
John Luo 36cd2b899b Add Microsoft.AspNetCore.All metapackage and build package cache 2017-04-05 17:12:27 -07:00
John Luo ff3ff939c3 Update WindowsAzure.Storage version (#217)
* Update WindowsAzure.Storage version

* Remove target fallback
2017-04-05 16:28:43 -07:00
Ajay Bhargav Baaskaran 697745c490 [Fixes #218] Set IXmlRepository using ConfigureOptions 2017-04-05 16:08:18 -07:00
Pavel Krymets dd02ba577f Use corefxlab and corefx by source (#1612) 2017-04-05 15:37:45 -07:00
Chris R aa5eb9eb83 #18 rename lightup packages to *.HostingStartup 2017-04-05 12:56:16 -07:00
Cesar Blum Silveira 39164eeb40 Simplify WebHostBuilderTests.CanUseCustomLoggerFactory.
- Keep all the code in the test itself, instead of in an
  extension method. Makes it easier to understand what's
  happening without having to look up the extension
  method's definition.
2017-04-05 11:23:54 -07:00
Cesar Blum Silveira 7d50f34b85 Show unexpected error logs in assertion failures. 2017-04-05 11:23:04 -07:00
David Fowler bab4332a47 Add benchmark that drains the buffer without going through the pipe (#1611) 2017-04-05 10:09:43 -07:00
Cesar Blum Silveira adea477824 Re-write commented out tests in RequestHeaderLimitsTests as Frame tests (#1583). 2017-04-05 10:09:31 -07:00
Stephen Halter b40d8b4248 Fix naming of IConnectionInformation.OutputReaderScheduler (#1608) 2017-04-04 21:30:33 -07:00
glennc 0ab882b6d3 Allow configuration and logging to be configured on WebHostBuilder, setting up for the removal of AddProvider from ILoggerFactory. 2017-04-04 14:43:13 -07:00
Cesar Blum Silveira 7ceea5323a Rename namespaces/directories/classes in Kestrel.Core and Transport.Libuv (#1582).
- Put everything in the libuv transport package under `Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.*` namespaces.
- Move stuff in Transport.Libuv/Internal/Http and Transport.Libuv/Internal/Infrastructure to Transport.Libuv/Internal (keep the Networking directory for the libuv wrappers).
- Add `Libuv` prefix to most libuv internal classes.
- Rename `KestrelEngine` to `LibuvTransport`.
- Rename `SocketOutputConsumer` to `LibuvOutputConsumer`.
- Rename `SocketOutputProducer` to `OutputProducer`.
- Fix namespaces in `Microsoft.AspNetCore.Server.Kestrel.Core.`
2017-04-04 13:45:02 -07:00
John Luo 794508fbf2 Only publish ForTesting folder when needed 2017-04-04 10:51:33 -07:00
Pranav K c950e713c2 Updating versions to 2.0.0-preview1 2017-04-04 06:33:09 -07:00
Pranav K acc454bc36 Include CLI tool references when calculating build dependency graph 2017-04-03 23:07:35 -07:00
Pranav K fe18a8a793 Updating versions to 2.0.0-preview1 2017-04-03 21:41:12 -07:00
Pranav K 9c2b7b7842 Updating versions to 2.0.0-preview1 2017-04-03 21:41:12 -07:00
Pranav K ff89987243 Updating versions to 2.0.0-preview1 2017-04-03 21:41:12 -07:00
Pranav K d7bce59fe5 Updating versions to 2.0.0-preview1 2017-04-03 21:41:11 -07:00
Pranav K 290fd0a28d Updating versions to 2.0.0-preview1 2017-04-03 21:41:10 -07:00
Pranav K ebc2c99aaf Updating versions to 2.0.0-preview1 2017-04-03 21:41:10 -07:00
Pranav K c420addfca Updating versions to 2.0.0-preview1 2017-04-03 21:41:10 -07:00
Pranav K f264659c95 Updating versions to 2.0.0-preview1 2017-04-03 21:41:10 -07:00
Pranav K 4ea73f7e70 Updating versions to 2.0.0-preview1 2017-04-03 21:41:10 -07:00
Pranav K e0de7f1e1e Updating versions to 2.0.0-preview1 2017-04-03 21:41:10 -07:00
Pranav K 023b1d7db8 Updating versions to 2.0.0-preview1 2017-04-03 21:41:09 -07:00
Pranav K 9b5a26f774 Updating versions to 2.0.0-preview1 2017-04-03 21:41:09 -07:00
Pranav K 4b8de0b0f1 Updating versions to 2.0.0-preview1 2017-04-03 21:41:09 -07:00
Pranav K 94b7d78ff3 Updating versions to 2.0.0-preview1 2017-04-03 21:41:08 -07:00