gittest

package
v0.0.0-...-5272525 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestConfig git.Config = git.Config{
	Branch:    "master",
	UserName:  "example",
	UserEmail: "example@example.com",
	NotesRef:  "fluxtest",
}

Functions

func Checkout

func Checkout(t *testing.T) (*git.Checkout, func())

Checkout makes a standard repo, clones it, and returns the clone with a cleanup function.

func CheckoutWithConfig

func CheckoutWithConfig(t *testing.T, config git.Config, syncTag string) (*git.Checkout, *git.Repo, func())

CheckoutWithConfig makes a standard repo, clones it, and returns the clone, the original repo, and a cleanup function.

func Repo

func Repo(t *testing.T) (*git.Repo, func())

Repo creates a new clone-able git repo, pre-populated with some kubernetes files and a few commits. Also returns a cleanup func to clean up after.

func Workloads

func Workloads() (res []resource.ID)

Workloads is a shortcut to getting the names of the workloads (NB not all resources, just the workloads) represented in the test files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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