testing

package
v0.3.29 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const CreateRequest = `
{
  "docker_volume_size": 5,
  "name": "test1",
  "node_count": 1,
  "flavor_id": "g1-standard-1-2"
}
`
View Source
const CreateResponse = `
{
  "tasks": [
    "50f53a35-42ed-40c4-82b2-5a37fb3e00bc"
  ]
}
`
View Source
const DeleteResponse = `
{
  "tasks": [
    "50f53a35-42ed-40c4-82b2-5a37fb3e00bc"
  ]
}
`
View Source
const GetResponse1 = `` /* 751-byte string literal not displayed */
View Source
const ListResponse = `` /* 485-byte string literal not displayed */
View Source
const UpdateRequest = `
{
	"min_mode_count": 3,
	"max_mode_count": 4,
}
`
View Source
const UpdateResponse = GetResponse1

Variables

View Source
var (
	Tasks1 = tasks.TaskResults{
		Tasks: []tasks.TaskID{"50f53a35-42ed-40c4-82b2-5a37fb3e00bc"},
	}

	PoolList1 = pools.ClusterListPool{
		UUID:             "908338b2-9217-4673-af0e-f0093139fbac",
		Name:             "test1",
		FlavorID:         "g1-standard-1-2",
		ImageID:          "fedora-coreos",
		NodeCount:        1,
		MinNodeCount:     1,
		MaxNodeCount:     5,
		DockerVolumeSize: 10,
		DockerVolumeType: volumes.Standard,
		IsDefault:        true,
		StackID:          "2f0d5d97-fb3c-4218-9201-34f804299510",
		Status:           "CREATE_COMPLETE",
		Role:             "worker",
	}
	Pool1 = pools.ClusterPool{
		ClusterID:       "5e09faed-e742-404f-8a75-0ea5eb3c435f",
		ProjectID:       "46beed3938e6474390b530fefd6173d2",
		Labels:          labels,
		NodeAddresses:   []net.IP{nodeAddress},
		StatusReason:    "Stack CREATE completed successfully",
		ClusterListPool: &PoolList1,
	}
	UpdatedPool1                 = Pool1
	ExpectedClusterListPoolSlice = []pools.ClusterListPool{PoolList1}
)

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