mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-19 20:12:51 +08:00
fix test and use latest coveralls tool
This commit is contained in:
parent
52555fc7a9
commit
69bd9a8548
@ -7,6 +7,12 @@
|
||||
"commands": [
|
||||
"dotnet-cake"
|
||||
]
|
||||
},
|
||||
"coveralls.net": {
|
||||
"version": "3.0.0",
|
||||
"commands": [
|
||||
"csmacnz.Coveralls"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@ -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
|
||||
|
@ -38,7 +38,7 @@ namespace Ocelot.UnitTests.Kubernetes
|
||||
{
|
||||
_serviceName = "test";
|
||||
_namespaces = "dev";
|
||||
_port = 86;
|
||||
_port = 5567;
|
||||
_kubeHost = "localhost";
|
||||
_fakekubeServiceDiscoveryUrl = $"http://{_kubeHost}:{_port}";
|
||||
_endpointEntries = new EndpointsV1();
|
||||
@ -94,11 +94,11 @@ namespace Ocelot.UnitTests.Kubernetes
|
||||
.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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user