common

package
v0.0.0-...-f09cf9b Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddReferences

func AddReferences(t *testing.T, host string, refs []*models.BatchReference)

func AddTenantReferences

func AddTenantReferences(t *testing.T, host string, refs []*models.BatchReference)

func CountObjects

func CountObjects(t *testing.T, host, class string) int64

func CountTenantObjects

func CountTenantObjects(t *testing.T, host, class string,
	tenant string,
) int64

func CreateObjectCL

func CreateObjectCL(t *testing.T, host string, obj *models.Object, cl replica.ConsistencyLevel) error

func CreateObjects

func CreateObjects(t *testing.T, host string, batch []*models.Object)

func CreateObjectsCL

func CreateObjectsCL(t *testing.T, host string, batch []*models.Object, cl replica.ConsistencyLevel)

func CreateTenantObjects

func CreateTenantObjects(t *testing.T, host string, batch []*models.Object)

func DeleteObject

func DeleteObject(t *testing.T, host, class string, id strfmt.UUID, cl replica.ConsistencyLevel)

func DeleteObjects

func DeleteObjects(t *testing.T, host, class string, path []string, valueText string, cl replica.ConsistencyLevel)

func DeleteTenantObject

func DeleteTenantObject(t *testing.T, host, class string, id strfmt.UUID, tenant string, cl replica.ConsistencyLevel)

func DeleteTenantObjects

func DeleteTenantObjects(t *testing.T, host, class string, path []string, valueText, tenant string, cl replica.ConsistencyLevel)

func GQLDo

func GQLDo(t *testing.T, class, query string) []interface{}

func GQLGet

func GQLGet(t *testing.T, host, class string, cl replica.ConsistencyLevel, fields ...string) []interface{}

func GQLGetNearVec

func GQLGetNearVec(t *testing.T, host, class string, vec []interface{}, cl replica.ConsistencyLevel, fields ...string) []interface{}

func GQLTenantGet

func GQLTenantGet(t *testing.T, host, class string, cl replica.ConsistencyLevel,
	tenant string, fields ...string,
) []interface{}

func GetClass

func GetClass(t *testing.T, host, class string) *models.Class

func GetNodes

func GetNodes(t *testing.T, host string) *models.NodesStatusResponse

func GetObject

func GetObject(t *testing.T, host, class string, id strfmt.UUID, withVec bool) (*models.Object, error)

func GetObjectCL

func GetObjectCL(t *testing.T, host, class string, id strfmt.UUID, cl replica.ConsistencyLevel) (*models.Object, error)

func GetObjectFromNode

func GetObjectFromNode(t *testing.T, host, class string, id strfmt.UUID, nodename string) (*models.Object, error)

func GetTenantObject

func GetTenantObject(t *testing.T, host, class string, id strfmt.UUID, tenant string) (*models.Object, error)

func GetTenantObjectFromNode

func GetTenantObjectFromNode(t *testing.T, host, class string, id strfmt.UUID, nodename, tenant string) (*models.Object, error)

func ObjectExistsCL

func ObjectExistsCL(t *testing.T, host, class string, id strfmt.UUID, cl replica.ConsistencyLevel) (bool, error)

func PatchObject

func PatchObject(t *testing.T, host string, patch *models.Object)

func StartNodeAt

func StartNodeAt(ctx context.Context, t *testing.T, compose *docker.DockerCompose, index int)

startNodeAt starts the node container at the given index.

NOTE: the index is 1-based, so starting the first node requires index=1, not 0

func StopNodeAt

func StopNodeAt(ctx context.Context, t *testing.T, compose *docker.DockerCompose, index int)

stopNodeAt stops the node container at the given index.

NOTE: the index is 1-based, so stopping the first node requires index=1, not 0

func UpdateClass

func UpdateClass(t *testing.T, host string, class *models.Class)

func UpdateObjectCL

func UpdateObjectCL(t *testing.T, host string, obj *models.Object, cl replica.ConsistencyLevel) error

func Vec2String

func Vec2String(v []interface{}) (s string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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