diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 31e896e98..ee717fa31 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -7,6 +7,12 @@ "commands": [ "dotnet-cake" ] + }, + "coveralls.net": { + "version": "3.0.0", + "commands": [ + "csmacnz.Coveralls" + ] } } } \ No newline at end of file diff --git a/build.cake b/build.cake index f4ad12125..2e71829cd 100644 --- a/build.cake +++ b/build.cake @@ -1,11 +1,9 @@ -// #tool "nuget:?package=GitVersion.CommandLine&version=5.8.1" #tool "dotnet:?package=GitVersion.Tool&version=5.8.1" +#tool "dotnet:?package=coveralls.net&version=3.0.0" #addin nuget:?package=Cake.Json&version=4.0.0 #addin nuget:?package=Newtonsoft.Json -// #addin nuget:?package=System.Net.Http&version=4.3.4 #addin nuget:?package=System.Text.Encodings.Web&version=4.7.1 #tool "nuget:?package=ReportGenerator" -#tool "nuget:?package=coveralls.net&version=0.7.0" #addin Cake.Coveralls&version=0.10.1 // compile diff --git a/test/Ocelot.UnitTests/Kubernetes/KubeServiceDiscoveryProviderTests.cs b/test/Ocelot.UnitTests/Kubernetes/KubeServiceDiscoveryProviderTests.cs index 855388b19..91bf0a6e7 100644 --- a/test/Ocelot.UnitTests/Kubernetes/KubeServiceDiscoveryProviderTests.cs +++ b/test/Ocelot.UnitTests/Kubernetes/KubeServiceDiscoveryProviderTests.cs @@ -38,7 +38,7 @@ public KubeServiceDiscoveryProviderTests() { _serviceName = "test"; _namespaces = "dev"; - _port = 86; + _port = 5567; _kubeHost = "localhost"; _fakekubeServiceDiscoveryUrl = $"http://{_kubeHost}:{_port}"; _endpointEntries = new EndpointsV1(); @@ -94,11 +94,11 @@ public void should_return_service_from_k8s() .Then(x => ThenTheCountIs(1)) .And(_ => ThenTheTokenIs(token)) .BDDfy(); - } - - private void ThenTheTokenIs(string token) - { - _receivedToken.ShouldBe(token); + } + + private void ThenTheTokenIs(string token) + { + _receivedToken.ShouldBe(token); } private void ThenTheCountIs(int count)