testing

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ClusterCsrRequest = `
{
  "csr": "string"
}
`
View Source
const ConfigStringResponse = `` /* 319-byte string literal not displayed */
View Source
const CreateResponse = `
{
  "tasks": [
    "50f53a35-42ed-40c4-82b2-5a37fb3e00bc"
  ]
}
`
View Source
const DeleteResponse = `
{
  "tasks": [
    "50f53a35-42ed-40c4-82b2-5a37fb3e00bc"
  ]
}
`
View Source
const GetResponse = `` /* 2435-byte string literal not displayed */
View Source
const ListResponse = `` /* 1521-byte string literal not displayed */
View Source
const ResizeResponse = `
{
  "tasks": [
    "50f53a35-42ed-40c4-82b2-5a37fb3e00bc"
  ]
}
`
View Source
const UpgradeResponse = `
{
  "tasks": [
    "50f53a35-42ed-40c4-82b2-5a37fb3e00bc"
  ]
}
`

Variables

View Source
var (
	ConfigResponse, _ = json.Marshal(c)

	Config1 = clusters.Config{Config: ConfigStringResponse}

	ClusterList1 = clusters.ClusterListWithPool{
		Pools:       []pools.ClusterListPool{listPool},
		ClusterList: clusterList,
	}
	Cluster1 = clusters.ClusterWithPool{
		Cluster: &clusters.Cluster{
			StatusReason:     "Stack CREATE completed successfully",
			APIAddress:       apiAddress,
			CoeVersion:       "v1.17.4",
			ContainerVersion: "1.12.6",
			DiscoveryURL:     discoveryURL,
			HealthStatusReason: map[string]string{
				"api": "ok",
			},
			ProjectID:         "46beed39-38e6-4743-90b5-30fefd6173d2",
			UserID:            "3ed399cd-ecd1-4403-b3e7-e0029e4f694f",
			NodeAddresses:     nodeAddresses,
			MasterAddresses:   masterAddresses,
			FixedNetwork:      "46beed39-38e6-4743-90b5-30fefd6173d2",
			FixedSubnet:       "46beed39-38e6-4743-90b5-30fefd6173d2",
			FloatingIPEnabled: true,
			Faults:            nil,
			ClusterList:       clusterList,
		},
		Pools: []pools.ClusterPool{{
			ClusterID:       "5e09faed-e742-404f-8a75-0ea5eb3c435f",
			ProjectID:       "46beed3938e6474390b530fefd6173d2",
			Labels:          labels,
			NodeAddresses:   nodeAddresses,
			StatusReason:    "Stack CREATE completed successfully",
			ClusterListPool: &listPool,
		},
		},
	}
	ClusterCertificate = clusters.ClusterCACertificate{
		ClusterUUID: ClusterList1.UUID,
		PEM:         "string",
	}
	ClusterSignedCertificate = clusters.ClusterSignCertificate{
		ClusterUUID: ClusterList1.UUID,
		PEM:         "string",
		CSR:         "string",
	}
	Tasks1 = tasks.TaskResults{
		Tasks: []tasks.TaskID{"50f53a35-42ed-40c4-82b2-5a37fb3e00bc"},
	}

	ExpectedClusterSlice = []clusters.ClusterListWithPool{ClusterList1}
)
View Source
var ClusterCAResponse = fmt.Sprintf(`
{
  "cluster_uuid": "%s",
  "pem": "string"
}
`, ClusterList1.UUID,
)
View Source
var ClusterSignResponse = fmt.Sprintf(`
{
  "cluster_uuid": "%s",
  "pem": "string",
  "csr": "string"
}
`, ClusterList1.UUID,
)
View Source
var CreateRequest = fmt.Sprintf(`
{
  "auto_healing_enabled": false,
  "fixed_network": "%s",
  "fixed_subnet": "%s",
  "keypair": "keypair",
  "master_count": 1,
  "name": "%s",
  "pools": [
	{
	  "docker_volume_size": 10,
	  "docker_volume_type": "standard",
	  "flavor_id": "g1-standard-1-2",
	  "max_node_count": 2,
	  "min_node_count": 1,
	  "name": "test1",
	  "node_count": 1
	}
  ],
  "version": "%s"
}
`, fixedNetwork, fixedSubnet, Cluster1.Name, version)
View Source
var ResizeRequest = fmt.Sprintf(`
{
    "node_count": 2,
    "pool": "%s"
}
`, pool)
View Source
var UpgradeRequest = fmt.Sprintf(`
{
    "version": "1.17",
    "pool": "%s"
}
`, pool)
View Source
var VersionResponse = `
{
  "count": 2,
  "results": [
    "1.14",
    "1.17"
  ]
}
`

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