Documentation ¶
Index ¶
Constants ¶
View Source
const CurlAdditionalFlags = "-is"
Variables ¶
This section is empty.
Functions ¶
func ResolveTemplate ¶
ResolveTemplate fills a string with the values if they are templated
Types ¶
type CurlRunner ¶
type CurlRunner struct { Fetcher content.ContentFetcher Log *zap.SugaredLogger }
CurlRunner is used to run curl commands.
func NewCurlRunner ¶
func NewCurlRunner() *CurlRunner
func (*CurlRunner) Run ¶
func (r *CurlRunner) Run(execution testkube.Execution) (result testkube.ExecutionResult, err error)
type CurlRunnerInput ¶
type CurlRunnerInput struct { Command []string `json:"command"` ExpectedStatus string `json:"expected_status"` ExpectedBody string `json:"expected_body"` }
CurlRunnerInput is the input for the CurlRunner
func (*CurlRunnerInput) FillTemplates ¶
func (runnerInput *CurlRunnerInput) FillTemplates(params map[string]string) error
FillTemplates resolves the templates from the CurlRunnerInput against the values in the param
Click to show internal directories.
Click to hide internal directories.