testing

package
v0.24.2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const GetOutput = `` /* 950-byte string literal not displayed */

GetOutput is a sample response to a Get call.

Variables

View Source
var LimitsResult = limits.Limits{
	Rate: []limits.Rate{
		{
			Regex: ".*",
			URI:   "*",
			Limit: []limits.Limit{
				{
					Verb:          "GET",
					NextAvailable: "1970-01-01T00:00:00",
					Unit:          "MINUTE",
					Value:         10,
					Remaining:     10,
				},
				{
					Verb:          "POST",
					NextAvailable: "1970-01-01T00:00:00",
					Unit:          "HOUR",
					Value:         5,
					Remaining:     5,
				},
			},
		},
		{
			Regex: "changes-since",
			URI:   "changes-since*",
			Limit: []limits.Limit{
				{
					Verb:          "GET",
					NextAvailable: "1970-01-01T00:00:00",
					Unit:          "MINUTE",
					Value:         5,
					Remaining:     5,
				},
			},
		},
	},
	Absolute: limits.Absolute{
		MaxTotalVolumes:          40,
		MaxTotalSnapshots:        40,
		MaxTotalVolumeGigabytes:  1000,
		MaxTotalBackups:          10,
		MaxTotalBackupGigabytes:  1000,
		TotalVolumesUsed:         1,
		TotalGigabytesUsed:       100,
		TotalSnapshotsUsed:       1,
		TotalBackupsUsed:         1,
		TotalBackupGigabytesUsed: 50,
	},
}

LimitsResult is the result of the limits in GetOutput.

Functions

func HandleGetSuccessfully

func HandleGetSuccessfully(t *testing.T)

HandleGetSuccessfully configures the test server to respond to a Get request for a limit.

Types

This section is empty.

Jump to

Keyboard shortcuts

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