Documentation ¶
Index ¶
- Variables
- func AddReference(t *testing.T, object *models.Object, ref *models.SingleRef, prop string)
- func AddReferences(t *testing.T, refs []*models.BatchReference)
- func AssertCreateObject(t *testing.T, className string, schema map[string]interface{}) strfmt.UUID
- func AssertCreateObjectClass(t *testing.T, class *models.Class)
- func AssertDeleteObjectClass(t *testing.T, class string)
- func AssertEventuallyEqual(t *testing.T, expected interface{}, actualThunk func() interface{}, ...)
- func AssertEventuallyEqualWithFrequencyAndTimeout(t *testing.T, expected interface{}, actualThunk func() interface{}, ...)
- func AssertGetObject(t *testing.T, class string, uuid strfmt.UUID, include ...string) *models.Object
- func AssertGetObjectEventually(t *testing.T, class string, uuid strfmt.UUID) *models.Object
- func AssertGetObjectFailsEventually(t *testing.T, class string, uuid strfmt.UUID) error
- func AssertRequestFail(t *testing.T, response interface{}, err error, check_fn func())
- func AssertRequestOk(t *testing.T, response interface{}, err error, check_fn func())
- func BatchClient(t *testing.T) batch.ClientService
- func CertaintyToDist(t *testing.T, in float32) float32
- func Client(t *testing.T) *apiclient.Weaviate
- func CreateAuth(apiKey strfmt.UUID, apiToken string) runtime.ClientAuthInfoWriterFunc
- func CreateBackup(t *testing.T, className, backend, backupID string) (*backups.BackupsCreateOK, error)
- func CreateBackupStatus(t *testing.T, backend, backupID string) (*backups.BackupsCreateStatusOK, error)
- func CreateClass(t *testing.T, class *models.Class)
- func CreateObject(t *testing.T, object *models.Object)
- func CreateObjectCL(t *testing.T, object *models.Object, cl replica.ConsistencyLevel)
- func CreateObjectsBatch(t *testing.T, objects []*models.Object)
- func DeleteClass(t *testing.T, class string)
- func DeleteClassObject(t *testing.T, class string) (*schema.SchemaObjectsDeleteOK, error)
- func DeleteObject(t *testing.T, object *models.Object)
- func DeleteObjectsBatch(t *testing.T, body *models.BatchDelete)
- func DeleteReference(t *testing.T, object *models.Object, ref *models.SingleRef, prop string)
- func GetClass(t *testing.T, class string) *models.Class
- func GetObject(t *testing.T, class string, uuid strfmt.UUID, include ...string) (*models.Object, error)
- func GetObjectCL(t *testing.T, class string, uuid strfmt.UUID, cl replica.ConsistencyLevel, ...) (*models.Object, error)
- func GetObjectFromNode(t *testing.T, class string, uuid strfmt.UUID, nodename string) (*models.Object, error)
- func GetRandomString(length int) string
- func GetWeaviateURL() string
- func ObjectExistsCL(t *testing.T, class string, id strfmt.UUID, cl replica.ConsistencyLevel) (bool, error)
- func OperationsClient(t *testing.T) operations_apiclient.ClientService
- func PatchObject(t *testing.T, object *models.Object)
- func RestoreBackup(t *testing.T, className, backend, backupID string) (*backups.BackupsRestoreOK, error)
- func RestoreBackupStatus(t *testing.T, backend, backupID string) (*backups.BackupsRestoreStatusOK, error)
- func SetupClient(uri string)
- func UpdateClass(t *testing.T, class *models.Class)
- func UpdateObject(t *testing.T, object *models.Object)
- func UpdateObjectCL(t *testing.T, object *models.Object, cl replica.ConsistencyLevel)
Constants ¶
This section is empty.
Variables ¶
var ( ServerPort string ServerHost string ServerScheme string DebugHTTP bool )
Configuration flags provided by the user that runs an acceptance test.
var RootAuth runtime.ClientAuthInfoWriterFunc
Credentials for the root key
Functions ¶
func AddReference ¶
func AddReferences ¶
func AddReferences(t *testing.T, refs []*models.BatchReference)
func AssertCreateObject ¶
func AssertDeleteObjectClass ¶
func AssertEventuallyEqual ¶
func AssertEventuallyEqual(t *testing.T, expected interface{}, actualThunk func() interface{}, msg ...interface{})
AssertEventuallyEqual retries the 'actual' thunk every 10ms for a total of 300ms. If a single one succeeds, it returns, if all fails it eventually fails
func AssertGetObject ¶
func AssertRequestFail ¶
Asserts that the request _did_ return an error. Optionally perform some checks only if the request failed
func AssertRequestOk ¶
Asserts that the request did not return an error. Optionally perform some checks only if the request did not fail
func BatchClient ¶
func BatchClient(t *testing.T) batch.ClientService
Create a client that logs with t.Logf, if a *testing.T is provided. If there is no test case at hand, pass in nil to disable logging.
func Client ¶
Create a client that logs with t.Logf, if a *testing.T is provided. If there is no test case at hand, pass in nil to disable logging.
func CreateAuth ¶
func CreateAuth(apiKey strfmt.UUID, apiToken string) runtime.ClientAuthInfoWriterFunc
Create a Weaviate client for the given API key & token.
func CreateBackup ¶
func CreateBackupStatus ¶
func CreateObjectCL ¶ added in v1.18.0
func DeleteClass ¶
func DeleteClassObject ¶
func DeleteObjectsBatch ¶
func DeleteObjectsBatch(t *testing.T, body *models.BatchDelete)
func DeleteReference ¶
func GetObjectCL ¶ added in v1.18.0
func GetObjectFromNode ¶
func GetRandomString ¶
GetRandomString returns a string comprised of random samplings of charset, of length specified by caller
func GetWeaviateURL ¶
func GetWeaviateURL() string
func ObjectExistsCL ¶ added in v1.18.0
func OperationsClient ¶
func OperationsClient(t *testing.T) operations_apiclient.ClientService
Create a client that logs with t.Logf, if a *testing.T is provided. If there is no test case at hand, pass in nil to disable logging.
func RestoreBackup ¶
func RestoreBackupStatus ¶
func SetupClient ¶
func SetupClient(uri string)
func UpdateObjectCL ¶ added in v1.18.0
Types ¶
This section is empty.