Documentation
¶
Index ¶
- Constants
- func IsSystemInNeedOfTriage(ctx context.Context, k8sClient client.Client) bool
- func IsSystemReserved(ctx context.Context, k8sClient client.Client) (bool, string, error)
- func ObjectKeyFromObjectReference(r corev1.ObjectReference) types.NamespacedName
- func SetSystemInNeedOfTriage(ctx context.Context, k8sClient client.Client) error
- func TestIterator(tests []*T) *iterator
- type StateHandler
- type T
- func (t *T) AdvanceStateAndWaitForReady(ctx context.Context, k8sClient client.Client, workflow *dwsv1alpha2.Workflow, ...)
- func (t *T) AndCleanupPersistentInstance() *T
- func (t *T) Args() []interface{}
- func (t *T) Cleanup(ctx context.Context, k8sClient client.Client) error
- func (t *T) Execute(ctx context.Context, k8sClient client.Client)
- func (t *T) ExpectError(state dwsv1alpha2.WorkflowState) *T
- func (t *T) Focused() *T
- func (t *T) Name() string
- func (t *T) Pending() *T
- func (t *T) Prepare(ctx context.Context, k8sClient client.Client) error
- func (t *T) Serialized() *T
- func (t *T) ShouldTeardown() bool
- func (t *T) StopAfter(state dwsv1alpha2.WorkflowState) *T
- func (t *T) WithGlobalLustre(mountRoot string, fsName string, mgsNids string)
- func (t *T) WithGlobalLustreFromPersistentLustre(mountRoot string) *T
- func (t *T) WithLabels(labels ...string) *T
- func (t *T) WithPermissions(userId, groupId uint32) *T
- func (t *T) WithPersistentLustre(name string) *T
- func (t *T) WithStorageProfile() *T
- func (t *T) Workflow() *dwsv1alpha2.Workflow
- func (t *T) WorkflowDirectives() []string
- func (t *T) WorkflowName() string
- type TCleanupPersistentInstance
- type TDuplicate
- type TExpectError
- type TGlobalLustre
- type TOptions
- type TPersistentLustre
- type TStopAfter
- type TStorageProfile
Constants ¶
const (
Simple = "simple"
)
To apply a set of labels for a particular test, use the withLables() method. Labels
const (
TriageNamespaceName = "nnf-system-needs-triage"
)
Variables ¶
This section is empty.
Functions ¶
func IsSystemInNeedOfTriage ¶
func IsSystemReserved ¶
IsSystemReserved checks if the system under test is reserved by a known developer.
func ObjectKeyFromObjectReference ¶
func ObjectKeyFromObjectReference(r corev1.ObjectReference) types.NamespacedName
func SetSystemInNeedOfTriage ¶
func TestIterator ¶
func TestIterator(tests []*T) *iterator
Types ¶
type StateHandler ¶
StateHandler defines a method that handles a particular state in the workflow
type T ¶
type T struct {
// contains filtered or unexported fields
}
func DuplicateTest ¶
func (*T) AdvanceStateAndWaitForReady ¶
func (t *T) AdvanceStateAndWaitForReady(ctx context.Context, k8sClient client.Client, workflow *dwsv1alpha2.Workflow, state dwsv1alpha2.WorkflowState)
func (*T) AndCleanupPersistentInstance ¶
AndCleanupPersistentInstance will automatically destroy the persistent instance. It is useful if you have a create_persistent directive that you wish to destroy after the test has finished.
func (*T) Cleanup ¶
Cleanup a test with the programmed test options. Note that the order in which test options are cleanup is the opposite order of their creation to ensure dependencies between options are correct.
func (*T) ExpectError ¶
func (t *T) ExpectError(state dwsv1alpha2.WorkflowState) *T
Expect an error at the designed state; Proceed to teardown
func (*T) Serialized ¶
func (*T) ShouldTeardown ¶
func (*T) StopAfter ¶
func (t *T) StopAfter(state dwsv1alpha2.WorkflowState) *T
Stop after lets you stop a test after a given state is reached
func (*T) WithGlobalLustre ¶
func (*T) WithGlobalLustreFromPersistentLustre ¶
WithGlobalLustreFromPersistentLustre will create a global lustre file system from a persistent lustre file system
func (*T) WithLabels ¶
func (*T) WithPermissions ¶
func (*T) WithPersistentLustre ¶
func (*T) WithStorageProfile ¶
WithStorageProfile will manage a storage profile of of name 'name'
func (*T) Workflow ¶
func (t *T) Workflow() *dwsv1alpha2.Workflow
func (*T) WorkflowDirectives ¶
Retrieve the #DW Directives from the test case
func (*T) WorkflowName ¶
type TCleanupPersistentInstance ¶
type TCleanupPersistentInstance struct {
// contains filtered or unexported fields
}
type TDuplicate ¶
type TDuplicate struct {
// contains filtered or unexported fields
}
type TExpectError ¶
type TExpectError struct {
// contains filtered or unexported fields
}
type TGlobalLustre ¶
type TGlobalLustre struct {
// contains filtered or unexported fields
}
type TOptions ¶
type TOptions struct {
// contains filtered or unexported fields
}
TOptions let you configure things prior to a test running or during test execution. Nil values represent no configuration of that type.
type TPersistentLustre ¶
type TPersistentLustre struct {
// contains filtered or unexported fields
}
type TStopAfter ¶
type TStopAfter struct {
// contains filtered or unexported fields
}
type TStorageProfile ¶
type TStorageProfile struct {
// contains filtered or unexported fields
}