Documentation ¶
Index ¶
- type CacheFastUpdateSuite
- type CacheTestingSuite
- func (t *CacheTestingSuite) GetName() string
- func (t *CacheTestingSuite) SetUpSuite(c *check.C)
- func (t *CacheTestingSuite) TearDownSuite(c *check.C)
- func (t *CacheTestingSuite) TestFileCacheAvailableTime(c *check.C)
- func (t *CacheTestingSuite) TestFirstGetUseCacheFile(c *check.C)
- func (t *CacheTestingSuite) TestServiceDelete(c *check.C)
- type DefaultServerSuite
- type ServerFailOverSuite
- type ServerSwitchSuite
- type ServiceUpdateSuite
- func (t *ServiceUpdateSuite) GetName() string
- func (t *ServiceUpdateSuite) SetUpSuite(c *check.C)
- func (t *ServiceUpdateSuite) TearDownSuite(c *check.C)
- func (t *ServiceUpdateSuite) TestDynamicAddService(c *check.C)
- func (t *ServiceUpdateSuite) TestDynamicModifyInstance(c *check.C)
- func (t *ServiceUpdateSuite) TestFirstMultipleServices(c *check.C)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheFastUpdateSuite ¶
type CacheFastUpdateSuite struct {
// contains filtered or unexported fields
}
CacheFastUpdateSuite 缓存持久化测试套件
func (*CacheFastUpdateSuite) SetUpSuite ¶
func (t *CacheFastUpdateSuite) SetUpSuite(c *check.C)
SetUpSuite 初始化测试套件
func (*CacheFastUpdateSuite) TearDownSuite ¶
func (t *CacheFastUpdateSuite) TearDownSuite(c *check.C)
销毁套件
func (*CacheFastUpdateSuite) TestCacheUpdateDegrade ¶
func (t *CacheFastUpdateSuite) TestCacheUpdateDegrade(c *check.C)
测试当不能正常连接埋点server的时候,是否能降级返回从缓存文件加载的服务信息
func (*CacheFastUpdateSuite) TestCacheUpdateFast ¶
func (t *CacheFastUpdateSuite) TestCacheUpdateFast(c *check.C)
测试当可以正常连接埋点server的时候,缓存是否按照预想更新
type CacheTestingSuite ¶
type CacheTestingSuite struct {
// contains filtered or unexported fields
}
CacheTestingSuite 缓存持久化测试套件
func (*CacheTestingSuite) SetUpSuite ¶
func (t *CacheTestingSuite) SetUpSuite(c *check.C)
SetUpSuite 初始化测试套件
func (*CacheTestingSuite) TearDownSuite ¶
func (t *CacheTestingSuite) TearDownSuite(c *check.C)
TearDownSuite 销毁套件
func (*CacheTestingSuite) TestFileCacheAvailableTime ¶
func (t *CacheTestingSuite) TestFileCacheAvailableTime(c *check.C)
TestFileCacheAvailableTime 测试缓存文件有效时间
func (*CacheTestingSuite) TestFirstGetUseCacheFile ¶
func (t *CacheTestingSuite) TestFirstGetUseCacheFile(c *check.C)
TestFirstGetUseCacheFile 不开启缓存生效 -- 获取最新实例 开启缓存生效 -- 获取到缓存实例 sleep , 获取到最新的实例,并且路由也生效
func (*CacheTestingSuite) TestServiceDelete ¶
func (t *CacheTestingSuite) TestServiceDelete(c *check.C)
TestServiceDelete 测试服务端的服务被删除后,内存和文件缓存是否被删除
type DefaultServerSuite ¶
type DefaultServerSuite struct {
// contains filtered or unexported fields
}
DefaultServerSuite 系统服务缓存测试套
func (*DefaultServerSuite) SetUpSuite ¶
func (t *DefaultServerSuite) SetUpSuite(c *check.C)
SetUpSuite 初始化套件
func (*DefaultServerSuite) TearDownSuite ¶
func (t *DefaultServerSuite) TearDownSuite(c *check.C)
TearDownSuite 销毁套件
func (*DefaultServerSuite) TestDefaultFailOver ¶
func (t *DefaultServerSuite) TestDefaultFailOver(c *check.C)
TestDefaultFailOver 测试预埋server挂了一个后能否快速切换,以及预埋server都挂了后,能否使用本地缓存恢复
func (*DefaultServerSuite) TestHealthyServerDown ¶
func (t *DefaultServerSuite) TestHealthyServerDown(c *check.C)
TestHealthyServerDown . 测试健康检测服务器挂掉或者部分挂掉后的情景 如果服务器全挂的话,heartbeat多次该服务器就会被熔断 在服务器全挂之后,重新上线了可用的服务器,依然可以正常心跳
type ServerFailOverSuite ¶
type ServerFailOverSuite struct {
// contains filtered or unexported fields
}
server失效的测试用例
func (*ServerFailOverSuite) SetUpSuite ¶
func (t *ServerFailOverSuite) SetUpSuite(c *check.C)
SetUpSuite 启动测试套程序
func (*ServerFailOverSuite) TearDownSuite ¶
func (t *ServerFailOverSuite) TearDownSuite(c *check.C)
SetUpSuite 启动测试套程序
type ServerSwitchSuite ¶
type ServerSwitchSuite struct {
// contains filtered or unexported fields
}
ServerSwitchSuite 服务切换测试套
func (*ServerSwitchSuite) SetUpSuite ¶
func (t *ServerSwitchSuite) SetUpSuite(c *check.C)
SetUpSuite 启动测试套程序
func (*ServerSwitchSuite) TearDownSuite ¶
func (t *ServerSwitchSuite) TearDownSuite(c *check.C)
TearDownSuite SetUpSuite 结束测试套程序
func (*ServerSwitchSuite) TestSwitchServer ¶
func (t *ServerSwitchSuite) TestSwitchServer(c *check.C)
TestSwitchServer 测试切换后台sever,以及在获取到了discover之后,是否会继续向埋点server请求
type ServiceUpdateSuite ¶
type ServiceUpdateSuite struct {
// contains filtered or unexported fields
}
服务更新测试套
func (*ServiceUpdateSuite) SetUpSuite ¶
func (t *ServiceUpdateSuite) SetUpSuite(c *check.C)
SetUpSuite 启动测试套程序
func (*ServiceUpdateSuite) TearDownSuite ¶
func (t *ServiceUpdateSuite) TearDownSuite(c *check.C)
SetUpSuite 结束测试套程序
func (*ServiceUpdateSuite) TestDynamicAddService ¶
func (t *ServiceUpdateSuite) TestDynamicAddService(c *check.C)
测试添加实例是否可以通过同步SDK获取
func (*ServiceUpdateSuite) TestDynamicModifyInstance ¶
func (t *ServiceUpdateSuite) TestDynamicModifyInstance(c *check.C)
测试频繁变更实例健康状态是否会出现不一致问题
func (*ServiceUpdateSuite) TestFirstMultipleServices ¶
func (t *ServiceUpdateSuite) TestFirstMultipleServices(c *check.C)
测试服务超时被删除后,重新拉取的问题