go-selvpcclient: github.com/selectel/go-selvpcclient/selvpcclient/resell/v2/keypairs/testing Index | Files

package testing

import "github.com/selectel/go-selvpcclient/selvpcclient/resell/v2/keypairs/testing"

Index

Package Files

fixtures.go

Constants

const TestCreateKeypairOptsRaw = "" /* 241 byte string literal not displayed */

TestCreateKeypairOptsRaw represents marshalled options for the Create request.

const TestCreateKeypairResponseRaw = "" /* 501 byte string literal not displayed */

TestCreateKeypairResponseRaw represents a raw response from the Create request.

const TestListResponseRaw = "" /* 809 byte string literal not displayed */

TestListResponseRaw represents a raw response from List requests.

const TestListResponseSingleRaw = "" /* 266 byte string literal not displayed */

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

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

TestManyKeypairsInvalidResponseRaw represents a raw invalid response from the List call.

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

TestSingleKeypairInvalidResponseRaw represents a raw invalid response with a single keypair.

Variables

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.

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.

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.

Package testing imports 1 packages (graph). Updated 2019-01-05. Refresh now. Tools for package owners.