testing

package
Version: v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

clustering_policytypes_v1

Index

Constants

View Source
const FakePolicyTypetoGet = "fake-policytype"
View Source
const PolicyTypeBody = `` /* 834-byte string literal not displayed */
View Source
const PolicyTypeDetailBody = `` /* 772-byte string literal not displayed */

Variables

View Source
var ExpectedPolicyType1 = policytypes.PolicyType{
	Name:    "senlin.policy.affinity",
	Version: "1.0",
	SupportStatus: map[string][]policytypes.SupportStatusType{
		"1.0": {
			{
				Status: "SUPPORTED",
				Since:  "2016.10",
			},
		},
	},
}
View Source
var ExpectedPolicyType2 = policytypes.PolicyType{
	Name:    "senlin.policy.health",
	Version: "1.0",
	SupportStatus: map[string][]policytypes.SupportStatusType{
		"1.0": {
			{
				Status: "EXPERIMENTAL",
				Since:  "2016.10",
			},
		},
	},
}
View Source
var ExpectedPolicyType3 = policytypes.PolicyType{
	Name:    "senlin.policy.scaling",
	Version: "1.0",
	SupportStatus: map[string][]policytypes.SupportStatusType{
		"1.0": {
			{
				Status: "SUPPORTED",
				Since:  "2016.04",
			},
		},
	},
}
View Source
var ExpectedPolicyType4 = policytypes.PolicyType{
	Name:    "senlin.policy.region_placement",
	Version: "1.0",
	SupportStatus: map[string][]policytypes.SupportStatusType{
		"1.0": {
			{
				Status: "EXPERIMENTAL",
				Since:  "2016.04",
			},
			{
				Status: "SUPPORTED",
				Since:  "2016.10",
			},
		},
	},
}
View Source
var ExpectedPolicyTypeDetail = &policytypes.PolicyTypeDetail{
	Name: "senlin.policy.batch-1.0",
	Schema: map[string]interface{}{
		"max_batch_size": map[string]interface{}{
			"default":     float64(-1),
			"description": "Maximum number of nodes that will be updated in parallel.",
			"required":    false,
			"type":        "Integer",
			"updatable":   false,
		},
		"min_in_service": map[string]interface{}{
			"default":     float64(1),
			"description": "Minimum number of nodes in service when performing updates.",
			"required":    false,
			"type":        "Integer",
			"updatable":   false,
		},
		"pause_time": map[string]interface{}{
			"default":     float64(60),
			"description": "Interval in seconds between update batches if any.",
			"required":    false,
			"type":        "Integer",
			"updatable":   false,
		},
	},
	SupportStatus: map[string][]policytypes.SupportStatusType{
		"1.0": []policytypes.SupportStatusType{
			{
				Status: "EXPERIMENTAL",
				Since:  "2017.02",
			},
		},
	},
}

Functions

func HandlePolicyTypeGet

func HandlePolicyTypeGet(t *testing.T)

func HandlePolicyTypeList

func HandlePolicyTypeList(t *testing.T)

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL