testsuit

package
v4.13.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: BSD-3-Clause Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	PIZZA_QUATTRO_FORMAGGI_ID = "10523cdd-15a2-42f4-81fa-267fe92f7cd6"
	PIZZA_FRUTTI_DI_MARE_ID   = "927dd3ac-e012-4093-8007-7799cc7e81e4"
	PIZZA_HAWAII_ID           = "00000000-0000-0000-0000-000000000000"
	PIZZA_DOENER_ID           = "5b6a08ba-1d46-43aa-89cc-8b070790c6f2"
	SOUP_CHICKENSOUP_ID       = "8c156d37-81aa-4ce9-a811-621e2702b825"
	SOUP_BEAUTIFUL_ID         = "27351361-2898-4d1a-aad7-1ca48253eb0b"
	RISOTTO_RISI_E_BISI_ID    = "da751a25-f573-4715-a893-e607b2de0ba4"
	RISOTTO_ALLA_PILOTA_ID    = "10c2ee44-7d58-42be-9d64-5766883ca8cb"
	RISOTTO_AL_NERO_DI_SEPPIA = "696bf381-7f98-40a4-bcad-841780e00e0e"
)
View Source
const (
	NoAuthPort     = 8080
	AzurePort      = 8081
	OktaCCPort     = 8082
	OktaUsersPort  = 8083
	WCSPort        = 8085
	WCSGRPCPort    = 50056
	NoWeaviatePort = 8888
)
View Source
const (
	AllProperties_RefClass     = "RefClass"
	AllProperties_RefClass2    = "RefClass2"
	AllProperties_RefID1       = "a0000000-0000-0000-0000-000000000001"
	AllProperties_RefID2       = "a0000000-0000-0000-0000-000000000002"
	AllProperties_RefID3       = "a0000000-0000-0000-0000-000000000003"
	AllProperties_hasRefClass  = "hasRefClass"
	AllProperties_hasRefClass2 = "hasRefClass2"
)

Variables

Functions

func AllPropertiesDataAsMap added in v4.11.0

func AllPropertiesDataAsMap() []map[string]interface{}

func AllPropertiesDataWithCrossReferencesAsMap added in v4.11.0

func AllPropertiesDataWithCrossReferencesAsMap() []map[string]interface{}

func AllPropertiesDataWithCrossReferencesWithNestedArrayObjectsAsMap added in v4.11.0

func AllPropertiesDataWithCrossReferencesWithNestedArrayObjectsAsMap() []map[string]interface{}

func AllPropertiesDataWithNestedArrayObjectsAsMap added in v4.11.0

func AllPropertiesDataWithNestedArrayObjectsAsMap() []map[string]interface{}

func AllPropertiesDataWithNestedObjectsAsMap added in v4.11.0

func AllPropertiesDataWithNestedObjectsAsMap() []map[string]interface{}

func AllPropertiesObjects added in v4.11.0

func AllPropertiesObjects(className string) []*models.Object

func AllPropertiesObjectsWithData added in v4.11.0

func AllPropertiesObjectsWithData(className string, properties []map[string]interface{}) []*models.Object

func AllPropertiesObjectsWithNested added in v4.11.0

func AllPropertiesObjectsWithNested(className string) []*models.Object

func AllPropertiesObjectsWithNestedArray added in v4.11.0

func AllPropertiesObjectsWithNestedArray(className string) []*models.Object

func AllPropertiesSchemaCreate added in v4.11.0

func AllPropertiesSchemaCreate(t *testing.T, client *weaviate.Client, className string, withCrossRefs, withMultipleVectors bool)

func CleanUpWeaviate

func CleanUpWeaviate(t *testing.T, client *weaviate.Client)

CleanUpWeaviate removes the schema and thereby all data

func CreateDataFood added in v4.9.0

func CreateDataFood(t *testing.T, client *weaviate.Client)

func CreateDataFoodForTenants added in v4.9.0

func CreateDataFoodForTenants(t *testing.T, client *weaviate.Client, tenantNames ...string)

func CreateDataPizza added in v4.9.0

func CreateDataPizza(t *testing.T, client *weaviate.Client)

func CreateDataPizzaDoenerForTenants added in v4.9.0

func CreateDataPizzaDoenerForTenants(t *testing.T, client *weaviate.Client, tenantNames ...string)

func CreateDataPizzaForTenants added in v4.9.0

func CreateDataPizzaForTenants(t *testing.T, client *weaviate.Client, tenantNames ...string)

func CreateDataPizzaFruttiDiMareForTenants added in v4.9.0

func CreateDataPizzaFruttiDiMareForTenants(t *testing.T, client *weaviate.Client, tenantNames ...string)

func CreateDataPizzaHawaiiForTenants added in v4.9.0

func CreateDataPizzaHawaiiForTenants(t *testing.T, client *weaviate.Client, tenantNames ...string)

func CreateDataPizzaQuattroFormaggiForTenants added in v4.9.0

func CreateDataPizzaQuattroFormaggiForTenants(t *testing.T, client *weaviate.Client, tenantNames ...string)

func CreateDataRisotto added in v4.9.0

func CreateDataRisotto(t *testing.T, client *weaviate.Client)

func CreateDataRisottoForTenants added in v4.9.0

func CreateDataRisottoForTenants(t *testing.T, client *weaviate.Client, tenantNames ...string)

func CreateDataSoup added in v4.9.0

func CreateDataSoup(t *testing.T, client *weaviate.Client)

func CreateDataSoupForTenants added in v4.9.0

func CreateDataSoupForTenants(t *testing.T, client *weaviate.Client, tenantNames ...string)

func CreateSchemaFood added in v4.9.0

func CreateSchemaFood(t *testing.T, client *weaviate.Client)

func CreateSchemaFoodForTenants added in v4.9.0

func CreateSchemaFoodForTenants(t *testing.T, client *weaviate.Client)

func CreateSchemaPizza added in v4.9.0

func CreateSchemaPizza(t *testing.T, client *weaviate.Client)

func CreateSchemaPizzaForTenants added in v4.9.0

func CreateSchemaPizzaForTenants(t *testing.T, client *weaviate.Client)

func CreateSchemaRisotto added in v4.9.0

func CreateSchemaRisotto(t *testing.T, client *weaviate.Client)

func CreateSchemaRisottoForTenants added in v4.9.0

func CreateSchemaRisottoForTenants(t *testing.T, client *weaviate.Client)

func CreateSchemaSoup added in v4.9.0

func CreateSchemaSoup(t *testing.T, client *weaviate.Client)

func CreateSchemaSoupForTenants added in v4.9.0

func CreateSchemaSoupForTenants(t *testing.T, client *weaviate.Client)

func CreateTenantsFood added in v4.9.0

func CreateTenantsFood(t *testing.T, client *weaviate.Client, tenants ...models.Tenant)

func CreateTenantsPizza added in v4.9.0

func CreateTenantsPizza(t *testing.T, client *weaviate.Client, tenants ...models.Tenant)

func CreateTenantsRisotto added in v4.9.0

func CreateTenantsRisotto(t *testing.T, client *weaviate.Client, tenants ...models.Tenant)

func CreateTenantsSoup added in v4.9.0

func CreateTenantsSoup(t *testing.T, client *weaviate.Client, tenants ...models.Tenant)

func CreateTestClient

func CreateTestClient() *weaviate.Client

CreateTestClient running on local host 8080

func CreateTestDocumentAndPassageSchemaAndData added in v4.8.0

func CreateTestDocumentAndPassageSchemaAndData(t *testing.T, client *weaviate.Client)

func CreateTestSchemaAndData

func CreateTestSchemaAndData(t *testing.T, client *weaviate.Client, opts ...schemaOptions)

CreateTestSchemaAndData with a few pizzas and soups

func CreateTestSchemaAndDataDeprecated added in v4.8.0

func CreateTestSchemaAndDataDeprecated(t *testing.T, client *weaviate.Client)

func CreateWeaviateTestSchemaDocumentPassage added in v4.8.0

func CreateWeaviateTestSchemaDocumentPassage(t *testing.T, client *weaviate.Client)

func CreateWeaviateTestSchemaFood

func CreateWeaviateTestSchemaFood(t *testing.T, client *weaviate.Client, opts ...schemaOptions)

CreateWeaviateTestSchemaFood creates a class for each semantic type (Pizza and Soup) and adds some primitive properties (name and description)

func CreateWeaviateTestSchemaFoodDeprecated added in v4.8.0

func CreateWeaviateTestSchemaFoodDeprecated(t *testing.T, client *weaviate.Client)

func CreateWeaviateTestSchemaFoodWithReferenceProperty

func CreateWeaviateTestSchemaFoodWithReferenceProperty(t *testing.T, client *weaviate.Client)

func CreateWeaviateTestSchemaFoodWithReferencePropertyDeprecated added in v4.8.0

func CreateWeaviateTestSchemaFoodWithReferencePropertyDeprecated(t *testing.T, client *weaviate.Client)

func CreateWeaviateTestSchemaWithVectorizorlessClass

func CreateWeaviateTestSchemaWithVectorizorlessClass(t *testing.T, client *weaviate.Client)

func CreateWeaviateTestSchemaWithVectorizorlessClassDeprecated added in v4.8.0

func CreateWeaviateTestSchemaWithVectorizorlessClassDeprecated(t *testing.T, client *weaviate.Client)

func GetPortAndAuthPw added in v4.7.0

func GetPortAndAuthPw() (int, string, bool)

func ParseReferenceResponseToStruct

func ParseReferenceResponseToStruct(t *testing.T, reference interface{}) models.MultipleRef

ParseReferenceResponseToStruct from the interface typed property schema returned by the client

func WithReplication added in v4.8.0

func WithReplication(cls *models.Class)

Types

type AllProperties added in v4.11.0

type AllProperties struct {
	ID1, ID2, ID3 string
	IDs           []string
	Authors       []string
	AuthorsArray  [][]string
	Colors        []string
	ColorssArray  [][]string
	Numbers       []float64
	NumbersArray  [][]float64
	Ints          []int64
	IntsArray     [][]int64
	Uuids         []string
	UuidsArray    [][]string
	Dates         []string
	DatesArray    [][]string
	Bools         []bool
	BoolsArray    [][]bool
}

func AllPropertiesData added in v4.11.0

func AllPropertiesData() AllProperties

type Tenants added in v4.10.0

type Tenants []models.Tenant

func (Tenants) ByName added in v4.10.0

func (t Tenants) ByName(name string) *models.Tenant

func (Tenants) Names added in v4.10.0

func (t Tenants) Names() []string

Jump to

Keyboard shortcuts

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