Documentation ¶
Index ¶
- Constants
- Variables
- func EntriesForFolder(folder string) []ginkgo.TableEntry
- func FindFreePort(ip string) (uint32, error)
- func GetFreePort() (int, error)
- func ParseDuration(duration string) *k8s.Duration
- func RunE2ESpecs(t *testing.T, description string)
- func RunSpecs(t *testing.T, description string)
- func Setup(rt core_runtime.Runtime) error
- func Within(timeout time.Duration, task func()) func()
- type Clock
- type TestServer
Constants ¶
const (
SystemNamespace = "dubbo-system"
)
Variables ¶
var CustomResourceDir = filepath.Join("deploy", "charts", "admin", "crds")
CustomResourceDir is the path from the top of the Dubbo repository to the directory containing the Dubbo CRD YAML files.
var LabelBuildCheck = ginkgo.Label("build_check")
LabelBuildCheck this is for tests that check that the build is correct (some tests rely on build flags to be set)
Functions ¶
func EntriesForFolder ¶
func EntriesForFolder(folder string) []ginkgo.TableEntry
EntriesForFolder returns all files in the folder as gingko table entries for files *.input.yaml this makes it easier to add test by only adding input and golden files if you prefix the file with a `F` we'll focus this specific test
func FindFreePort ¶
func GetFreePort ¶
func ParseDuration ¶
func RunE2ESpecs ¶
func Setup ¶
func Setup(rt core_runtime.Runtime) error
func Within ¶
Within returns a function that executes the given test task in a dedicated goroutine, asserting that it must complete within the given timeout.
See https://github.com/onsi/ginkgo/blob/v2/docs/MIGRATING_TO_V2.md#removed-async-testing
Types ¶
type TestServer ¶
type TestServer struct {
// contains filtered or unexported fields
}
func NewTestServer ¶
func NewTestServer(rt core_runtime.Runtime) *TestServer
func (*TestServer) NeedLeaderElection ¶
func (a *TestServer) NeedLeaderElection() bool
func (*TestServer) Start ¶
func (t *TestServer) Start(stop <-chan struct{}) error