e2e

package
v0.0.0-...-3e226e0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPMockExpectation

type HTTPMockExpectation struct {
	HTTPRequest  HTTPRequest  `json:"httpRequest"`
	HTTPResponse HTTPResponse `json:"httpResponse"`
}

HTTPMockExpectation the expectation payload.

type HTTPRequest

type HTTPRequest struct {
	Method string `json:"method"`
	Path   string `json:"path"`
}

HTTPRequest the http request properties for http mock.

type HTTPResponse

type HTTPResponse struct {
	StatusCode int       `json:"statusCode"`
	Headers    []Headers `json:"headers"`
	Body       string    `json:"body"`
}

HTTPResponse the http response for http mock.

type Headers

type Headers struct {
	Name   string   `json:"name"`
	Values []string `json:"values"`
}

Headers the http response headers for http mock.

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner is e2e tests runner responsible for starting test environment and running e2e tests.

func NewRunner

func NewRunner(composeFiles []string, testEnv, services string) (runner *Runner, cleanup func())

NewRunner returns e2e test runners instance

func (*Runner) Init

func (r *Runner) Init() error

Init starts provider and consumer node dependencies.

func (*Runner) Test

func (r *Runner) Test(providerHost string) (retErr error)

Test starts given provider and consumer nodes and runs e2e tests.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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