audit2logtests

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONTestSuite

func JSONTestSuite(t *testing.T, loggerProvider func(w io.Writer) audit2log.Logger)

Types

type TestCase

type TestCase struct {
	Name          string
	UID           string
	SID           string
	TokenID       string
	TraceID       string
	OtherUIDs     []string
	Origin        string
	AuditName     string
	AuditResult   audit2log.AuditResultType
	RequestParams map[string]interface{}
	ResultParams  map[string]interface{}
	JSONMatcher   objmatcher.MapMatcher
}

func TestCases

func TestCases() []TestCase

func (TestCase) Params

func (tc TestCase) Params() []audit2log.Param

Jump to

Keyboard shortcuts

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