osismtest

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientConfig

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

ClientConfig returns an opensearchapi.Config for secure opensearch

func CreateFailingClient

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

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

func NewClient

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

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

func VerifyInspect

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

VerifyInspect validates the returned ism.Inspect type

Types

type Response

type Response interface {
	Inspect() ism.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