Documentation ¶
Index ¶
Constants ¶
const CreateOutput = `{
"job_id": "ff8080826576401e01657b99fc444986"
}`
CreateOutput represents the response body from a Create request.
const FullListOutput = `` /* 1109-byte string literal not displayed */
FullListOutput represents the response body from a List request.
const RestoreOutput = `` /* 188-byte string literal not displayed */
RestoreOutput represents the response body from a Create request.
Variables ¶
var CreateExpected = &backups.JobResponse{
JobID: "ff8080826576401e01657b99fc444986",
}
CreateExpected represents the expected object from a Create request.
var ListExpected = []backups.Backup{ { Name: "c2c-test-buckup", Id: "87566ed6-72cb-4053-aa6e-6f6216b3d507", Status: "available", ObjectCount: 0, TenantId: "17fbda95add24720a4038ba4b1c705ed", Container: "a704c75f-f0d1-4efa-9fd6-7557fe1ee8d3", AvailabilityZone: "eu-de-01", DependentBackups: false, SnapshotId: "a704c75f-f0d1-4efa-9fd6-7557fe1ee8d3", VolumeId: "5024a06e-6990-4f12-9dcc-8fe26b01a710", Incremental: false, Size: 10, Links: []golangsdk.Link{ { Href: "https://vbs.eu-de.otc.t-systems.com/v2/17fbda95add24720a4038ba4b1c705ed/backups/87566ed6-72cb-4053-aa6e-6f6216b3d507", Rel: "self", }, { Href: "https://vbs.eu-de.otc.t-systems.com/17fbda95add24720a4038ba4b1c705ed/backups/87566ed6-72cb-4053-aa6e-6f6216b3d507", Rel: "bookmark", }, }, }, }
ListExpected represents the expected object from a List request.
var RestoreExpected = &backups.BackupRestoreInfo{
BackupId: "87566ed6-72cb-4053-aa6e-6f6216b3d507",
VolumeName: "c2c-test-disk",
VolumeId: "5024a06e-6990-4f12-9dcc-8fe26b01a710",
}
CreateExpected represents the expected object from a Create request.
Functions ¶
func HandleCreateSuccessfully ¶
HandleCreateSuccessfully creates an HTTP handler at `/backups` on the test handler mux that responds with a `Create` response.
func HandleDeleteSuccessfully ¶
HandleDeleteSuccessfully creates an HTTP handler at `/backups/87566ed6-72cb-4053-aa6e-6f6216b3d507` on the test handler mux that responds with a `Delete` response.
func HandleGetSuccessfully ¶
HandleGetSuccessfully creates an HTTP handler at `/17fbda95add24720a4038ba4b1c705ed/backups/87566ed6-72cb-4053-aa6e-6f6216b3d507` on the test handler mux that responds with a `Get` response.
func HandleListSuccessfully ¶
HandleListSuccessfully creates an HTTP handler at `/backups/detail` on the test handler mux that responds with a `List` response.
func HandleRestoreSuccessfully ¶
HandleRestoreSuccessfully creates an HTTP handler at `/backups/87566ed6-72cb-4053-aa6e-6f6216b3d507/restore` on the test handler mux that responds with a `Create` response.
Types ¶
This section is empty.