Documentation ¶
Index ¶
- type ConsumerTestingSuite
- func (t *ConsumerTestingSuite) GetName() string
- func (t *ConsumerTestingSuite) SetUpSuite(c *check.C)
- func (t *ConsumerTestingSuite) TearDownSuite(c *check.C)
- func (t *ConsumerTestingSuite) TestConsumerInit(c *check.C)
- func (t *ConsumerTestingSuite) TestGetAllInstanceNormal(c *check.C)
- func (t *ConsumerTestingSuite) TestGetAllInstanceTimeout(c *check.C)
- func (t *ConsumerTestingSuite) TestGetInstancesErrorNormal(c *check.C)
- func (t *ConsumerTestingSuite) TestGetInstancesNormal(c *check.C)
- func (t *ConsumerTestingSuite) TestGetInstancesTimeout(c *check.C)
- func (t *ConsumerTestingSuite) TestGetRouteRuleNormal(c *check.C)
- func (t *ConsumerTestingSuite) TestGetRouteRuleTimeout(c *check.C)
- func (t *ConsumerTestingSuite) TestInitConsumerConfigByDefault(c *check.C)
- func (t *ConsumerTestingSuite) TestInitConsumerConfigByFile(c *check.C)
- func (t *ConsumerTestingSuite) TestMultiGet(c *check.C)
- func (t *ConsumerTestingSuite) TestMultiGetWhenUpdate(c *check.C)
- func (t *ConsumerTestingSuite) TestSideCarUpdateServiceCallResult(c *check.C)
- type ProviderTestingSuite
- func (t *ProviderTestingSuite) GetName() string
- func (t *ProviderTestingSuite) SetUpSuite(c *check.C)
- func (t *ProviderTestingSuite) TearDownSuite(c *check.C)
- func (t *ProviderTestingSuite) TestInitProviderAPIByDefault(c *check.C)
- func (t *ProviderTestingSuite) TestProviderNormal(c *check.C)
- func (t *ProviderTestingSuite) TestProviderTimeout(c *check.C)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumerTestingSuite ¶
type ConsumerTestingSuite struct {
// contains filtered or unexported fields
}
ConsumerTestingSuite 消费者API测试套
func (*ConsumerTestingSuite) SetUpSuite ¶
func (t *ConsumerTestingSuite) SetUpSuite(c *check.C)
SetUpSuite 启动测试套程序
func (*ConsumerTestingSuite) TearDownSuite ¶
func (t *ConsumerTestingSuite) TearDownSuite(c *check.C)
TearDownSuite 结束测试套程序
func (*ConsumerTestingSuite) TestConsumerInit ¶
func (t *ConsumerTestingSuite) TestConsumerInit(c *check.C)
TestConsumerInit .
func (*ConsumerTestingSuite) TestGetAllInstanceNormal ¶
func (t *ConsumerTestingSuite) TestGetAllInstanceNormal(c *check.C)
TestGetAllInstanceNormal 测试获取单个服务实例
func (*ConsumerTestingSuite) TestGetAllInstanceTimeout ¶
func (t *ConsumerTestingSuite) TestGetAllInstanceTimeout(c *check.C)
TestGetAllInstanceTimeout 测试获取单个服务实例
func (*ConsumerTestingSuite) TestGetInstancesErrorNormal ¶
func (t *ConsumerTestingSuite) TestGetInstancesErrorNormal(c *check.C)
TestGetInstancesErrorNormal 测试以错误的参数请求实例
func (*ConsumerTestingSuite) TestGetInstancesNormal ¶
func (t *ConsumerTestingSuite) TestGetInstancesNormal(c *check.C)
TestGetInstancesNormal 测试获取多个服务实例
func (*ConsumerTestingSuite) TestGetInstancesTimeout ¶
func (t *ConsumerTestingSuite) TestGetInstancesTimeout(c *check.C)
TestGetInstancesTimeout 测试获取多个服务实例
func (*ConsumerTestingSuite) TestGetRouteRuleNormal ¶
func (t *ConsumerTestingSuite) TestGetRouteRuleNormal(c *check.C)
TestGetRouteRuleNormal 获取路由规则的测试
func (*ConsumerTestingSuite) TestGetRouteRuleTimeout ¶
func (t *ConsumerTestingSuite) TestGetRouteRuleTimeout(c *check.C)
TestGetRouteRuleTimeout 获取路由规则的测试
func (*ConsumerTestingSuite) TestInitConsumerConfigByDefault ¶
func (t *ConsumerTestingSuite) TestInitConsumerConfigByDefault(c *check.C)
TestInitConsumerConfigByDefault 测试以无文件默认配置初始化消费者api
func (*ConsumerTestingSuite) TestInitConsumerConfigByFile ¶
func (t *ConsumerTestingSuite) TestInitConsumerConfigByFile(c *check.C)
TestInitConsumerConfigByFile 测试初始化消费者配置文件
func (*ConsumerTestingSuite) TestMultiGet ¶
func (t *ConsumerTestingSuite) TestMultiGet(c *check.C)
TestMultiGet 测试多协程同时获取多个服务,看看会不会出现服务信息串了的问题
func (*ConsumerTestingSuite) TestMultiGetWhenUpdate ¶
func (t *ConsumerTestingSuite) TestMultiGetWhenUpdate(c *check.C)
TestMultiGetWhenUpdate 测试多协程获取服务,且当时服务有大量实例正在上线
func (*ConsumerTestingSuite) TestSideCarUpdateServiceCallResult ¶
func (t *ConsumerTestingSuite) TestSideCarUpdateServiceCallResult(c *check.C)
TestSideCarUpdateServiceCallResult 测试获取单个实例后,NewServiceCallResult调用查找instance,上报调用结果
type ProviderTestingSuite ¶
type ProviderTestingSuite struct {
// contains filtered or unexported fields
}
ProviderTestingSuite Provider测试套件
func (*ProviderTestingSuite) SetUpSuite ¶
func (t *ProviderTestingSuite) SetUpSuite(c *check.C)
SetUpSuite 初始化测试套件
func (*ProviderTestingSuite) TearDownSuite ¶
func (t *ProviderTestingSuite) TearDownSuite(c *check.C)
TearDownSuite 结束测试套程序
func (*ProviderTestingSuite) TestInitProviderAPIByDefault ¶
func (t *ProviderTestingSuite) TestInitProviderAPIByDefault(c *check.C)
TestInitProviderAPIByDefault 测试以无文件默认配置初始化providerAPI
func (*ProviderTestingSuite) TestProviderNormal ¶
func (t *ProviderTestingSuite) TestProviderNormal(c *check.C)
TestProviderNormal 测试ProviderAPI的三个功能,register,heartbeat,deregister
func (*ProviderTestingSuite) TestProviderTimeout ¶
func (t *ProviderTestingSuite) TestProviderTimeout(c *check.C)
TestProviderTimeout 测试ProviderAPI的三个功能,register,heartbeat,deregister