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

package testing

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

Index

Package Files

fixtures.go

Constants

const TestCreateTokenOptsRaw = `
{
    "token": {
        "project_id": "4aa8f79c86744f13aa80c324b8d24158"
    }
}
`

TestCreateTokenOptsRaw represents marshalled options for the Create request.

const TestCreateTokenResponseRaw = "" /* 228 byte string literal not displayed */

TestCreateTokenResponseRaw represents a raw response from the Create request.

const TestTokenInvalidResponseRaw = `
{
    "token": {
        "id": 123
    }
}
`

TestTokenInvalidResponseRaw represents a raw invalid response with a single token.

Variables

var TestCreateTokenOpts = tokens.TokenOpts{
    ProjectID: "4aa8f79c86744f13aa80c324b8d24158",
}

TestCreateTokenOpts represent options for the Create request.

var TestCreateTokenResponse = &tokens.Token{
    ID: "" /* 185 byte string literal not displayed */,
}

TestCreateTokenResponse represents the unmarshalled TestCreateTokenResponseRaw response.

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