# Packages
No description provided by the author
# Functions
AddCleanupAction installs a function that will be called in the event of the whole test being terminated.
AfterReadingAllFlags makes changes to the context after all flags have been read.
AllNodesReady checks whether all registered nodes are ready.
ConformanceIt is a wrapper function for ginkgo It.
CreateTestingNS should be used by every test, note that we append a common prefix to the provided test name.
DumpAllNamespaceInfo is used to dump all namespace info.
DumpDebugInfo dumps debug info.
DumpEventsInNamespace dump events in namespace.
ExpectEqual expects the specified two are the same, otherwise an exception raises.
ExpectNoError checks if "err" is set.
ExpectNoErrorWithOffset checks if "err" is set, and if so, fails assertion while logging the error at "offset" levels above its caller (for example, for call chain f -> g -> ExpectNoErrorWithOffset(1, ...) error would be logged for "f").
ExpectNoErrorWithRetries checks if "err" is set with retries.
Fail wraps ginkgo.Fail so that it panics with more useful information about the failure.
Failf print fail log.
FailfWithOffset calls "Fail" and logs the error at "offset" levels above its caller (for example, for call chain f -> g -> FailfWithOffset(1, ...) error would be logged for "f").
FilterNodes filters nodes in NodeList in place, removing nodes that do not satisfy the given condition TODO: consider merging with pkg/client/cache.NodeLister.
GetReadySchedulableNodesOrDie addresses the common use case of getting nodes you can do work on.
IsNodeConditionSetAsExpected indicate if node is ready.
IsNodeConditionSetAsExpectedSilent indicate if node is ready with silent.
IsNodeConditionUnset indicate if set condition.
KoribtoDescribe is a wrapper function for ginkgo describe.
KubectlCmd runs the kubectl executable through the wrapper script.
KusionstackDescribe is a wrapper for ginkgo.Describe.
LoadClientset loads config of client set.
LoadConfig loads config.
Logf print info log.
No description provided by the author
NewDefaultFramework makes a new framework and sets up a BeforeEach/AfterEach for you (you can write additional before/after each functions).
NewFramework makes a new framework and sets up a BeforeEach/AfterEach.
NewKubectlCommand return a KubectlBuilder.
No description provided by the author
No description provided by the author
RegisterClusterFlags registers flags specific to the cluster e2e test suite.
RegisterCommonFlags registers flags common to all e2e test suites.
RegisterNodeFlags registers flags specific to the node e2e test suite.
RegisterProvider is expected to be called during application init, typically by an init function in a provider package.
RemoveCleanupAction removes a function that was installed by AddCleanupAction.
RestclientConfig loads config.
RunCleanupActions runs all functions installed by AddCleanupAction.
RunHostCmd runs the given cmd in the context of the given pod using `kubectl exec` inside of a shell.
RunHostCmdWithRetries calls RunHostCmd and retries all errors until it succeeds or the specified timeout expires.
RunKubectl is a convenience wrapper over KubectlBuilder.
RunKubectlOrDie is a convenience wrapper over KubectlBuilder.
SetupProviderConfig validates the chosen provider and creates an interface instance for it.
WaitForDefaultServiceAccountInNamespace waits for the default service account to be provisioned the default service account is what is associated with pods when they do not specify a service account as a result, pods are not able to be provisioned in a namespace until the service account is provisioned.
WaitForPodCondition waits until pod satisfied condition.
WaitForPodNameRunningInNamespace waits default amount of time (PodStartTimeout) for the specified pod to become running.
WaitForPodRunningInNamespace waits default amount of time (PodStartTimeout) for the specified pod to become running.
WaitTimeoutForPodRunningInNamespace waits default amount of time.
# Constants
ClaimBindingTimeout indicates how long claims have to become bound.
ClaimProvisionShortTimeout is same as `ClaimProvisionTimeout` to wait for claim to be dynamically provisioned, but shorter.
ClaimProvisionTimeout indicates how long claims have to become dynamically provisioned.
DefaultNamespaceDeletionTimeout is timeout duration for waiting for a namespace deletion.
NamespaceCleanupTimeout indicates: If there are any orphaned namespaces to clean up, this test is running on a long lived cluster.
NodeReadyInitialTimeout indicates how long nodes have to be "ready" when a test begins.
PodDeleteTimeout indicates how long to wait for a pod to be deleted.
PodEventTimeout is how much we wait for a pod event to occur.
PodListTimeout indicates how long to wait for the pod to be listable.
PodReadyBeforeTimeout indicates how long pods have to be "ready" when a test begins.
PodStartShortTimeout is same as `PodStartTimeout` to wait for the pod to be started, but shorter.
PodStartTimeout indicates that initial pod start can be delayed O(minutes) by slow docker pulls TODO: Make this 30 seconds once #4566 is resolved.
Poll indicates how often to Poll pods, nodes and claims.
PVDeletingTimeout indicates how long PVs have to become deleted.
RestartNodeReadyAgainTimeout indicates how long a node is allowed to become "Ready" after it is restarted before the test is considered failed.
RestartPodReadyAgainTimeout indicates how long a pod is allowed to become "running" and "ready" after a node restart before test is considered failed.
ServiceAccountProvisionTimeout indicates a service account provision timeout.
ServiceStartTimeout indicates how long to wait for a service endpoint to be resolvable.
SingleCallTimeout indicates how long to try single API calls (like 'get' or 'list').
# Variables
No description provided by the author
NewFrameworkExtensions lists functions that get called by NewFramework after constructing a new framework and after calling ginkgo.BeforeEach for the framework.
NotReadyTaintTemplate is the taint for when a node doesn't ready.
RunID is a unique identifier of the e2e run.
TestContext defines a context include test settings and global state.
UnreachableTaintTemplate is the taint for when a node becomes unreachable.
# Structs
CloudConfig defines some config.
No description provided by the author
No description provided by the author
FailurePanic is the value that will be panicked from Fail.
Framework supports common operations used by e2e tests; it will keep a client & a namespace for you.
KubectlBuilder is used to build, customize and execute a kubectl Command.
NodeTestContextType is part of TestContextType, it is shared by all node e2e test.
NullProvider is the default implementation of the ProviderInterface which doesn't do anything.
No description provided by the author
Options is a struct for managing test framework options.
TestContextType contains test settings and global state.
# Interfaces
No description provided by the author
ProviderInterface contains the implementation for certain provider-specific functionality.
No description provided by the author
# Type aliases
ClientConfigGetter gets client config.
CreateTestingNSFn defines a function to create test.
DumpAllNamespaceInfoAction is called after each failed test for namespaces created for the test.
EventsLister defines a event listener.
Factory represents the factory pattern.