Documentation
¶
Index ¶
- func CancelExport(t *testing.T, backend, exportID string) (*export.ExportCancelNoContent, error)
- func CancelExportWithAuth(t *testing.T, backend, exportID string, auth runtime.ClientAuthInfoWriter) (*export.ExportCancelNoContent, error)
- func CreateExport(t *testing.T, backend, exportID string, include []string) (*export.ExportCreateOK, error)
- func CreateExportRaw(t *testing.T, backend string, body *models.ExportCreateRequest) (*export.ExportCreateOK, error)
- func CreateExportWithAuth(t *testing.T, backend, exportID string, include []string, ...) (*export.ExportCreateOK, error)
- func ExpectExportEventuallyCanceled(t *testing.T, backend, exportID string)
- func ExpectExportEventuallySucceeded(t *testing.T, backend, exportID string)
- func ExportStatus(t *testing.T, backend, exportID string) (*export.ExportStatusOK, error)
- func ExportStatusWithAuth(t *testing.T, backend, exportID string, auth runtime.ClientAuthInfoWriter) (*export.ExportStatusOK, error)
- func VerifyStatusResponse(t *testing.T, resp *models.ExportStatusResponse, backend, exportID string, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelExport ¶
func CancelExportWithAuth ¶
func CancelExportWithAuth(t *testing.T, backend, exportID string, auth runtime.ClientAuthInfoWriter) (*export.ExportCancelNoContent, error)
func CreateExport ¶
func CreateExportRaw ¶
func CreateExportRaw(t *testing.T, backend string, body *models.ExportCreateRequest) (*export.ExportCreateOK, error)
CreateExportRaw creates an export using a raw ExportCreateRequest body, allowing tests to set arbitrary combinations of fields (e.g. include+exclude).
func CreateExportWithAuth ¶
func CreateExportWithAuth(t *testing.T, backend, exportID string, include []string, auth runtime.ClientAuthInfoWriter) (*export.ExportCreateOK, error)
func ExportStatus ¶
func ExportStatusWithAuth ¶
func ExportStatusWithAuth(t *testing.T, backend, exportID string, auth runtime.ClientAuthInfoWriter) (*export.ExportStatusOK, error)
func VerifyStatusResponse ¶
func VerifyStatusResponse(t *testing.T, resp *models.ExportStatusResponse, backend, exportID string, expectedClasses []string, calledAt time.Time)
VerifyStatusResponse checks that a successful export status response has reasonable metadata: timestamps, duration, ID, backend, path, and classes. calledAt should be captured just before the CreateExport call.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.