testing

package
v1.6.0-19 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const AcceptTransferRequest = `
{
    "accept": {
        "auth_key": "9266c59563c84664"
    }
}
`
View Source
const CreateRequest = `
{
  "transfer": {
    "share_id": "2f6f1684-1ded-40db-8a49-7c87dedbc758"
  }
}
`
View Source
const CreateResponse = `` /* 579-byte string literal not displayed */
View Source
const GetOutput = `` /* 543-byte string literal not displayed */
View Source
const ListOutput = `` /* 584-byte string literal not displayed */

Variables

View Source
var AcceptRequest = sharetransfers.AcceptOpts{
	AuthKey: "9266c59563c84664",
}
View Source
var AcceptResponse = sharetransfers.Transfer{
	ID:         "b8913bfd-a4d3-4ec5-bd8b-fe2dbeef9f4f",
	Name:       "",
	ResourceID: "2f6f1684-1ded-40db-8a49-7c87dedbc758",
	Links: []map[string]string{
		{
			"href": "https://share/v3/53c2b94f63fb4f43a21b92d119ce549f/share-transfers/b8913bfd-a4d3-4ec5-bd8b-fe2dbeef9f4f",
			"rel":  "self",
		},
		{
			"href": "https://share/53c2b94f63fb4f43a21b92d119ce549f/share-transfers/b8913bfd-a4d3-4ec5-bd8b-fe2dbeef9f4f",
			"rel":  "bookmark",
		},
	},
}
View Source
var TransferListResponse = []sharetransfers.Transfer{TransferResponse}
View Source
var TransferRequest = sharetransfers.CreateOpts{
	ShareID: "2f6f1684-1ded-40db-8a49-7c87dedbc758",
}
View Source
var TransferResponse = sharetransfers.Transfer{
	ID:         "b8913bfd-a4d3-4ec5-bd8b-fe2dbeef9f4f",
	AuthKey:    "cb67e0e7387d9eac",
	Name:       "",
	ResourceID: "2f6f1684-1ded-40db-8a49-7c87dedbc758",
	CreatedAt:  createdAt,
	Links: []map[string]string{
		{
			"href": "https://share/v3/53c2b94f63fb4f43a21b92d119ce549f/share-transfers/b8913bfd-a4d3-4ec5-bd8b-fe2dbeef9f4f",
			"rel":  "self",
		},
		{
			"href": "https://share/53c2b94f63fb4f43a21b92d119ce549f/share-transfers/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)

func HandleListTransfersDetail

func HandleListTransfersDetail(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