Pavel Krymets
3c731ceb13
React to logging in DI changes ( #1873 )
2017-06-02 08:34:22 -07:00
Cesar Blum Silveira
10f88aeafc
Fix duplicate ID test warning.
2017-05-17 10:57:39 -07:00
Stephen Halter
6a3d6d4273
Fix flaky tests that bind to discovered IP addresses ( #1795 )
2017-05-01 11:41:10 -07:00
Cesar Blum Silveira
3b2d0a52f3
Merge branch 'rel/2.0.0-preview1' into dev
2017-04-28 10:00:17 -07:00
Cesar Blum Silveira
9185deecda
Avoid port conflicts in AddressRegistrationTests ( #1721 ).
2017-04-28 09:56:29 -07:00
Nate McMaster
c2f15fcac3
Move user-facing strings into resource files
2017-04-26 17:22:55 -07:00
Nate McMaster
eb1301f28d
Skip HostName binding test when network is unreachable
2017-04-25 14:33:06 -07:00
Stephen Halter
f26c31c116
Fix scope id test failures on mac and linux ( #1754 )
2017-04-24 17:15:41 -07:00
Nate McMaster
089ff49643
Put hostname address registration into separate test
2017-04-24 17:14:43 -07:00
David Fowler
dcea15dba7
Skipped newly failing AddressRegistration tests failing tests on OSX and Linux ( #1732 )
...
* Unblock CI
2017-04-21 01:54:44 -07:00
Nate McMaster
7a3a731686
Refactor address binding and handle EAFNOSUPPORT
...
- Simplify KestrelServer by refactoring address binding into a separate class
- Use strategy pattern to implement address binding for different sceanrios
- Add fallback from binding 0.0.0.0 if binding to [::] fails (can happen if UvException with EAFNOSUPPORT is thrown)
2017-04-19 15:58:12 -07:00
Cesar Blum Silveira
a0743650ef
Don't use hardcoded ports in PreferHostingUrls tests ( #1701 ).
2017-04-17 20:47:46 -07:00
John Luo
0723d46ec4
Honor PreferHostingUrls #1575
2017-04-13 18:12:53 -07:00
Nate McMaster
ed4a27a827
Remove ListenOptions.Scheme and move IConnectionFilter to .Internal namespace
...
Add an internal API to ListenOptions to determine if an endpoint is configured to use HTTPS. This is a temporary as the design of connection adapters and configuration will churn before release.
2017-04-13 09:45:26 -07:00
Stephen Halter
db159190bd
Don't fail tests if port 5000 is in use ( #1650 )
2017-04-11 23:13:59 -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
Cesar Blum Silveira
1be31ae2ce
Throw if UseUrls specifies HTTPS or path base ( #1519 ).
2017-03-29 20:23:51 -07:00
Cesar Blum Silveira
47f1db20e0
Fix races on port acquisition in AddressRegistrationTests ( #1520 ).
2017-03-24 16:46:40 -07:00
Stephen Halter
fffb823e99
Dispose socket in test after synchronous connect
2017-03-22 10:33:38 -07:00
Stephen Halter
6c131ea240
Verify scopeids are connectable using Socket before testing Kestrel ( #1536 )
2017-03-21 18:31:29 -07:00
John Luo
06134bc6e0
Add IPv6 loopback address by default #1434
2017-03-06 18:02:28 -08:00
John Luo
7d94abd606
Enable default server address test
2017-03-06 10:26:32 -08:00
David Fowler
4533383612
React to hosting change
...
- Kestrel binds to ipv4 by default
Fixes #1432
2017-03-02 23:09:13 -08:00
Cesar Blum Silveira
4fd71e3a6b
Fix 'No data found for...' errors in CI test runs.
2017-02-21 11:50:20 -08:00
Cesar Blum Silveira
bfe1f06938
Fix AddressRegistrationTests.RegisterAddresses_IPv6ScopeId_Success ( #1363 ).
2017-02-17 10:35:00 -08:00
Cesar Blum Silveira
1a2c438899
Upgrade to RC.3
2017-01-31 16:23:23 -08:00
Stephen Halter
f32058c5c3
Warn instead of throw when ignoring IServerAddressesFeature
...
- Throwing could be too much when IServerAddressesFeature URLs come from VS
- Listen on 127.0.0.1:5000 by default
https://github.com/aspnet/Hosting/issues/917
2017-01-19 11:36:19 -08:00
Cesar Blum Silveira
cf77813c82
Re-enable HTTPS tests ( #1273 ).
2017-01-10 13:48:46 -08:00
Stephen Halter
2351c1b558
Create a direct way to configure Kestrel endpoints
...
- Replace endpoint configuration via .UseUrls() or --server.urls with Listen*
methods on KestrelSerrverOptions.
- Replace IConnectionFilter with IConnectionAdapter which no longer exposes
ServerAddress via a context.
- Simplify libuv Listener classes
- Support systemd socket activation
- Add docker-based test for systemd socket activation to be run on Travis
2017-01-06 17:37:58 -08:00
Cesar Blum Silveira
81a8ba0347
Skip tests commentd out in 973b705.
2016-12-23 17:38:54 -08:00
Cesar Blum Silveira
973b705cdb
Disable tests that hang on SslStream.WriteAsync after update to CoreFx 4.4.
2016-12-22 18:37:14 -08:00
Cesar Blum Silveira
2c94884da9
Include address in error message when address already in use ( #1086 ).
2016-10-05 14:23:09 -07:00
Mike Harder
41e50ba688
Enable all tests in HttpsConnectionFilterTests to run on all platforms
...
- Move HttpClientSlim.cs to test\shared
- Change HttpClientSlim to static class to simplify calling code
- Add HttpClientSlim.PostAsync()
2016-07-18 12:38:19 -07:00
Mike Harder
0c52529b97
Add tests for HTTPS urls to AddressRegistrationTests ( #794 )
...
- Added HttpClientSlim, a lightweight version of HttpClient implemented using Socket and SslStream.
2016-07-14 18:35:47 -07:00
Stephen Halter
7e1aa4e1d0
Only test binding to "operational" network interfaces
2016-07-14 16:08:39 -07:00
Mike Harder
2f36c80970
Remove skip condition for IPv6 with scope ID on Linux and Mac ( #964 )
...
- Was required to workaround https://github.com/dotnet/corefx/issues/8235 which is now fixed.
2016-07-11 17:53:59 -07:00
Mike Harder
8a43be94ef
AddressRegistrationTests should get local IPs from System.Net.NetworkInformation ( #796 )
2016-07-11 14:40:12 -07:00
Andrew Stanton-Nurse
09f5be1434
fix #909 by moving most classes to Internal ns
2016-06-03 14:14:21 -07:00
Cesar Blum Silveira
a3d0bd0ec4
Bind to both IPv4 and IPv6 when localhost is specified ( #231 ).
2016-05-25 21:23:29 -07:00
Mike Harder
5ca6592677
Don't bind if only port is specified ( #814 ) ( #861 )
...
- Also renamed ServerAddressFacts to ServerAddressTests to match existing test classes
2016-05-23 14:06:46 -07:00
Mike Harder
14bbba0641
Update addresses in IServerAddressesFeature with assigned dynamic ports ( #758 )
...
- Change most tests to use dynamic ports, rather than a fixed port obtained from GetNextPort().
- Add several new cases to `AddressRegistrationTests` and `ServerAddressFacts`.
- Remove project `test\Microsoft.AspNetCore.Server.Kestrel.TestCommon`. It's not longer needed, since only `AddressRegistrationTests` uses `GetNextPort()`.
2016-05-04 11:27:23 -07:00
Mike Harder
088b7e5779
Add UseKestrel() extension method to IWebHostBuilder ( #713 )
2016-03-30 12:08:32 -07:00
Doug Bunting
37055517ee
Correct test attributes
...
- #654
- `[IPv6SupportedCondition]` requires `[ConditionalFact]` or `[ConditionalTheory]`
2016-02-24 22:35:20 -08:00
Stephen Halter
04736e1d09
Remove FrameworkSkipConditions for Mono
...
- Maybe things are better now with graceful shutdown *crosses fingers*
2016-02-17 16:05:37 -08:00
Cesar Blum Silveira
6757a31fd2
Build with dotnet ( #571 ).
2016-02-01 14:37:47 -08:00
N. Taylor Mullen
b062f851dc
Rename AspNet 5 file contents.
...
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:23:51 -08:00
N. Taylor Mullen
3cfe2f3070
Rename AspNet 5 folders and files.
...
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:23:44 -08:00