Documentation
¶
Index ¶
- func ValidateIsNotEmpty(key string, variables map[string]any) error
- func ValidateIsNotNull(key string, variables map[string]any) error
- func ValidateIsUUID(key string, variables map[string]any) error
- type Assertion
- type Config
- type Environment
- type Extractor
- type Request
- type RequestResult
- type RequestResults
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Environment Environment `yaml:"environment"`
Variables map[string]any `yaml:"variables"`
SetupRequests []Request `yaml:"setup_requests"`
RequestFrequency time.Duration `yaml:"request_frequency"`
Requests []Request `yaml:"requests"`
}
Config holds the top-level configuration for the application.
type Environment ¶
type Environment struct {
BaseURL string `yaml:"base_url"`
}
Environment contains known, named values that configuration the application.
type Extractor ¶
Extractor allows values from responses to be captured and used in subsequent requests.
type Request ¶
type Request struct {
Name string `yaml:"name"`
Headers map[string]string `yaml:"headers"`
Method string `yaml:"method"`
Path string `yaml:"path"`
Body string `yaml:"body"`
Extractors []Extractor `yaml:"extractors"`
Assertions []Assertion `yaml:"assertions"`
}
Request holds the configuration that will be used when making a request to an API.
type RequestResult ¶
type RequestResult struct {
StatusCode int
}
type RequestResults ¶
type RequestResults []RequestResult
func (RequestResults) Log ¶
func (rr RequestResults) Log(logger *zerolog.Logger)
Click to show internal directories.
Click to hide internal directories.