1259 Commits

Author SHA1 Message Date
Erik Juhlin
f934620538 Set status code directly (#608)
Makes it possible for middlewares to read status codes and handle errors
2018-09-12 07:34:39 +01:00
Tom Pallister
44f8e312a8
Feature/refactoring internal config creation stack (#600)
* tidy up some code so I can understand it

* broke al the things that make config out into their own classes etc..sigh

* fix the things i broked

* #597 test for issue, works on this branch :E

* #597 removed comments

* added tests for new load balancer creator..basic

* added tests for lb creator and aggregates creator

* added tests for config creator

* boiler plate for tests

* added dynamics tests

* wip

* finished refactoring for now
2018-09-11 21:41:58 +01:00
Rwing
b491bd50a8 fix typo, DownstreamDownstreamPathTemplate => DownstreamPathTemplate (#601) 2018-09-11 21:02:03 +01:00
geffzhang
e799f5792e
Merge pull request #51 from ThreeMammals/develop
Feature/adding some re route specific validation tests (#590)
2018-09-11 11:17:47 +08:00
Tom Pallister
a5c1839ed7
Feature/adding some re route specific validation tests (#590)
* started refactoring json config validation stack because ive made it crap

* inject validators from DI rather than instanciating, next step mock them

* added some unit tests for specific validators on the train yey
2018-09-04 22:27:54 +01:00
geffzhang
b334ed8b3a
Merge pull request #50 from ThreeMammals/develop
merge newest code
2018-09-04 20:21:24 +08:00
Tom Pallister
ef6db657b7
#593 instanciate upstream path template when dynamic routing for logging (#594) 2018-09-03 21:31:57 +01:00
Tom Pallister
6198404697
##591 added addanddelete method back to cache as Ocelot.Provider.Consul uses it...sigh at me (#592) 2018-09-03 07:58:22 +01:00
Tom Pallister
66b68fc685
Feature/#574 look at httpclient cache key (#589)
* #574 consolidate some code, man the config stuff is a mess!

* #574 just use the downstream re route and the key for caching http clients

* #574 added benchmark, i was suprised to learn using a complex type was faster than a string in benchmark .net dictionary tests, hey ho probably dont have enough data in the type...
2018-09-01 13:10:45 +01:00
Tom Pallister
55277cac45
Feature/should not start if specified using service discovery but no provider registered (#584)
* #580 added failing test

* #580 added failing test for dynamic reroutes

* #580 added failing test for validator

* #580 validation tests passing

* #580 acceptance tests passing

* #580 got rid of the list in sdp factory

* +semver: breaking #580 service discovery provider returned by delegate must be the same as name in config, this is a breaking change because you have to specify consul now

* #580 removed use servide discovery property from file config, we dont need it, just use the service name as indicator the user wants to use service discovery for the given reroute
2018-08-31 18:28:43 +01:00
Justin
0a7d81038e Update requestid.rst (#587)
fixing a typo
2018-08-31 18:20:13 +01:00
Andrew Rissing
1ea59f12b3 Correcting minor typos. (#583) 2018-08-30 06:54:11 +01:00
Tom Pallister
29a7af9486
#568 worked out how to check if qos handler present and kill Ocelot i… (#578)
* #568 worked out how to check if qos handler present and kill Ocelot if options specified but no handler, need to refactor this into fluent validation style

* #568 acceptance tests to make sure Ocelot won't start if the user specifies QoSOptions but doesnt have a QoSHandler registered
2018-08-28 18:57:21 +01:00
Tom Pallister
8db5570840
Feature/fix #568 (#576)
* #568 Ocelot wont start if QoSOptions specified and no QoS DelegatingHandler registered e.g. no use of Ocelot.Provider.Polly. Also adds a NoQosDelegatingHandler and logs an error if ive missed something and the user can get to making the request

* #568 sadly something wierd with IServiceProvider and FluentValidation so I'm just defaulting to warning and noqosdelegatinghandler if someone doesnt register but provides options, also added basic in memory cache in case people dont use a specific package
2018-08-27 17:47:45 +01:00
Tom Gardham-Pallister
e257d82abf Revert "make sure files are copied for manual tests, was not working"
This reverts commit 6f9811cb1ba3235a6cd18406510458384597f340.
2018-08-26 12:38:42 +01:00
Tom Gardham-Pallister
6f9811cb1b make sure files are copied for manual tests, was not working 2018-08-26 11:56:18 +01:00
Tom Pallister
369fc5b7a4
#555 added some tests for this issue but struggling to replicate (#570)
* #555 added some tests for this issue but struggling to replicate

* #555 removed cmd=instance from service fabric code as someone who knows service fabric says its not needed
I

* #555 renamed test
2018-08-25 12:33:49 +01:00
Tom Pallister
b0bdeb9402
#534 fixed failing tests for this issue (#575) 2018-08-25 12:32:56 +01:00
Tom Pallister
00a600064d
Feature/issue with path and query string #458 (#565)
* #548 added failing test

* #548 fixed failing tests for issue where using /{everything} didnt build path correctly
2018-08-20 22:28:58 +01:00
Tom Pallister
7e01caf550
#529 removed some deps ocelot doesnt need (#563) 2018-08-19 13:57:57 +01:00
Tom Pallister
6d8b18c01d
Feature/inject error mapper (#562)
* added delegate to select last handler

* #529 implemented a way we can inject the last delegating handler

* wip - moving code

* #529 removed loads of qos code and moved it into Ocelot.Provider.Polly

* #529 can now inject http client expcetions to ocelot errors mappers and updated docs
2018-08-19 12:57:43 +01:00
Tom Pallister
98ba0271be
Feature/move polly (#561)
* added delegate to select last handler

* #529 implemented a way we can inject the last delegating handler

* wip - moving code

* #529 removed loads of qos code and moved it into Ocelot.Provider.Polly
2018-08-19 10:14:15 +01:00
Sergey Borodachev
3f784d7949 Merge branch 'develop' into feature/config_grow_when_merged
# Conflicts:
#	src/Ocelot/DependencyInjection/ConfigurationBuilderExtensions.cs
#	test/Ocelot.UnitTests/DependencyInjection/ConfigurationBuilderExtensionsTests.cs
2018-08-18 05:11:35 +04:00
Sergey Borodachev
af3c39da6a Addressing issue #559 (Infinite configuration file growth when ASPNETCORE_ENVIRONMENT is defined)
Made IHostingEnvironment optional for AddOcelot() to avoid breaking change.
2018-08-18 04:29:21 +04:00
Tom Pallister
e909cf9ce7
updated docs to advise you need Ocelot.Administration when using admin API (#552) 2018-08-14 20:50:51 +01:00
Tom Pallister
18ded25b0e
Feature/remove id server (#551)
* removed idserver4

* some files I missed removing
2018-08-14 18:39:18 +01:00
sa
373a3927f2 Small spelling correction (#550) 2018-08-14 18:21:10 +01:00
Tom Pallister
0786614e50
removed idserver4 (#547) 2018-08-14 08:19:00 +01:00
Tom Pallister
edbe33415d
#529 updated docs (#545) 2018-08-13 00:58:58 +05:30
Tom Pallister
5916cbfd94
Feature/remove rafty (#544)
* #529 removed raft

* #529 Rafty needs properties exposed
2018-08-12 22:51:11 +05:30
Tom Pallister
cbd0af6d75
#529 removed raft (#543) 2018-08-12 22:12:59 +05:30
Tom Pallister
4e22b3cfc4
#529 +semver: breaking updated docs to show how to load pivotal package (#542) 2018-08-12 20:00:36 +05:30
Tom Pallister
34afefced6
Feature/remove pivotal (#541)
* #529 removed eureka client

* #529 removed some unused code
2018-08-12 19:44:08 +05:30
Tom Pallister
87348e5d1b
Feature/removed consul and its deps to other package (#539)
* #529 removed consul deps and introduced delegate to find service discovery provider

* +semver: breaking moved consul configuration to package..introduced mechanism for packages to configure Ocelot pipeline
2018-08-12 17:28:41 +05:30
Tom Pallister
a91235b405
#529 removed consul deps and introduced delegate to find service discovery provider (#538) 2018-08-12 14:46:46 +05:30
Tom Pallister
afe322693e
added nuget package url (#537) 2018-08-11 20:47:40 +05:30
Tom Pallister
a46462506d
#529 updated docs (#536) 2018-08-11 19:30:26 +05:30
Tom Pallister
d4b65198f3
#529 removed cache manager specific code (#535) 2018-08-11 18:21:07 +05:30
Tom Pallister
2673aebee2 ignore .DS_Store 2018-08-11 11:53:43 +01:00
Tom Gardham-Pallister
9ae4ab9260 correct spelling 2018-08-04 15:15:41 +01:00
Tom Pallister
0e7665064e
#344 how to signalr (#530) 2018-08-04 08:22:17 +01:00
Tom Pallister
04415e8c36 Merge branch 'develop' of github.com:ThreeMammals/Ocelot into develop 2018-08-04 08:21:31 +01:00
Tom Pallister
a66c7989e2 docs for reloading json 2018-08-04 08:21:28 +01:00
Marcelo Castagna
ad8025df1b Reload config on change (#527)
* Reload config on change.
Added test case.

* added testing for adding the json with reloadOnChange = false
2018-08-04 08:17:31 +01:00
JanKolk
89f0cc786a #524 Solved - Add request headers to websocket connection (#528) 2018-08-04 08:02:30 +01:00
Tom Pallister
37fb32b7f5
broke out butterfly into seperate project (#521)
* broke out butterfly into seperate project

* nearly did it...

* updated docs as I have broken the butterfly code off into a seperate dll
2018-08-03 08:11:47 +01:00
Tom Pallister
24f8a18579 make stringextensions available 2018-08-02 20:42:57 +01:00
Tom Pallister
95a7c821fd
add v1 tracer interface so we can break out tracing (#523) 2018-08-02 18:27:19 +01:00
aqa510415008
46132b6fa8 Fix configuration error, throw error message (#522)
Fix configuration error, throw error message
2018-08-01 23:54:01 +01:00
Tom Pallister
0f68f18060 Merge branch 'develop' of github.com:ThreeMammals/Ocelot into develop 2018-07-31 21:27:35 +01:00