test

package
v1.8.6-rancher2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertFileExists added in v1.8.0

func AssertFileExists(t *testing.T, dirName string, fileNames ...string)

AssertFileExists is a utility function for kubeadm testing that asserts if the given folder contains the given files.

func AssertFilesCount added in v1.8.0

func AssertFilesCount(t *testing.T, dirName string, count int)

AssertFilesCount is a utility function for kubeadm testing that asserts if the given folder contains count files.

func SetupEmptyFiles added in v1.8.0

func SetupEmptyFiles(t *testing.T, tmpdir string, fileNames ...string)

SetupEmptyFiles is a utility function for kubeadm testing that creates one or more empty files (touch)

func SetupMasterConfigurationFile added in v1.8.0

func SetupMasterConfigurationFile(t *testing.T, tmpdir string, cfg *kubeadmapi.MasterConfiguration) string

SetupMasterConfigurationFile is a utility function for kubeadm testing that writes a master configuration file into /config subfolder of a given temporary directory. The funtion returns the path of the created master configuration file.

func SetupPkiDirWithCertificateAuthorithy added in v1.8.0

func SetupPkiDirWithCertificateAuthorithy(t *testing.T, tmpdir string) string

SetupPkiDirWithCertificateAuthorithy is a utility function for kubeadm testing that creates a CertificateAuthorithy cert/key pair into /pki subfolder of a given temporary directory. The funtion returns the path of the created pki.

func SetupTempDir added in v1.8.0

func SetupTempDir(t *testing.T) string

SetupTempDir is a utility function for kubeadm testing, that creates a temporary directory NB. it is up to the caller to cleanup the folder at the end of the test with defer os.RemoveAll(tmpdir)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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