testing

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TestCreateKeypairOptsRaw = `` /* 239-byte string literal not displayed */

TestCreateKeypairOptsRaw represents marshalled options for the Create request.

View Source
const TestCreateKeypairResponseRaw = `` /* 499-byte string literal not displayed */

TestCreateKeypairResponseRaw represents a raw response from the Create request.

View Source
const TestListResponseRaw = `` /* 807-byte string literal not displayed */

TestListResponseRaw represents a raw response from List requests.

View Source
const TestListResponseSingleRaw = `` /* 264-byte string literal not displayed */

TestListResponseSingleRaw represents a raw response with a single keypair from the List requests.

View Source
const TestManyKeypairsInvalidResponseRaw = `
{
    "keypairs": [
        {
            "user_id": 123
        }
    ]
}
`

TestManyKeypairsInvalidResponseRaw represents a raw invalid response from the List call.

View Source
const TestSingleKeypairInvalidResponseRaw = `
{
    "keypair": [
        {
            "regions": "some_regions"
        }
    ]
}
`

TestSingleKeypairInvalidResponseRaw represents a raw invalid response with a single keypair.

Variables

View Source
var TestCreateKeypairOpts = keypairs.KeypairOpts{
	Name:      "key1",
	PublicKey: "ssh-rsa CCCAAABBB user33@example.com",
	Regions:   []string{"ru-2", "ru-3"},
	UserID:    "6d7eb892ca98413e8621c6366c8416be",
}

TestCreateKeypairOpts represent options for the Create request.

View Source
var TestCreateKeypairResponse = []*keypairs.Keypair{
	{
		Name:      "key1",
		PublicKey: "ssh-rsa CCCAAABBB user33@example.com",
		Regions:   []string{"ru-2"},
		UserID:    "6d7eb892ca98413e8621c6366c8416be",
	},
	{
		Name:      "key1",
		PublicKey: "ssh-rsa CCCAAABBB user33@example.com",
		Regions:   []string{"ru-3"},
		UserID:    "6d7eb892ca98413e8621c6366c8416be",
	},
}

TestCreateKeypairResponse represents the unmarshalled TestCreateKeypairResponseRaw response.

View Source
var TestListResponseSingle = []*keypairs.Keypair{
	{
		Name:      "key2",
		PublicKey: "ssh-rsa CCCAAABBB user2@selectel.com",
		Regions:   []string{"ru-3"},
		UserID:    "6d7eb892ca98413e8621c6366c8416be",
	},
}

TestListResponseSingle represents the unmarshalled TestListResponseSingleRaw response.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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