Documentation ¶
Overview ¶
Package framework implements e2e testing. Used for CSI EBS driver testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
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 Framework ¶
type Framework struct { ClientSet clientset.Interface Cloud cloud.Cloud ResourceManager *resource.Manager Config *rest.Config // TODO delete me Options Options // contains filtered or unexported fields }
TODO(@M00nF1sh): migrate to use k8s test framework when it's isolated without pulling in all dependencies. This is an simplified version of k8s test framework, since some dependencies don't work under go module :(. Framework supports common operations used by e2e tests; it will keep a client & a namespace for you.