Documentation ¶
Overview ¶
clustering_clusters_v1
Index ¶
- Constants
- Variables
- func HandleAddNodesSuccessfully(t *testing.T)
- func HandleAttachPolicySuccessfully(t *testing.T)
- func HandleCheckSuccessfully(t *testing.T)
- func HandleClusterCollectSuccessfully(t *testing.T)
- func HandleCreateClusterEmptyTimeSuccessfully(t *testing.T)
- func HandleCreateClusterMetadataSuccessfully(t *testing.T)
- func HandleCreateClusterSuccessfully(t *testing.T)
- func HandleDeleteClusterSuccessfully(t *testing.T)
- func HandleDetachPolicySuccessfully(t *testing.T)
- func HandleGetClusterEmptyTimeSuccessfully(t *testing.T)
- func HandleGetClusterSuccessfully(t *testing.T)
- func HandleGetPolicySuccessfully(t *testing.T)
- func HandleLifecycleSuccessfully(t *testing.T)
- func HandleListClusterSuccessfully(t *testing.T)
- func HandleListPoliciesSuccessfully(t *testing.T)
- func HandleRecoverSuccessfully(t *testing.T)
- func HandleRemoveNodesSuccessfully(t *testing.T)
- func HandleReplaceNodeSuccessfully(t *testing.T)
- func HandleResizeSuccessfully(t *testing.T)
- func HandleScaleInSuccessfully(t *testing.T)
- func HandleScaleOutSuccessfully(t *testing.T)
- func HandleUpdateClusterEmptyTimeSuccessfully(t *testing.T)
- func HandleUpdateClusterSuccessfully(t *testing.T)
- func HandleUpdatePolicySuccessfully(t *testing.T)
Constants ¶
View Source
const ActionResponse = `
{
"action": "2a0ff107-e789-4660-a122-3816c43af703"
}`
View Source
const ClusterResponse = `` /* 844-byte string literal not displayed */
View Source
const ClusterResponse_EmptyTime = `` /* 790-byte string literal not displayed */
View Source
const ClusterResponse_Metadata = `` /* 1021-byte string literal not displayed */
View Source
const CollectResponse = `
{
"cluster_attributes": [{
"id": "foo",
"value": "bar"
}
]
}`
View Source
const ExpectedActionID = "2a0ff107-e789-4660-a122-3816c43af703"
View Source
const GetPolicyResponse = `` /* 345-byte string literal not displayed */
View Source
const ListPoliciesResult = `` /* 372-byte string literal not displayed */
View Source
const ListResponse = `` /* 1656-byte string literal not displayed */
View Source
const UpdateResponse = `` /* 845-byte string literal not displayed */
View Source
const UpdateResponse_EmptyTime = `` /* 790-byte string literal not displayed */
Variables ¶
View Source
var ExpectedCluster = clusters.Cluster{ Config: map[string]interface{}{}, CreatedAt: time.Date(2015, 2, 10, 14, 26, 14, 0, time.UTC), Data: map[string]interface{}{}, Dependents: map[string]interface{}{}, DesiredCapacity: 3, Domain: "", ID: "7d85f602-a948-4a30-afd4-e84f47471c15", InitAt: time.Date(2015, 2, 10, 15, 26, 14, 0, time.UTC), MaxSize: 20, Metadata: map[string]interface{}{}, MinSize: 1, Name: "cluster1", Nodes: []string{ "b07c57c8-7ab2-47bf-bdf8-e894c0c601b9", "ecc23d3e-bb68-48f8-8260-c9cf6bcb6e61", "da1e9c87-e584-4626-a120-022da5062dac", }, Policies: []string{}, ProfileID: "edc63d0a-2ca4-48fa-9854-27926da76a4a", ProfileName: "mystack", Project: "6e18cc2bdbeb48a5b3cad2dc499f6804", Status: "ACTIVE", StatusReason: "Cluster scale-in succeeded", Timeout: 3600, UpdatedAt: time.Date(2015, 2, 10, 16, 26, 14, 0, time.UTC), User: "5e5bf8027826429c96af157f68dc9072", }
View Source
var ExpectedClusterPolicy = clusters.ClusterPolicy{ ClusterID: "7d85f602-a948-4a30-afd4-e84f47471c15", ClusterName: "cluster4", Enabled: true, ID: "06be3a1f-b238-4a96-a737-ceec5714087e", PolicyID: "714fe676-a08f-4196-b7af-61d52eeded15", PolicyName: "dp01", PolicyType: "senlin.policy.deletion-1.0", }
View Source
var ExpectedCluster_EmptyTime = clusters.Cluster{ Config: map[string]interface{}{}, Data: map[string]interface{}{}, Dependents: map[string]interface{}{}, DesiredCapacity: 3, Domain: "", ID: "7d85f602-a948-4a30-afd4-e84f47471c15", MaxSize: 20, Metadata: map[string]interface{}{}, MinSize: 1, Name: "cluster1", Nodes: []string{ "b07c57c8-7ab2-47bf-bdf8-e894c0c601b9", "ecc23d3e-bb68-48f8-8260-c9cf6bcb6e61", "da1e9c87-e584-4626-a120-022da5062dac", }, Policies: []string{}, ProfileID: "edc63d0a-2ca4-48fa-9854-27926da76a4a", ProfileName: "mystack", Project: "6e18cc2bdbeb48a5b3cad2dc499f6804", Status: "ACTIVE", StatusReason: "Cluster scale-in succeeded", Timeout: 3600, User: "5e5bf8027826429c96af157f68dc9072", }
View Source
var ExpectedCluster_Metadata = clusters.Cluster{ Config: map[string]interface{}{}, CreatedAt: time.Date(2015, 2, 10, 14, 26, 14, 0, time.UTC), Data: map[string]interface{}{}, Dependents: map[string]interface{}{}, DesiredCapacity: 3, Domain: "", ID: "7d85f602-a948-4a30-afd4-e84f47471c15", InitAt: time.Date(2015, 2, 10, 15, 26, 14, 0, time.UTC), MaxSize: 20, MinSize: 1, Metadata: map[string]interface{}{ "foo": "bar", "test": map[string]interface{}{ "nil_interface": interface{}(nil), "float_value": float64(123.3), "string_value": "test_string", "bool_value": false, }, }, Name: "cluster1", Nodes: []string{ "b07c57c8-7ab2-47bf-bdf8-e894c0c601b9", "ecc23d3e-bb68-48f8-8260-c9cf6bcb6e61", "da1e9c87-e584-4626-a120-022da5062dac", }, Policies: []string{}, ProfileID: "edc63d0a-2ca4-48fa-9854-27926da76a4a", ProfileName: "mystack", Project: "6e18cc2bdbeb48a5b3cad2dc499f6804", Status: "ACTIVE", StatusReason: "Cluster scale-in succeeded", Timeout: 3600, UpdatedAt: time.Date(2015, 2, 10, 16, 26, 14, 0, time.UTC), User: "5e5bf8027826429c96af157f68dc9072", }
View Source
var ExpectedClusters = []clusters.Cluster{ExpectedCluster, ExpectedCluster_EmptyTime}
View Source
var ExpectedCollectAttributes = []clusters.ClusterAttributes{ { ID: "foo", Value: string("bar"), }, }
View Source
var ExpectedListPolicies = []clusters.ClusterPolicy{ExpectedClusterPolicy}
Functions ¶
func HandleCheckSuccessfully ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.