testing

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const AcceptTransferRequest = `
{
    "accept": {
        "auth_key": "9266c59563c84664"
    }
}
`
View Source
const AcceptTransferResponse = `` /* 501-byte string literal not displayed */
View Source
const CreateRequest = `
{
  "transfer": {
    "volume_id": "2f6f1684-1ded-40db-8a49-7c87dedbc758"
  }
}
`
View Source
const CreateResponse = `` /* 585-byte string literal not displayed */
View Source
const GetOutput = `` /* 549-byte string literal not displayed */
View Source
const ListOutput = `` /* 590-byte string literal not displayed */

Variables

View Source
var AcceptRequest = volumetransfers.AcceptOpts{
	AuthKey: "9266c59563c84664",
}
View Source
var AcceptResponse = volumetransfers.Transfer{
	ID:       "b8913bfd-a4d3-4ec5-bd8b-fe2dbeef9f4f",
	Name:     "",
	VolumeID: "2f6f1684-1ded-40db-8a49-7c87dedbc758",
	Links: []map[string]string{
		{
			"href": "https://volume/v3/53c2b94f63fb4f43a21b92d119ce549f/os-volume-transfer/b8913bfd-a4d3-4ec5-bd8b-fe2dbeef9f4f",
			"rel":  "self",
		},
		{
			"href": "https://volume/53c2b94f63fb4f43a21b92d119ce549f/os-volume-transfer/b8913bfd-a4d3-4ec5-bd8b-fe2dbeef9f4f",
			"rel":  "bookmark",
		},
	},
}
View Source
var TransferListResponse = []volumetransfers.Transfer{TransferResponse}
View Source
var TransferRequest = volumetransfers.CreateOpts{
	VolumeID: "2f6f1684-1ded-40db-8a49-7c87dedbc758",
}
View Source
var TransferResponse = volumetransfers.Transfer{
	ID:        "b8913bfd-a4d3-4ec5-bd8b-fe2dbeef9f4f",
	AuthKey:   "cb67e0e7387d9eac",
	Name:      "",
	VolumeID:  "2f6f1684-1ded-40db-8a49-7c87dedbc758",
	CreatedAt: createdAt,
	Links: []map[string]string{
		{
			"href": "https://volume/v3/53c2b94f63fb4f43a21b92d119ce549f/os-volume-transfer/b8913bfd-a4d3-4ec5-bd8b-fe2dbeef9f4f",
			"rel":  "self",
		},
		{
			"href": "https://volume/53c2b94f63fb4f43a21b92d119ce549f/os-volume-transfer/b8913bfd-a4d3-4ec5-bd8b-fe2dbeef9f4f",
			"rel":  "bookmark",
		},
	},
}

Functions

func HandleAcceptTransfer

func HandleAcceptTransfer(t *testing.T)

func HandleCreateTransfer

func HandleCreateTransfer(t *testing.T)

func HandleDeleteTransfer

func HandleDeleteTransfer(t *testing.T)

func HandleGetTransfer

func HandleGetTransfer(t *testing.T)

func HandleListTransfers

func HandleListTransfers(t *testing.T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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