mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-18 23:38:16 +08:00
feat: Kubernetes ServiceDiscoveryProvider
This commit is contained in:
@ -30,7 +30,8 @@ namespace Ocelot.UnitTests.Configuration
|
||||
Port = 1234,
|
||||
Type = "ServiceFabric",
|
||||
Token = "testtoken",
|
||||
ConfigurationKey = "woo"
|
||||
ConfigurationKey = "woo",
|
||||
Namespace ="default"
|
||||
}
|
||||
};
|
||||
|
||||
@ -40,13 +41,14 @@ namespace Ocelot.UnitTests.Configuration
|
||||
.WithType("ServiceFabric")
|
||||
.WithToken("testtoken")
|
||||
.WithConfigurationKey("woo")
|
||||
.WithNamesapce("default")
|
||||
.Build();
|
||||
|
||||
this.Given(x => x.GivenTheFollowingGlobalConfig(globalConfig))
|
||||
.When(x => x.WhenICreate())
|
||||
.Then(x => x.ThenTheConfigIs(expected))
|
||||
.BDDfy();
|
||||
}
|
||||
}
|
||||
|
||||
private void GivenTheFollowingGlobalConfig(FileGlobalConfiguration fileGlobalConfig)
|
||||
{
|
||||
@ -64,6 +66,7 @@ namespace Ocelot.UnitTests.Configuration
|
||||
_result.Port.ShouldBe(expected.Port);
|
||||
_result.Token.ShouldBe(expected.Token);
|
||||
_result.Type.ShouldBe(expected.Type);
|
||||
_result.Namesapce.ShouldBe(expected.Namesapce);
|
||||
_result.ConfigurationKey.ShouldBe(expected.ConfigurationKey);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user