ossectest

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientConfig

func ClientConfig() (*security.Config, error)

ClientConfig returns an opensearchapi.Config for secure opensearch

func CreateFailingClient

func CreateFailingClient() (*security.Client, error)

CreateFailingClient returns an security.Client that always return 400 with an empty object as body

func NewClient

func NewClient() (*security.Client, error)

NewClient returns an opensearchapi.Client that is adjusted for the wanted test case

func VerifyInspect

func VerifyInspect(t *testing.T, inspect security.Inspect)

VerifyInspect validates the returned security.Inspect type

Types

type Response

type Response interface {
	Inspect() security.Inspect
}

Response is a dummy interface to run tests with Inspect()

Jump to

Keyboard shortcuts

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