Documentation ¶
Index ¶
- Variables
- func ClearAllImages(client internalapi.ImageManagerService)
- func CniWork(podNetworkStatus *kubeapi.PodSandboxNetworkStatus) bool
- func ExpectNoError(err error, explain ...interface{})
- func Failf(format string, args ...interface{})
- func KubeDescribe(text string, body func()) bool
- func Logf(format string, args ...interface{})
- func NewUUID() string
- func PodFound(podsandboxs []*kubeapi.PodSandbox, podId string) bool
- func PodReady(status *kubeapi.PodSandboxStatus) bool
- func RegisterCommonFlags()
- func RegisterFraktiFlags()
- func RemoveCleanupAction(p CleanupActionHandle)
- func RunCleanupActions()
- func SkipUnlessAtLeast(value int, minValue int, message string)
- func Skipf(format string, args ...interface{})
- type CleanupActionHandle
- type FraktiClient
- type Framework
- type TestContextType
- type TestDataSummary
Constants ¶
This section is empty.
Variables ¶
var ( //default network for cni configure DefaultNet string = "10.30.0.0/16" )
Functions ¶
func ClearAllImages ¶
func ClearAllImages(client internalapi.ImageManagerService)
func CniWork ¶
func CniWork(podNetworkStatus *kubeapi.PodSandboxNetworkStatus) bool
func ExpectNoError ¶
func ExpectNoError(err error, explain ...interface{})
func KubeDescribe ¶
func PodFound ¶
func PodFound(podsandboxs []*kubeapi.PodSandbox, podId string) bool
podFound returns whether podsandbox is found
func PodReady ¶
func PodReady(status *kubeapi.PodSandboxStatus) bool
podReady returns whether podsandbox state is ready.
func RegisterFraktiFlags ¶
func RegisterFraktiFlags()
func RemoveCleanupAction ¶
func RemoveCleanupAction(p CleanupActionHandle)
RemoveCleanupAction removes a function that was installed by AddCleanupAction.
func RunCleanupActions ¶
func RunCleanupActions()
RunCleanupActions runs all functions installed by AddCleanupAction. It does not remove them (see RemoveCleanupAction) but it does run unlocked, so they may remove themselves.
func SkipUnlessAtLeast ¶
Types ¶
type CleanupActionHandle ¶
type CleanupActionHandle *int
func AddCleanupAction ¶
func AddCleanupAction(fn func()) CleanupActionHandle
AddCleanupAction installs a function that will be called in the event of the whole test being terminated. This allows arbitrary pieces of the overall test to hook into SynchronizedAfterSuite().
type FraktiClient ¶
type FraktiClient struct { FraktiRuntimeService internalapi.RuntimeService FraktiImageService internalapi.ImageManagerService }
func LoadDefaultClient ¶
func LoadDefaultClient() (*FraktiClient, error)
type Framework ¶
type Framework struct { BaseName string Client *FraktiClient // contains filtered or unexported fields }
Framework supports common operations used by e2e tests; it will keep a client & a namespace for you. Eventual goal is to merge this with integration test framework.
func NewDefaultFramework ¶
NewFramework makes a new framework and sets up a BeforeEach/AfterEach for you (you can write additional before/after each functions).
func NewFramework ¶
func NewFramework(baseName string, client *FraktiClient) *Framework
type TestContextType ¶
type TestContextType struct { ImageServiceAddr string ImageServiceTimeout time.Duration RuntimeServiceAddr string RuntimeServiceTimeout time.Duration ReportPrefix string ReportDir string }
var TestContext TestContextType