Documentation ¶
Index ¶
- type InnerServiceLBTestingSuite
- type LBTestingSuite
- func (t *LBTestingSuite) GetName() string
- func (t *LBTestingSuite) SetUpSuite(c *check.C)
- func (t *LBTestingSuite) TearDownSuite(c *check.C)
- func (t *LBTestingSuite) TestAllFailLoadBalanceL5RingHash(c *check.C)
- func (t *LBTestingSuite) TestAllFailLoadBalanceMaglev(c *check.C)
- func (t *LBTestingSuite) TestAllFailLoadBalanceRing(c *check.C)
- func (t *LBTestingSuite) TestAllFailLoadBalanceWR(c *check.C)
- func (t *LBTestingSuite) TestAllHealthyLoadBalanceL5RingHash(c *check.C)
- func (t *LBTestingSuite) TestAllHealthyLoadBalanceMaglev(c *check.C)
- func (t *LBTestingSuite) TestAllHealthyLoadBalanceRing(c *check.C)
- func (t *LBTestingSuite) TestAllHealthyLoadBalanceWR(c *check.C)
- func (t *LBTestingSuite) TestDirectLoadBalance(c *check.C)
- func (t *LBTestingSuite) TestForeverNodeHash(c *check.C)
- func (t *LBTestingSuite) TestForeverNodeL5RingHash(c *check.C)
- func (t *LBTestingSuite) TestForeverNodeMaglev(c *check.C)
- func (t *LBTestingSuite) TestForeverNodeRingHash(c *check.C)
- func (t *LBTestingSuite) TestPartialLoadBalanceMaglev(c *check.C)
- func (t *LBTestingSuite) TestPartialLoadBalanceRing(c *check.C)
- func (t *LBTestingSuite) TestPartialLoadBalanceWR(c *check.C)
- func (t *LBTestingSuite) TestPartialLoadBalancerL5RingHash(c *check.C)
- func (t *LBTestingSuite) TestReplicateNodeRingHash(c *check.C)
- func (t *LBTestingSuite) TestUserChooseLBAlgorithm(c *check.C)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InnerServiceLBTestingSuite ¶
type InnerServiceLBTestingSuite struct {
// contains filtered or unexported fields
}
InnerServiceLBTestingSuite 消费者API测试套
func (*InnerServiceLBTestingSuite) SetUpSuite ¶
func (t *InnerServiceLBTestingSuite) SetUpSuite(c *check.C)
SetUpSuite 设置模拟桩服务器
func (*InnerServiceLBTestingSuite) TearDownSuite ¶
func (t *InnerServiceLBTestingSuite) TearDownSuite(c *check.C)
TearDownSuite SetUpSuite 结束测试套程序
func (*InnerServiceLBTestingSuite) TestConnManger ¶
func (t *InnerServiceLBTestingSuite) TestConnManger(c *check.C)
TestConnManger 测试连接管理器
type LBTestingSuite ¶
type LBTestingSuite struct {
// contains filtered or unexported fields
}
LBTestingSuite 消费者API测试套
func (*LBTestingSuite) SetUpSuite ¶
func (t *LBTestingSuite) SetUpSuite(c *check.C)
SetUpSuite 设置模拟桩服务器
func (*LBTestingSuite) TearDownSuite ¶
func (t *LBTestingSuite) TearDownSuite(c *check.C)
TearDownSuite 清理模拟桩服务器 SetUpSuite 结束测试套程序
func (*LBTestingSuite) TestAllFailLoadBalanceL5RingHash ¶
func (t *LBTestingSuite) TestAllFailLoadBalanceL5RingHash(c *check.C)
TestAllFailLoadBalanceL5RingHash 负载均衡测试
func (*LBTestingSuite) TestAllFailLoadBalanceMaglev ¶
func (t *LBTestingSuite) TestAllFailLoadBalanceMaglev(c *check.C)
TestAllFailLoadBalanceMaglev 负载均衡测试
func (*LBTestingSuite) TestAllFailLoadBalanceRing ¶
func (t *LBTestingSuite) TestAllFailLoadBalanceRing(c *check.C)
TestAllFailLoadBalanceRing 负载均衡测试
func (*LBTestingSuite) TestAllFailLoadBalanceWR ¶
func (t *LBTestingSuite) TestAllFailLoadBalanceWR(c *check.C)
TestAllFailLoadBalanceWR 负载均衡测试
func (*LBTestingSuite) TestAllHealthyLoadBalanceL5RingHash ¶
func (t *LBTestingSuite) TestAllHealthyLoadBalanceL5RingHash(c *check.C)
TestAllHealthyLoadBalanceL5RingHash 负载均衡测试l5 ringHash
func (*LBTestingSuite) TestAllHealthyLoadBalanceMaglev ¶
func (t *LBTestingSuite) TestAllHealthyLoadBalanceMaglev(c *check.C)
TestAllHealthyLoadBalanceMaglev 负载均衡测试Maglev
func (*LBTestingSuite) TestAllHealthyLoadBalanceRing ¶
func (t *LBTestingSuite) TestAllHealthyLoadBalanceRing(c *check.C)
TestAllHealthyLoadBalanceRing 负载均衡测试RingHash
func (*LBTestingSuite) TestAllHealthyLoadBalanceWR ¶
func (t *LBTestingSuite) TestAllHealthyLoadBalanceWR(c *check.C)
TestAllHealthyLoadBalanceWR 负载均衡测试WeightRandom
func (*LBTestingSuite) TestDirectLoadBalance ¶
func (t *LBTestingSuite) TestDirectLoadBalance(c *check.C)
TestDirectLoadBalance 测试直接通过负载均衡插件来挑选实例
func (*LBTestingSuite) TestForeverNodeHash ¶
func (t *LBTestingSuite) TestForeverNodeHash(c *check.C)
TestForeverNodeHash 测试Hash负载均衡是否可以每次都返回相同节点
func (*LBTestingSuite) TestForeverNodeL5RingHash ¶
func (t *LBTestingSuite) TestForeverNodeL5RingHash(c *check.C)
TestForeverNodeL5RingHash 测试l5ringHash负载均衡是否可以每次都返回相同节点
func (*LBTestingSuite) TestForeverNodeMaglev ¶
func (t *LBTestingSuite) TestForeverNodeMaglev(c *check.C)
TestForeverNodeMaglev 测试RingHash负载均衡是否可以每次都返回相同节点
func (*LBTestingSuite) TestForeverNodeRingHash ¶
func (t *LBTestingSuite) TestForeverNodeRingHash(c *check.C)
TestForeverNodeRingHash 测试RingHash负载均衡是否可以每次都返回相同节点
func (*LBTestingSuite) TestPartialLoadBalanceMaglev ¶
func (t *LBTestingSuite) TestPartialLoadBalanceMaglev(c *check.C)
TestPartialLoadBalanceMaglev 部分健康负载均衡测试Maglev
func (*LBTestingSuite) TestPartialLoadBalanceRing ¶
func (t *LBTestingSuite) TestPartialLoadBalanceRing(c *check.C)
TestPartialLoadBalanceRing 部分健康负载均衡测试RingHash
func (*LBTestingSuite) TestPartialLoadBalanceWR ¶
func (t *LBTestingSuite) TestPartialLoadBalanceWR(c *check.C)
TestPartialLoadBalanceWR 部分健康负载均衡测试WeightRandom
func (*LBTestingSuite) TestPartialLoadBalancerL5RingHash ¶ added in v1.0.2
func (t *LBTestingSuite) TestPartialLoadBalancerL5RingHash(c *check.C)
TestPartialLoadBalancerL5RingHash 部分健康负载均衡测试l5
func (*LBTestingSuite) TestReplicateNodeRingHash ¶
func (t *LBTestingSuite) TestReplicateNodeRingHash(c *check.C)
TestReplicateNodeRingHash 测试获取备份节点
func (*LBTestingSuite) TestUserChooseLBAlgorithm ¶
func (t *LBTestingSuite) TestUserChooseLBAlgorithm(c *check.C)
TestUserChooseLBAlgorithm 测试用户选择负载均衡算法