exporttest

package
v1.37.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CancelExport

func CancelExport(t *testing.T, backend, exportID string) (*export.ExportCancelNoContent, error)

func CancelExportWithAuth

func CancelExportWithAuth(t *testing.T, backend, exportID string, auth runtime.ClientAuthInfoWriter) (*export.ExportCancelNoContent, error)

func CreateExport

func CreateExport(t *testing.T, backend, exportID string, include []string) (*export.ExportCreateOK, error)

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 ExpectExportEventuallyCanceled

func ExpectExportEventuallyCanceled(t *testing.T, backend, exportID string)

func ExpectExportEventuallySucceeded

func ExpectExportEventuallySucceeded(t *testing.T, backend, exportID string)

func ExportStatus

func ExportStatus(t *testing.T, backend, exportID string) (*export.ExportStatusOK, error)

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.

Jump to

Keyboard shortcuts

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