tester

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

The files in this package contains two types of strucs:

  • Full testers, that will execute an action and inspect every detail of its execution that's specified

  • Validators used by these testers. They can be reused when calling the base command (for quicker execution), but one still wants to run some of the validations.

    These are used by waiters, as well.

    Example:

    // TODO: change the examples for something that actually does changes

    exec.CliLinkStatus (the base executor) waiter.CliLinkStatus (executes, then tests only enough to ensure we can go to the next step of a test) tester.CliLinkStatus (provides a full test)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CliLinkStatus

type CliLinkStatus struct {
	f2skupper1.CliLinkStatus

	// List of links that should show on the status
	Outgoing       []CliLinkStatusOutgoing
	StrictOutgoing bool // instead of noOutgoing: list of links must be exact.

	// List of links that should show on the status
	Incoming       []CliLinkStatusIncoming
	StrictIncoming bool // instead of noOutgoing: list of links must be exact.

	// An optional retry profile.  If not given, a default will be used.  To
	// run just once, give it an empty frame2.RetryOptions{} struct
	*frame2.RetryOptions
}

func (CliLinkStatus) Execute

func (cls CliLinkStatus) Execute() error

type CliLinkStatusIncoming

type CliLinkStatusIncoming struct {
	SourceNamespace string
	Active          bool
}

This is not a tester; it's just a configuration struct

type CliLinkStatusOutgoing

type CliLinkStatusOutgoing struct {
	// Name will be interpreted as a regexp
	Name   string
	Active bool
}

This is not a tester; it's just a configuration struct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL