testverifiers

package
v0.0.0-...-1c351ce Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2018 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const RunScriptHelperTemplate = `` /* 1038-byte string literal not displayed */

RunScriptHelperTemplate entry point to bootstrap tests

Variables

This section is empty.

Functions

func RenderRunScriptHelperTemplate

func RenderRunScriptHelperTemplate(tvParams *TestVerifierParams) (string, error)

RenderRunScriptHelperTemplate render the helper script

Types

type Asset

type Asset struct {
	Description   string
	DownloadURL   string
	Sha256Sum     string
	FileName      string
	FileMode      string
	InstallCMD    string
	InstallPath   string
	InstallVerify string
	InstallSudo   bool
}

Asset describes an asset

type TargetPlatform

type TargetPlatform struct {
	OS           string // linux or windows
	Distribution string // Ubuntu Centos
	Arch         string // x86_64 or x86_32
	Release      string // i.e. 14.04
}

TargetPlatform instance info

type TestVerifier

type TestVerifier interface {
	Name() string
	ValidateConfig(*TestVerifierParams) error
	CheckAssets(*TestVerifierParams) []Asset
	GenerateRunScript(*TestVerifierParams, string) (string, error)
}

TestVerifier is the interface to implement a verifier

type TestVerifierParams

type TestVerifierParams struct {
	Verbose         bool
	NoColor         bool
	Assets          []Asset
	Platform        TargetPlatform
	TmpDir          string
	CSpec           interface{}
	RunScriptHelper string
	RemoteTestPath  string
	RemoteAssetPath string
}

TestVerifierParams to pass to all function

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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