integration

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanStringByRegex added in v0.0.3

func CleanStringByRegex(input string, regexes []*regexp.Regexp) string

func LoadSnapshot

func LoadSnapshot(t *testing.T, snapshot string) string

func ValidRegex added in v0.0.3

func ValidRegex(pattern string) func(output []byte, err error) ValidationResult

func WriteSnapshot

func WriteSnapshot(t *testing.T, snapshot string, content []byte)

Types

type CmdDesc added in v0.0.3

type CmdDesc struct {
	Executable string
	Arg        []string
	Validator  ValidationFunction
}

func ValidatedCmd added in v0.0.3

func ValidatedCmd(executable string, arg ...string) CmdDesc

func (CmdDesc) Args added in v0.0.3

func (c CmdDesc) Args(arg ...string) CmdDesc

func (CmdDesc) Run added in v0.0.3

func (c CmdDesc) Run() ValidationResult

func (CmdDesc) Should added in v0.0.3

func (c CmdDesc) Should(validator ValidationFunction) CmdDesc

type MobileClientJSON added in v0.0.3

type MobileClientJSON struct {
	Spec MobileClientSpec
}

MobileClientJSON represents a mobile client application

type MobileClientSpec added in v0.0.3

type MobileClientSpec struct {
	ID            string
	Name          string
	APIKey        string
	ClientType    string
	AppIdentifier string
	Namespace     string
}

MobileClientSpec represents a mobile client application

type ProvisionServiceParams added in v0.0.5

type ProvisionServiceParams struct {
	ServiceName string
	Namespace   string
	Params      []string
}

type ValidationFunction added in v0.0.3

type ValidationFunction = func(output []byte, err error) ValidationResult

func All added in v0.0.3

type ValidationResult added in v0.0.3

type ValidationResult struct {
	Error   error
	Output  []byte
	Message []string
	Success bool
}

func FailureValidation added in v0.0.3

func FailureValidation(output []byte, err error) ValidationResult

func IsErr added in v0.0.3

func IsErr(output []byte, err error) ValidationResult

func NoErr added in v0.0.3

func NoErr(output []byte, err error) ValidationResult

func SuccessValidation added in v0.0.3

func SuccessValidation(output []byte, err error) ValidationResult

func (ValidationResult) Test added in v0.0.3

func (v ValidationResult) Test(t *testing.T) (output []byte, err error)

Jump to

Keyboard shortcuts

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