mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 12:18:16 +08:00
Removed unused usings, removed empty spaces, removed tons os warnings (#903)
This commit is contained in:
@ -76,10 +76,11 @@ namespace Ocelot.UnitTests.Kubernetes
|
||||
Namespace = "dev"
|
||||
},
|
||||
Spec = new ServiceSpecV1()
|
||||
{
|
||||
ClusterIP = "localhost"
|
||||
{
|
||||
ClusterIP = "localhost"
|
||||
},
|
||||
Status = new ServiceStatusV1() {
|
||||
Status = new ServiceStatusV1()
|
||||
{
|
||||
LoadBalancer = new LoadBalancerStatusV1()
|
||||
}
|
||||
};
|
||||
@ -91,7 +92,7 @@ namespace Ocelot.UnitTests.Kubernetes
|
||||
}
|
||||
);
|
||||
|
||||
this.Given(x => GivenThereIsAFakeKubeServiceDiscoveryProvider(_fakekubeServiceDiscoveryUrl, _serviceName, _namespaces))
|
||||
this.Given(x => GivenThereIsAFakeKubeServiceDiscoveryProvider(_fakekubeServiceDiscoveryUrl, _serviceName, _namespaces))
|
||||
.And(x => GivenTheServicesAreRegisteredWithKube(serviceEntryOne))
|
||||
.When(x => WhenIGetTheServices())
|
||||
.Then(x => ThenTheCountIs(1))
|
||||
@ -114,7 +115,6 @@ namespace Ocelot.UnitTests.Kubernetes
|
||||
_serviceEntries = serviceEntries;
|
||||
}
|
||||
|
||||
|
||||
private void GivenThereIsAFakeKubeServiceDiscoveryProvider(string url, string serviceName, string namespaces)
|
||||
{
|
||||
_fakeKubeBuilder = new WebHostBuilder()
|
||||
|
@ -7,7 +7,6 @@ using Ocelot.Provider.Kubernetes;
|
||||
using Shouldly;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using TestStack.BDDfy;
|
||||
using Xunit;
|
||||
|
||||
|
@ -7,7 +7,6 @@ using Ocelot.Values;
|
||||
using Shouldly;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using TestStack.BDDfy;
|
||||
using Xunit;
|
||||
|
||||
@ -59,7 +58,8 @@ namespace Ocelot.UnitTests.Kubernetes
|
||||
{
|
||||
_provider = new PollKube(_delay, _factory.Object, _kubeServiceDiscoveryProvider.Object);
|
||||
|
||||
var result = Wait.WaitFor(3000).Until(() => {
|
||||
var result = Wait.WaitFor(3000).Until(() =>
|
||||
{
|
||||
try
|
||||
{
|
||||
_result = _provider.Get().GetAwaiter().GetResult();
|
||||
|
Reference in New Issue
Block a user