testing

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const CreateOutput = `` /* 300-byte string literal not displayed */

CreateOutput represents the response body from a Create request.

Variables

View Source
var CreateExpected = []shares.Share{{
	BackupID:      "87566ed6-72cb-4053-aa6e-6f6216b3d507",
	ToProjectID:   "91d687759aed45d28b5f6084bc2fa8ad",
	FromProjectID: "17fbda95add24720a4038ba4b1c705ed",
	ID:            "34c38ce7-f35c-44f2-a8d8-8d4ebab0cfbb",
},
}

CreateExpected represents the expected object from a Create request.

Functions

func HandleCreateSuccessfully

func HandleCreateSuccessfully(t *testing.T, output string)

HandleCreateSuccessfully creates an HTTP handler at `/os-vendor-backup-sharing` on the test handler mux that responds with a `Create` response.

func HandleDeleteSuccessfully

func HandleDeleteSuccessfully(t *testing.T)

HandleDeleteSuccessfully creates an HTTP handler at `/os-vendor-backup-sharing/87566ed6-72cb-4053-aa6e-6f6216b3d507` on the test handler mux that responds with a `Delete` response.

func HandleGetSuccessfully

func HandleGetSuccessfully(t *testing.T)

HandleGetSuccessfully creates an HTTP handler at `/os-vendor-backup-sharing/ac0fb374-a288-4399-ac63-cc080a13a2ee` on the test handler mux that responds with a `Get` response.

Types

This section is empty.

Jump to

Keyboard shortcuts

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