ginkgov1

package
v0.0.0-...-95c9a60 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

README

This tester supports ginkgo 1.x versions, which were used for Kubernetes versions prior to 1.25.


This is a fork of the ginkgo tester: https://github.com/kubernetes-sigs/kubetest2/tree/master/pkg/testers/ginkgo

The fork originated at commit d7fcb799ce84ceda66c8b9b1ec8eefcbe226f293.

A copy of the original license is provided in the file named LICENSE.original.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GitTag string

Functions

func Main

func Main()

Types

type Tester

type Tester struct {
	FlakeAttempts       int      `desc:"Make up to this many attempts to run each spec."`
	GinkgoArgs          string   `desc:"Additional arguments supported by the ginkgo binary."`
	Parallel            int      `desc:"Run this many tests in parallel at once."`
	SkipRegex           string   `desc:"Regular expression of jobs to skip."`
	FocusRegex          string   `desc:"Regular expression of jobs to focus on."`
	TestPackageVersion  string   `` /* 285-byte string literal not displayed */
	TestPackageBucket   string   `` /* 137-byte string literal not displayed */
	TestPackageDir      string   `desc:"The directory in the bucket which represents the type of release. Default to the release directory."`
	TestPackageMarker   string   `` /* 127-byte string literal not displayed */
	TestArgs            string   `` /* 137-byte string literal not displayed */
	UseBuiltBinaries    bool     `desc:"Look for binaries in _rundir/$KUBETEST2_RUN_DIR instead of extracting from tars downloaded from GCS."`
	UseBinariesFromPath bool     `desc:"Look for binaries in the $PATH instead of extracting from tars downloaded from GCS."`
	Env                 []string `desc:"List of env variables to pass to ginkgo libraries"`
	// contains filtered or unexported fields
}

func NewDefaultTester

func NewDefaultTester() *Tester

func (*Tester) AcquireTestPackage

func (t *Tester) AcquireTestPackage() error

AcquireTestPackage obtains three test binaries and places them in $KUBETEST2_RUN_DIR. The first is "ginkgo", the actual ginkgo executable. The second is "e2e.test", which contains kubernetes e2e test cases. The third is "kubectl".

func (*Tester) Execute

func (t *Tester) Execute() error

func (*Tester) SetRunDir

func (t *Tester) SetRunDir(dir string)

func (*Tester) Test

func (t *Tester) Test() error

Test runs the test

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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