specs

package
v0.0.0-...-77419e6 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Name      string     `json:"name,omitempty"`
	Condition *Condition `json:"condition,omitempty"`
	HttpTest  *HttpTest  `json:"httpTest,omitempty"`
	Gcp       *GcpAction `json:"gcp,omitempty"`
	BashTest  *BashTest  `json:"bashTest,omitempty"`
}

type BashTest

type BashTest struct {
	Script string     `json:"script"`
	Expect *CliExpect `json:"expect"`
}

type CliExpect

type CliExpect struct {
	ExitCode *IntAssert    `json:"exitCode,omitempty"`
	Stdout   *StringAssert `json:"stdout,omitempty"`
	Stderr   *StringAssert `json:"stderr,omitempty"`
}

type Condition

type Condition struct {
	FailuresSoFar *IntAssert `json:"failuresSoFar,omitempty"`
}

type GcpAction

type GcpAction struct {
	SetRuntimeConfigVar *SetRuntimeConfigVarGcpAction `json:"setRuntimeConfigVar,omitempty"`
}

type HtmlAssert

type HtmlAssert struct {
	Title *StringAssert `json:"title,omitempty"`
}

type HttpExpect

type HttpExpect struct {
	StatusCode *IntAssert         `json:"statusCode,omitempty"`
	StatusText *StringAssert      `json:"statusText,omitempty"`
	BodyText   *TextContentAssert `json:"bodyText,omitempty"`
}

type HttpTest

type HttpTest struct {
	Url     string            `json:"url"`
	Method  *string           `json:"method,omitempty"`
	Headers map[string]string `json:"headers,omitempty"`
	Expect  HttpExpect        `json:"expect"`
}

type IntAssert

type IntAssert struct {
	Equals      *int `json:"equals,omitempty"`
	AtLeast     *int `json:"atLeast,omitempty"`
	AtMost      *int `json:"atMost,omitempty"`
	LessThan    *int `json:"lessThan,omitempty"`
	GreaterThan *int `json:"greaterThan,omitempty"`
	NotEquals   *int `json:"notEquals,omitempty"`
}

type SetRuntimeConfigVarGcpAction

type SetRuntimeConfigVarGcpAction struct {
	RuntimeConfigSelfLink string `json:"runtimeConfigSelfLink"`
	VariablePath          string `json:"variablePath"`
	Base64Value           string `json:"base64Value"`
}

type StringAssert

type StringAssert struct {
	Exactly     *string `json:"exactly,omitempty"`
	Equals      *string `json:"equals,omitempty"`
	Contains    *string `json:"contains,omitempty"`
	Matches     *string `json:"matches,omitempty"`
	NotContains *string `json:"notContains,omitempty"`
}

type Suite

type Suite struct {
	Actions []Action `json:"actions,omitempty"`
}

func LoadSuite

func LoadSuite(path string, templateSpec TemplateSpec) *Suite

type TemplateSpec

type TemplateSpec struct {
	Var map[string]string
	Env map[string]string
}

type TextContentAssert

type TextContentAssert struct {
	Html *HtmlAssert `json:"html,omitempty"`
}

Jump to

Keyboard shortcuts

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