Documentation ¶
Index ¶
- Constants
- Variables
- func CreateOrUpdate(client kubernetes.Interface, svc *v1.Service, mutate ServiceMutator) (*v1.Service, error)
- func LoadConfig() (*restclient.Config, error)
- func Mark(label string, f EntryPoint) error
- func NewAlibabaCloudOrDie(configpath string) *cloud.Cloud
- func NewClientOrDie() kubernetes.Interface
- func RegisterCommonFlags()
- func RunNginxDeployment(t *testing.T, client kubernetes.Interface) error
- func ToPTR(a []v1.Node) []*v1.Node
- func ViperizeFlags()
- func WaitServiceMutate(client kubernetes.Interface, svc *v1.Service, mutate ServiceMutator) (*v1.Service, error)
- func WaitTimeout(test *testing.T, f *cloud.FrameWork, ...) error
- type Action
- type Config
- type DefaultAction
- type DeleteAction
- type EntryPoint
- type FrameWorkE2E
- type Logger
- type OptionsFunc
- type RandomAction
- type ServiceMutator
- type TestUnit
Constants ¶
View Source
const NameSpace = "e2etest"
Variables ¶
View Source
var AllFrames []EntryPoint
View Source
var QuickFrames []EntryPoint
Functions ¶
func CreateOrUpdate ¶
func CreateOrUpdate( client kubernetes.Interface, svc *v1.Service, mutate ServiceMutator, ) (*v1.Service, error)
func LoadConfig ¶
func LoadConfig() (*restclient.Config, error)
func Mark ¶
func Mark( label string, f EntryPoint, ) error
func NewAlibabaCloudOrDie ¶
func NewClientOrDie ¶
func NewClientOrDie() kubernetes.Interface
func RegisterCommonFlags ¶
func RegisterCommonFlags()
func RunNginxDeployment ¶
func RunNginxDeployment( t *testing.T, client kubernetes.Interface, ) error
func ViperizeFlags ¶
func ViperizeFlags()
ViperizeFlags sets up all flag and config processing. Future configuration info should be added to viper, not to flags.
func WaitServiceMutate ¶
func WaitServiceMutate( client kubernetes.Interface, svc *v1.Service, mutate ServiceMutator, ) (*v1.Service, error)
Types ¶
type Action ¶
type Action interface {
RunAction(f *FrameWorkE2E) error
}
func NewDefaultAction ¶
func NewRandomAction ¶
type Config ¶
type Config struct { Host string CloudConfig string KubeConfig string LoadBalancerID string MasterZoneID string SlaveZoneID string BackendLabel string AclID string VSwitchID string CertID string PrivateZoneID string PrivateZoneName string PrivateZoneRecordName string PrivateZoneRecordTTL string TestLabel string }
var TestContext Config
type DefaultAction ¶
type DefaultAction struct{ *TestUnit }
func (*DefaultAction) RunAction ¶
func (u *DefaultAction) RunAction(f *FrameWorkE2E) error
type DeleteAction ¶
type DeleteAction struct{ *TestUnit }
func NewDeleteAction ¶
func NewDeleteAction(u *TestUnit) *DeleteAction
func (*DeleteAction) RunAction ¶
func (u *DeleteAction) RunAction(f *FrameWorkE2E) error
type EntryPoint ¶
type FrameWorkE2E ¶
type FrameWorkE2E struct { InitService *v1.Service Test *testing.T Desribe string Log Logger Client kubernetes.Interface }
FrameWorkE2E e2e framework
func NewFrameWork ¶
func NewFrameWork( option OptionsFunc, ) *FrameWorkE2E
func (*FrameWorkE2E) Destroy ¶
func (f *FrameWorkE2E) Destroy() error
func (*FrameWorkE2E) Logf ¶
func (m *FrameWorkE2E) Logf(format string, args ...interface{})
func (*FrameWorkE2E) RunDefaultTest ¶
func (f *FrameWorkE2E) RunDefaultTest(actions ...Action) error
func (*FrameWorkE2E) SetUp ¶
func (f *FrameWorkE2E) SetUp() error
type OptionsFunc ¶
type OptionsFunc func(f *FrameWorkE2E)
type RandomAction ¶
type RandomAction struct {
// contains filtered or unexported fields
}
func (*RandomAction) RunAction ¶
func (u *RandomAction) RunAction(f *FrameWorkE2E) error
type ServiceMutator ¶
Click to show internal directories.
Click to hide internal directories.