72 Commits

Author SHA1 Message Date
TomPallister
de0f4f97d2 build finally working....MAGIC 2020-11-26 12:52:53 +00:00
TomPallister
94ce0224d7 wip 2020-11-26 11:03:38 +00:00
TomPallister
730c940cd8 wip 2020-11-24 08:18:30 +00:00
TomPallister
71a1053d70 build works on windows 2020-11-23 12:28:11 +00:00
TomPallister
a5a1606c3e upgrade dotnet test and coverages packages 2020-11-23 12:13:27 +00:00
TomPallister
0fab351c69 move to dotnet tools for cake 2020-11-23 11:50:19 +00:00
Tom Pallister
347ea7280c
#1152: dont push releasenotes.md to GitHub +semver: minor
Co-authored-by: TomPallister <tom@threemammals.com>
2020-03-13 09:11:31 +00:00
Tom Pallister
783a77aa6e
#1151: format release notes as JavaScript string for GitHub 2020-03-13 08:56:29 +00:00
Tom Pallister
1a280ddd7f
#1150: added simple way to get release notes using cake and git 2020-03-12 22:14:18 +00:00
Tom Pallister
08512ec1c0
check we are on master before pushing coverage report (#1143)
This means that forked PRs can now build as they don't need the coveralls secret
2020-02-22 12:30:38 +00:00
Tom Pallister
65710f4a94
+semver: breaking PRs merged from Develop, Eureka honour scheme, don't crash on dispose and validate duplicate placeholders in UpstreamPathTemplate
* initial commit for new feature #1077

allow to limit the number of concurrent tcp connection to a downstream service

* protect code against value not in accurate range

add unit test

* Do not crash host on Dispose

* Add test

* Pin GitVersion.CommandLine package version

* #683 validate if there are duplicated placeholders in UpstreamPathTemplate

* Use registered scheme from Eureka (#1087)

* extra test

* very brief mention MaxConnectionsPerServer in docs

* build develop like a PR

* more docs

Co-authored-by: jlukawska <56401969+jlukawska@users.noreply.github.com>
Co-authored-by: buretjph <58700930+buretjph@users.noreply.github.com>
Co-authored-by: Jonathan Mezach <jonathanmezach@gmail.com>
Co-authored-by: 彭伟 <pengweiqhca@sina.com>
2020-01-19 15:00:21 +00:00
Tom Pallister
8d6dd887e3
change github and coveralls url to threemammals (#1100) 2020-01-18 14:28:43 +00:00
Tom Pallister
2dcaf27857
code coverage working on windows and linux 2020-01-17 22:09:32 +00:00
TomPallister
9cb00ef159 update cakebuild script for windows and made windows build work 2020-01-17 07:34:57 +00:00
TomPallister
92ce87c61c docker build works on windows 2020-01-16 21:37:51 -08:00
TomPallister
a8a31cdb8a refactor more build stuff for docker 2020-01-16 21:46:54 +00:00
TomPallister
37ceea019c need to push packages to github here 2020-01-14 10:41:24 +00:00
TomPallister
826fae3f27 removing stuff we dont need from build process 2020-01-14 09:50:10 +00:00
Tom Pallister
fab09ab4dc
updated acceptance and integration tests to use unique ports (#1091)
* updated acceptance and integration tests to use unique ports

* fix broken travis builds

* fix change port
2020-01-13 20:43:21 +00:00
geffzhang
903b380a5b update .net core 3.0 RTM (#1025)
* feat: update to asp.net core 3.0 preview 9

* fix :  AspDotNetLogger unittest

* feat:  update generic host  and  useMvc

1、Using 'UseMvc' to configure MVC is not supported while using Endpoint Routing https://github.com/aspnet/AspNetCore/issues/9542
2、 use IHost and IHostBuilder

* feat : update .net core 3.0 rc1

* eureka extension

* fixed logger formatter error

* fixed synchronous operations are disallowed of ReadToEnd method

* fix log tests

* Flush method of FakeStream should do nothing

* Update ContentTests.cs

* Fixed ws tests

* feat: delelte comment code

* feat: update .net core 3.0 RTM

* Update OcelotBuilderTests.cs

* Update .travis.yml

mono 6.0.0 and dotnet 3.0.100

* Update Ocelot.IntegrationTests.csproj

update Microsoft.Data.SQLite 3.0.0

* Update .travis.yml

* feat: remove FrameworkReference

1、 remove FrameworkReference
2、 update package

* add appveyor configuration to use version of VS2019 with dotnet core 3 sdk support

* update obsoleted SetCollectionValidator method

* Swap out OpenCover for Coverlet

* Bump Cake to 0.35.0

* Downgrade coveralls.net to 0.7.0
Fix disposing of PollConsul instance

* Remove environment specific path separator

* Do not return ReportGenerator on Mac/Linux

* Remove direct dependency on IInternalConfiguration

* Fix ordering of variable assignment

* Fix broken tests

* Fix acceptance tests for Consul
2019-10-28 07:24:30 +00:00
Talary
76fdf2922a Fix build errors (#972)
* Fix build errors

* Remove JSON pkg version as conflicted with Cake.Json in mono build
2019-07-28 21:31:00 +08:00
Tom Pallister
11a2d13f18
Feat/monorepo (#734)
* copied everything from repos back to ocelot repo

* added src projects to sln

* removed all test projects that have no tests

* added all test projects to sln

* removed test not on master

* merged unit tests

* merged acceptance tests

* merged integration tests

* fixed namepaces

* build script creates packages for all projects

* updated docs to make sure no references to external repos that we will remove

* +semver: breaking
2019-01-07 19:52:53 +00:00
Tom Pallister
3eb9b4da89
Feature/fix admin api caching wrong re routes (#421)
* #383 added failing test for this issue

* #383 identified issue was with cached load balancer for a given upstream path template based on the key we use, have modified this to include more data, I guess this might be an issue again for other things so I will have a think about it

* #383 fixed failing tests after key change

* Seems to be an issue with coveralls new package not being on nuget...try same version as their nuget package

* bash the old manual tests json back in
2018-06-21 22:45:24 +01:00
Philip Wood
0023fe2599 Hard-code coveralls.net version as 1.0.0 seems to only support .net core 2.1 (#379) 2018-06-03 05:51:14 +01:00
Tom Pallister
0ab670a143
Feature/#52 (#283)
* #52 test circle ci

* #52 nicked some lads cake script

* #52 put the mac build script back

* #52 trying another lads circle CI thing doesnt use cake

* #52 added test steps

* #52 ports for linux build

* #52 try travis mac build

* #52 dont use build script

* #52 dont use build script

* #52 acceptance and int tests dont really work on mac...v strange?

* #52 unique port for linux tests

* #52 increase code coverage

* #52 try using cake on linux for travis

* #52 try using cake for mac and linux on travis

* #52 dont run the acceptance and int tests on mac

* #52 build.sh has lf line endings

* #52 turns out crlf is OK for cake file..sigh

* #52 not sure what return does in cake so wrapped in if just to see

* #52 try use travis to work not run on mac

* #52 dont need these references

* #52 wrong property

* #52 remove circle ci for linux and just use travis for all
2018-03-17 18:07:27 +00:00
Tom Pallister
ed11f3024c
Feature/#274 (#281)
* #274 added acceptance tests, need to work out failing unit tests but probably going to be a redesign where we hold a reference to the cookie container and empty it if needed

* #274 updated code coverage value

* #274 offloaded cache logic to builder in preparation for adding state

* #274 hacked something together but this is not right approach

* #274 updated defaults and docs

* #274 updated code coverage
2018-03-17 11:35:16 +00:00
Tom Gardham-Pallister
35fff08f48 checking what happens on app veyor 2018-02-03 11:00:36 +00:00
Tom Pallister
3ac9b3bd87
hacked together load balancing reroutes in fileconfig (#211)
* hacked together load balancing reroutes in fileconfig

* some renaming and refactoring

* more renames

* hacked away the old config json

* test for issue 213

* renamed key

* dont share ports

* oops

* updated docs

* mvoed docs around

* port being used
2018-01-31 20:34:55 +00:00
Tom Pallister
f082f7318a
Raft round 2 (#182)
* brought in rafty

* moved raft classes into Ocelot and deleted from int project

* started to set up rafty in Ocelot

* RAFTY INSIDE OCELOT...WOOT

* more work adding rafty...just need to get auth working now

* rudimentary authenticated raft requests working

* asyn await stuff

* hacked rafty into the fileconfigurationcontroller...everything seems to be working roughly but I have a lot of refactoring to do

* updated to latest rafty that doesnt need an id

* hacky but all tests passing

* changed admin area set up to use builder not configuration.json, changed admin area auth to use client credentials

* missing code coverage

* ignore raft sectionf for code coverage

* ignore raft sectionf for code coverage

* back to normal filters

* try exclude attr

* missed these

* moved client secret to builder for authentication and updated docs

* lock to try and fix error accessing identity server created temprsa file on build server

* updated postman scripts and changed Ocelot to not always use type handling as this looked crap when manually accessing the configuration endpoint

* added rafty docs

* changes I missed

* added serialisation code we need for rafty to process commands when they proxy to leader

* moved controllers into their feature slices
2018-01-01 18:40:39 +00:00
Philip Wood
194f76cf7f #177 - optimise the build scripts (#178)
* Remove explicit restore, and don't rebuild during tests.

This currently fails because the release config doesn't contain symbols needed by opencover.

* Build unit tests in debug

Turns out that for test coverage we need to have debug symbols.
2017-12-18 22:11:17 +00:00
Tom Pallister
5ac6ae662b another attempt 2017-10-13 10:35:36 +01:00
Tom Pallister
0b382ad340 sigh part 2 2017-10-13 10:23:59 +01:00
Tom Pallister
a16c562483 sigh.. 2017-10-13 10:22:13 +01:00
Tom Pallister
53bb712957 another try.. 2017-10-13 09:24:09 +01:00
Tom Gardham-Pallister
f646f1c40e another.. 2017-10-13 08:33:31 +01:00
Tom Gardham-Pallister
d5ff0b10d8 another fix 2017-10-13 08:32:10 +01:00
Tom Gardham-Pallister
25c1a2abdd merged publish fix 2017-10-13 08:28:38 +01:00
Tom Gardham-Pallister
c660c1575e change to fix publish 2017-10-13 08:26:39 +01:00
Tom Pallister
4d3a7ae5e1 another script change to find error 2017-10-10 17:52:38 +01:00
Tom Pallister
d4f972125e try catch to tryand see error?? 2017-10-10 17:33:42 +01:00
Tom Pallister
261f6130c8 more logging 2017-10-10 17:01:59 +01:00
Tom Pallister
b0131bb264 more logging to see whats wrong 2017-10-10 16:35:08 +01:00
Tom Pallister
68466b2193 updated ensure stable release 2017-10-09 17:06:05 +01:00
Tom Pallister
7ac6df71fb fixed build 2017-10-09 11:21:19 +01:00
Philip Wood
bd6d4e81bf Upped minimum unit test coverage threshold 2017-07-18 12:10:13 +01:00
TomPallister
bc7bfc8917 Revert "Revert "removed release notes to get a build?""
This reverts commit 5aa1596db48eb824ae6760d5d787eac7cfb56c84.
2017-06-17 14:42:05 +01:00
TomPallister
af9e31e2b1 Revert "Revert "Fixes to get build running again on macOS. Basically, re-applying changes from #41""
This reverts commit 6786b5b0afa4fc6b9ad1253e76f1e8ad02f19703.
2017-06-17 14:41:55 +01:00
TomPallister
6786b5b0af Revert "Fixes to get build running again on macOS. Basically, re-applying changes from #41"
This reverts commit f452e8ea86c893090d5a700fa109279891765171.
2017-06-17 14:24:13 +01:00
TomPallister
5aa1596db4 Revert "removed release notes to get a build?"
This reverts commit 518c0a9129e3aa37d5a74041c0292941a3479282.
2017-06-17 14:23:54 +01:00
tom.pallister
518c0a9129 removed release notes to get a build? 2017-06-16 15:55:31 +01:00