Documentation
¶
Overview ¶
servers unit tests
Index ¶
- Constants
- Variables
- func HandleAddressListSuccessfully(t *testing.T)
- func HandleAdminPasswordChangeSuccessfully(t *testing.T)
- func HandleCreateServerImageSuccessfully(t *testing.T)
- func HandleMetadataGetSuccessfully(t *testing.T)
- func HandleMetadataResetSuccessfully(t *testing.T)
- func HandleMetadataUpdateSuccessfully(t *testing.T)
- func HandleMetadatumCreateSuccessfully(t *testing.T)
- func HandleMetadatumDeleteSuccessfully(t *testing.T)
- func HandleMetadatumGetSuccessfully(t *testing.T)
- func HandleNetworkAddressListSuccessfully(t *testing.T)
- func HandlePasswordGetSuccessfully(t *testing.T)
- func HandleRebootSuccessfully(t *testing.T)
- func HandleRebuildSuccessfully(t *testing.T, response string)
- func HandleServerCreationSuccessfully(t *testing.T, response string)
- func HandleServerCreationWithCustomFieldSuccessfully(t *testing.T, response string)
- func HandleServerCreationWithMetadata(t *testing.T, response string)
- func HandleServerCreationWithUserdata(t *testing.T, response string)
- func HandleServerDeletionSuccessfully(t *testing.T)
- func HandleServerForceDeletionSuccessfully(t *testing.T)
- func HandleServerGetFaultSuccessfully(t *testing.T)
- func HandleServerGetSuccessfully(t *testing.T)
- func HandleServerListSuccessfully(t *testing.T)
- func HandleServerNoNetworkCreationSuccessfully(t *testing.T, response string)
- func HandleServerUpdateSuccessfully(t *testing.T)
- func HandleServerWithTagsCreationSuccessfully(t *testing.T)
- func HandleServersCreationSuccessfully(t *testing.T, response string)
- func HandleShowConsoleOutputSuccessfully(t *testing.T, response string)
- type CreateOptsWithCustomField
Constants ¶
View Source
const ConsoleOutputBody = `{
"output": "abc"
}`
View Source
const FaultyServerBody = `` /* 2179-byte string literal not displayed */
FaultyServerBody is the body of a Get request on an existing server which has a fault/error.
View Source
const ServerListBody = `` /* 5707-byte string literal not displayed */
ServerListBody contains the canned body of a servers.List response.
View Source
const ServerPasswordBody = `` /* 368-byte string literal not displayed */
View Source
const ServerWithTagsCreateRequest = `` /* 147-byte string literal not displayed */
View Source
const SingleServerBody = `` /* 1916-byte string literal not displayed */
SingleServerBody is the canned body of a Get request on an existing server.
View Source
const SingleServerWithTagsBody = `` /* 1942-byte string literal not displayed */
SingleServerWithTagsBody is the canned body of a Get request on an existing server with tags.
Variables ¶
View Source
var ( // ServerHerp is a Server struct that should correspond to the first result in ServerListBody. ServerHerp = servers.Server{ Status: "ACTIVE", Updated: herpTimeUpdated, HostID: "29d3c8c896a45aa4c34e52247875d7fefc3d94bbcc9f622b5d204362", Addresses: map[