Documentation ¶
Overview ¶
Package v1 package contains acceptance tests for the Openstack Clustering V1 service.
Index ¶
- Variables
- func CreateCluster(t *testing.T, client *gophercloud.ServiceClient, profileID string) (*clusters.Cluster, error)
- func CreateMessageReceiver(t *testing.T, client *gophercloud.ServiceClient, clusterID string) (*receivers.Receiver, error)
- func CreateNode(t *testing.T, client *gophercloud.ServiceClient, clusterID, profileID string) (*nodes.Node, error)
- func CreatePolicy(t *testing.T, client *gophercloud.ServiceClient) (*policies.Policy, error)
- func CreateProfile(t *testing.T, client *gophercloud.ServiceClient) (*profiles.Profile, error)
- func CreateWebhookReceiver(t *testing.T, client *gophercloud.ServiceClient, clusterID string) (*receivers.Receiver, error)
- func DeleteCluster(t *testing.T, client *gophercloud.ServiceClient, id string)
- func DeleteNode(t *testing.T, client *gophercloud.ServiceClient, id string)
- func DeletePolicy(t *testing.T, client *gophercloud.ServiceClient, id string)
- func DeleteProfile(t *testing.T, client *gophercloud.ServiceClient, id string)
- func DeleteReceiver(t *testing.T, client *gophercloud.ServiceClient, id string)
- func GetActionID(headers http.Header) (string, error)
- func WaitForAction(client *gophercloud.ServiceClient, actionID string) error
- func WaitForNodeStatus(client *gophercloud.ServiceClient, id string, status string) error
Constants ¶
This section is empty.
Variables ¶
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 ¶
CreatePolicy creates a random policy. An error will be returned if the policy could not be created.
func CreateProfile ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
GetActionID parses an HTTP header and returns the action ID.
func WaitForAction ¶
func WaitForNodeStatus ¶
Types ¶
This section is empty.