Documentation
¶
Index ¶
- Constants
- func AssertContains(t *testing.T, s string, subs []string)
- func AssertEqual(t *testing.T, e, g interface{}) (r bool)
- func AssertError(t *testing.T, err error)
- func AssertLineCompare(t *testing.T, str, expect string, minLine int)
- func AssertNotNil(t *testing.T, g interface{})
- func Contains(t *testing.T, s string, subs []string) []string
- func CreateTestServer(fn func(w http.ResponseWriter, r *http.Request)) *httptest.Server
- func DC() *resty.Client
- func Equal(expected, got interface{}) bool
- func LogResponse(t *testing.T, resp *resty.Response)
Constants ¶
View Source
const ( LocationJson = `` /* 147-byte string literal not displayed */ ApisJson = `` /* 111800-byte string literal not displayed */ Apis = `` /* 114394-byte string literal not displayed */ ApisFromTags = `` /* 114393-byte string literal not displayed */ ApisFromTagsNoSubset = `` /* 57235-byte string literal not displayed */ ComponentsJson = `` /* 4540-byte string literal not displayed */ Components = `` /* 8689-byte string literal not displayed */ ComponentsFromTags = `` /* 8688-byte string literal not displayed */ ComponentsFromTagsNoSubset = `` /* 3855-byte string literal not displayed */ ResourcesJson = `` /* 11840-byte string literal not displayed */ Resources = `` /* 19620-byte string literal not displayed */ ResourcesFromTags = `` /* 3697-byte string literal not displayed */ ResourcesFromTagsNoSubset = `` /* 3697-byte string literal not displayed */ )
View Source
const ( TestJSONStringOneLine = `{"TestGet": "JSON response"}` TestJSONStringIndented = `{ "TestGet": "JSON response" }` TestJSONStringOneLinePlusPathParam = `{"TestGet": "JSON response path %s"}` TestJSONStringOneLinePlusQueryParam = `{"TestGet": "JSON response query %s"}` TestPostJSONStringOneLinePlusBody = `{"TestPost": "JSON response body %s"}` TestDeleteJSONStringOneLinePlusPathParam = `{"TestDelete": "JSON response path %s"}` )
View Source
const ( TestJSONSuccessfulBackstageLocationImportReturn = `` /* 136-byte string literal not displayed */ TestJSONStringEmptyRegisteredModelOneLine = `{"items":[],"nextPageToken":"","pageSize":0,"size":0}` TestJSONStringRegisteredModelOneLine = `` /* 315-byte string literal not displayed */ TestJSONStringModelVersionOneLine = `` /* 266-byte string literal not displayed */ TestJSONStringModelArtifactOneLine = `` /* 350-byte string literal not displayed */ MnistRegisteredModels = `` /* 314-byte string literal not displayed */ MnistRegisteredModelsGet = `` /* 261-byte string literal not displayed */ MnistModelVersions = `` /* 9487-byte string literal not displayed */ MnistModelArtifacts = `` /* 357-byte string literal not displayed */ MnistInferenceServices = `` /* 341-byte string literal not displayed */ MnistServingEnvironments = `` /* 184-byte string literal not displayed */ MnistServingEnvironmentsGet = `` /* 131-byte string literal not displayed */ MnistModelArtifactsGet = `` /* 304-byte string literal not displayed */ MnistModelVersionGet = `` /* 283-byte string literal not displayed */ MnistRegisteredModelsArchived = `` /* 318-byte string literal not displayed */ MnistModelVersionsArchived = `` /* 340-byte string literal not displayed */ MnistModelArtifactsArchived = `` /* 361-byte string literal not displayed */ MnistModelVersionGetArchived = `` /* 287-byte string literal not displayed */ MnistModelArtifactsGetArchived = `` /* 308-byte string literal not displayed */ MultiModelRegisteredModels = `` /* 1308-byte string literal not displayed */ Granite8bLabModelVersions = `` /* 1173-byte string literal not displayed */ Granite8bCodeBaseModelVersions = `` /* 1104-byte string literal not displayed */ MultiModelMnistModelVersions = `` /* 336-byte string literal not displayed */ Granite8bLabModelArtifacts = `` /* 304-byte string literal not displayed */ Granite8bCodeBaseModelArtifacts = `` /* 307-byte string literal not displayed */ MultiModelMnistModelArtifacts = `` /* 357-byte string literal not displayed */ MultiModelInferenceServices = `` /* 341-byte string literal not displayed */ MultiModelServingEnvironments = `` /* 184-byte string literal not displayed */ MultiModelServingEnvironmentGet = `` /* 131-byte string literal not displayed */ )
View Source
const ( MethodGet = "GET" MethodPost = "POST" MethodDelete = "DELETE" )
View Source
const TestJSONStringRegisteredModelOneLineGet = `` /* 262-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func AssertEqual ¶
func AssertError ¶
func AssertNotNil ¶
func CreateTestServer ¶
func LogResponse ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.