Documentation ¶
Overview ¶
_ _
*__ _____ __ ___ ___ __ _| |_ ___ *\ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \ * \ V V / __/ (_| |\ V /| | (_| | || __/ * \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___| * * Copyright © 2016 - 2019 Weaviate. All rights reserved. * LICENSE: https://github.com/creativesoftwarefdn/weaviate/blob/develop/LICENSE.md * DESIGN & CONCEPT: Bob van Luijt (@bobvanluijt) * CONTACT: hello@creativesoftwarefdn.org
_ _
*__ _____ __ ___ ___ __ _| |_ ___ *\ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \ * \ V V / __/ (_| |\ V /| | (_| | || __/ * \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___| * * Copyright © 2016 - 2019 Weaviate. All rights reserved. * LICENSE: https://github.com/creativesoftwarefdn/weaviate/blob/develop/LICENSE.md * DESIGN & CONCEPT: Bob van Luijt (@bobvanluijt) * CONTACT: hello@creativesoftwarefdn.org
_ _
*__ _____ __ ___ ___ __ _| |_ ___ *\ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \ * \ V V / __/ (_| |\ V /| | (_| | || __/ * \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___| * * Copyright © 2016 - 2019 Weaviate. All rights reserved. * LICENSE: https://github.com/creativesoftwarefdn/weaviate/blob/develop/LICENSE.md * DESIGN & CONCEPT: Bob van Luijt (@bobvanluijt) * CONTACT: hello@creativesoftwarefdn.org
Index ¶
- Variables
- func AssertEventuallyEqual(t *testing.T, expected interface{}, actualThunk func() interface{}, ...)
- 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 Client(t *testing.T) *apiclient.WeaviateDecentralisedKnowledgeGraph
- func CreateAuth(apiKey strfmt.UUID, apiToken string) runtime.ClientAuthInfoWriterFunc
- func GetWeaviateURL() string
- func OperationsClient(t *testing.T) *operations_apiclient.Client
Constants ¶
This section is empty.
Variables ¶
var DebugHTTP bool
var RootApiKey strfmt.UUID
Configuration flags provided by the user that runs an acceptance test.
var RootApiToken string
var RootAuth runtime.ClientAuthInfoWriterFunc
Credentials for the root key
var ServerHost string
var ServerPort string
var ServerScheme string
Functions ¶
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 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 Client ¶
func Client(t *testing.T) *apiclient.WeaviateDecentralisedKnowledgeGraph
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 GetWeaviateURL ¶
func GetWeaviateURL() string
func OperationsClient ¶
func OperationsClient(t *testing.T) *operations_apiclient.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.
Types ¶
This section is empty.