system

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type System

type System struct {
	BaseURL        string                       `json:"base_url"`
	EventTargetURL string                       `json:"event_target_url" envconfig:"IMMUNE_EVENT_TARGET_URL"`
	Database       immune.Database              `json:"database"`
	Callback       immune.CallbackConfiguration `json:"callback"`
	Variables      *immune.VariableMap          `json:"-"`
	SetupTestCases []immune.SetupTestCase       `json:"setup_test_cases"`
	TestCases      []immune.TestCase            `json:"test_cases"`
	// contains filtered or unexported fields
}

System represents the entire suite to be run against an API

func NewSystem

func NewSystem(filePath string) (*System, error)

func (*System) Clean

func (s *System) Clean() error

Clean validates the System's data

func (*System) NeedsCallbackServer

func (s *System) NeedsCallbackServer() bool

func (*System) Run

func (s *System) Run(ctx context.Context) error

Run executes the entire system, starting with the setup test cases, and then the test cases, a callback server will be started if needed.

Jump to

Keyboard shortcuts

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