versionutils

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfNotServerless added in v0.11.17

func CheckIfNotServerless() func() (bool, error)

func CheckIfVersionIsUnsupported

func CheckIfVersionIsUnsupported(minSupportedVersion *version.Version) func() (bool, error)

func CheckIfVersionMeetsConstraints added in v0.11.3

func CheckIfVersionMeetsConstraints(constraints version.Constraints) func() (bool, error)

func SkipIfUnsupported added in v0.15.1

func SkipIfUnsupported(t *testing.T, minVersion *version.Version, flavor Flavor)

SkipIfUnsupported skips the test when the acceptance Elasticsearch connection reports a version strictly below minVersion or a deployment flavor incompatible with flavor. Serverless clusters bypass minimum-version checks. Infrastructure failures call t.Fatal.

func SkipIfUnsupportedConstraints added in v0.15.1

func SkipIfUnsupportedConstraints(t *testing.T, constraints version.Constraints, flavor Flavor)

SkipIfUnsupportedConstraints skips the test when the acceptance Elasticsearch version does not satisfy constraints or the deployment flavor is incompatible. Serverless clusters bypass constraint checks. Infrastructure failures call t.Fatal.

Types

type Flavor added in v0.15.1

type Flavor int

Flavor selects deployment flavor requirements for acceptance-test skips.

const (
	FlavorAny Flavor = iota
	FlavorStateful
	FlavorServerless
)

func (Flavor) String added in v0.15.1

func (f Flavor) String() string

Jump to

Keyboard shortcuts

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