v1

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package v1 package contains acceptance tests for the Openstack Clustering V1 service.

Index

Constants

This section is empty.

Variables

View Source
var TestPolicySpec = policies.Spec{
	Description: "new policy description",
	Properties: map[string]interface{}{
		"destroy_after_deletion":  true,
		"grace_period":            60,
		"reduce_desired_capacity": false,
		"criteria":                "OLDEST_FIRST",
	},
	Type:    "senlin.policy.deletion",
	Version: "1.1",
}

Functions

func CreateCluster

func CreateCluster(t *testing.T, client *gophercloud.ServiceClient, profileID string) (*clusters.Cluster, error)

CreateCluster creates a random cluster. An error will be returned if the cluster could not be created.

func CreateMessageReceiver

func CreateMessageReceiver(t *testing.T, client *gophercloud.ServiceClient, clusterID string) (*receivers.Receiver, error)

CreateMessageReceiver will create a message receiver with a random name. An error will be returned if the receiver could not be created.

func CreateNode

func CreateNode(t *testing.T, client *gophercloud.ServiceClient, clusterID, profileID string) (*nodes.Node, error)

CreateNode creates a random node. An error will be returned if the node could not be created.

func CreatePolicy

func CreatePolicy(t *testing.T, client *gophercloud.ServiceClient) (*policies.Policy, error)

CreatePolicy creates a random policy. An error will be returned if the policy could not be created.

func CreateProfile

func CreateProfile(t *testing.T, client *gophercloud.ServiceClient) (*profiles.Profile, error)

CreateProfile will create a random profile. An error will be returned if the profile could not be created.

func CreateWebhookReceiver

func CreateWebhookReceiver(t *testing.T, client *gophercloud.ServiceClient, clusterID string) (*receivers.Receiver, error)

CreateWebhookReceiver will create a random webhook receiver. An error will be returned if the receiver could not be created.

func DeleteCluster

func DeleteCluster(t *testing.T, client *gophercloud.ServiceClient, id string)

DeleteCluster will delete a given policy. A fatal error will occur if the cluster could not be deleted. This works best as a deferred function.

func DeleteNode

func DeleteNode(t *testing.T, client *gophercloud.ServiceClient, id string)

DeleteNode will delete a given node. A fatal error will occur if the node could not be deleted. This works best as a deferred function.

func DeletePolicy

func DeletePolicy(t *testing.T, client *gophercloud.ServiceClient, id string)

DeletePolicy will delete a given policy. A fatal error will occur if the policy could not be deleted. This works best as a deferred function.

func DeleteProfile

func DeleteProfile(t *testing.T, client *gophercloud.ServiceClient, id string)

DeleteProfile will delete a given profile. A fatal error will occur if the profile could not be deleted. This works best as a deferred function.

func DeleteReceiver

func DeleteReceiver(t *testing.T, client *gophercloud.ServiceClient, id string)

DeleteReceiver will delete a given receiver. A fatal error will occur if the receiver could not be deleted. This works best as a deferred function.

func GetActionID

func GetActionID(headers http.Header) (string, error)

GetActionID parses an HTTP header and returns the action ID.

func WaitForAction

func WaitForAction(client *gophercloud.ServiceClient, actionID string) error

func WaitForNodeStatus

func WaitForNodeStatus(client *gophercloud.ServiceClient, id string, status string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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