testing

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

clustering_clusters_v1

Index

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 OperationActionResponse = `
{
  "action": "2a0ff107-e789-4660-a122-3816c43af703"
}`
View Source
const OperationExpectedActionID = "2a0ff107-e789-4660-a122-3816c43af703"
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 ExpectedCollectAttributes = []clusters.ClusterAttributes{
	{
		ID:    "foo",
		Value: string("bar"),
	},
}

Functions

func HandleAddNodesSuccessfully

func HandleAddNodesSuccessfully(t *testing.T)

func HandleAttachPolicySuccessfully

func HandleAttachPolicySuccessfully(t *testing.T)

func HandleCheckSuccessfully

func HandleCheckSuccessfully(t *testing.T)

func HandleClusterCollectSuccessfully

func HandleClusterCollectSuccessfully(t *testing.T)

func HandleCreateClusterEmptyTimeSuccessfully

func HandleCreateClusterEmptyTimeSuccessfully(t *testing.T)

func HandleCreateClusterMetadataSuccessfully

func HandleCreateClusterMetadataSuccessfully(t *testing.T)

func HandleCreateClusterSuccessfully

func HandleCreateClusterSuccessfully(t *testing.T)

func HandleDeleteClusterSuccessfully

func HandleDeleteClusterSuccessfully(t *testing.T)

func HandleDetachPolicySuccessfully

func HandleDetachPolicySuccessfully(t *testing.T)

func HandleGetClusterEmptyTimeSuccessfully

func HandleGetClusterEmptyTimeSuccessfully(t *testing.T)

func HandleGetClusterSuccessfully

func HandleGetClusterSuccessfully(t *testing.T)

func HandleGetPolicySuccessfully

func HandleGetPolicySuccessfully(t *testing.T)

func HandleLifecycleSuccessfully

func HandleLifecycleSuccessfully(t *testing.T)

func HandleListClusterSuccessfully

func HandleListClusterSuccessfully(t *testing.T)

func HandleListPoliciesSuccessfully

func HandleListPoliciesSuccessfully(t *testing.T)

func HandleOpsSuccessfully

func HandleOpsSuccessfully(t *testing.T)

func HandleRecoverSuccessfully

func HandleRecoverSuccessfully(t *testing.T)

func HandleRemoveNodesSuccessfully

func HandleRemoveNodesSuccessfully(t *testing.T)

func HandleReplaceNodeSuccessfully

func HandleReplaceNodeSuccessfully(t *testing.T)

func HandleResizeSuccessfully

func HandleResizeSuccessfully(t *testing.T)

func HandleScaleInSuccessfully

func HandleScaleInSuccessfully(t *testing.T)

func HandleScaleOutSuccessfully

func HandleScaleOutSuccessfully(t *testing.T)

func HandleUpdateClusterEmptyTimeSuccessfully

func HandleUpdateClusterEmptyTimeSuccessfully(t *testing.T)

func HandleUpdateClusterSuccessfully

func HandleUpdateClusterSuccessfully(t *testing.T)

func HandleUpdatePolicySuccessfully

func HandleUpdatePolicySuccessfully(t *testing.T)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL