helpers

package
v0.0.0-...-802ae29 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, test HttpTest)

func RunMultiple

func RunMultiple(t *testing.T, tests ...HttpTest)

Types

type HttpTest

type HttpTest struct {
	Name                   string
	SetUp, TearDown        func(t *testing.T)
	Method, Endpoint, Data string
	ExpectedResponse       WTFISResponse
	Context                context.Context
	RemoteUserHeader       string
	IgnoreCertificate      bool
}

func (HttpTest) Run

func (tC HttpTest) Run(t *testing.T)

type PartResponse

type PartResponse struct {
	Field   interface{}
	Enabled bool
}

type WTFISResponse

type WTFISResponse struct {
	JsonBody   PartResponse
	StatusCode PartResponse
}

Jump to

Keyboard shortcuts

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